feat: update settings and plugins

This commit is contained in:
Ben Hong
2024-01-17 20:40:00 -08:00
parent 1916d57faa
commit c744a6fe89
82 changed files with 157524 additions and 5348 deletions

View File

@@ -0,0 +1,6 @@
{
"name": "Night Owl",
"version": "0.0.0",
"minAppVersion": "0.16.0",
"author": "Ben Hong"
}

847
.obsidian/themes/Night Owl/theme.css vendored Normal file
View File

@@ -0,0 +1,847 @@
@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400;1,500&family=Karla:ital,wght@0,400;0,600;1,400;1,600&family=Rubik:ital,wght@0,400;0,600;1,400;1,600&display=swap");
/*------------- --------------------*/
/* Typography */
/*------------- --------------------*/
/*-----------------------------*/
/* Colors */
/*-----------------------------*/
/* @settings
name: Night Owl Theme
id: night-owl-theme
settings:
-
id: night-owl-typography
title: Colors
type: heading
level: 3
-
id: text-bold-color
title: Bold Color
type: variable-color
format: hex
default: '#50fa7b'
-
id: text-italic-color
title: Italic Color
type: variable-color
format: hex
default: '#ffeb95'
-
id: text-italic-bold-color
title: Italic Bold Color
type: variable-color
format: hex
default: '#b380fb'
*/
/*-------------------------------------*/
/* CSS Variables */
/*-------------------------------------*/
:root {
--font-size-normal: 18px;
--font-size-code: 15px;
--font-size-side-dock: 15px;
--font-size-side-dock-title: 18px;
--font-size-status-bar: 15px;
--font-size-h1: 30px;
--font-size-h2: 25px;
--font-size-h3: 21px;
--font-size-h4: 20px;
--font-size-h5: 19px;
--font-size-h6: 18px;
--font-family-editor: IBM Plex Mono, Menlo, Monaco, Courier New, monospace;
--font-text: Karla, Avenir Next, Helvetica, Arial, sans-serif;
--font-family-preview: Karla, Avenir Next, Helvetica, Arial, sans-serif;
--font-family-preview-heading: Rubik, Avenir Next, Helvetica, Arial, sans-serif;
--primary-lavender: #b380fb;
}
.theme-light,
.theme-dark {
--background-primary: hsl(207deg, 95%, 8%);
--background-primary-alt: #011c32;
--background-secondary: #011c32;
--background-secondary-alt: #02223c;
--background-accent: #f8f8f2;
--background-modifier-border: #f8f8f2;
--background-modifier-form-field: rgba(0, 0, 0, 0.2);
--background-modifier-form-field-highlighted: rgba(0, 0, 0, 0.5);
--background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
--background-modifier-success: #50fa7b; /*no sure*/
--background-modifier-error: #3d0000; /*no sure*/
--background-modifier-error-rgb: 61, 0, 0;
--background-modifier-error-hover: #470000;
--background-modifier-cover: rgba(0, 0, 0, 0.6);
--text-accent: #ffeb95;
--text-accent-hover: #8be9fd;
--text-bold-color: #50fa7b;
--text-italic-color: #ffeb95;
--text-italic-bold-color: #b380fb;
--text-normal: #f8f8f2;
--text-muted: #f8f8f2;
--text-faint: #7fdbca;
--text-highlight-bg: hsla(61deg, 100%, 32%, 0.8);
--text-error: #ff79c6;
--text-error-hover: #ff79c6;
--text-selection: #6272a4; /* Chromium precess this color with alpha channel */
--text-on-accent: #bd93f9;
--interactive-normal: #ffb86c;
--interactive-hover: #ff5555;
--interactive-accent: #ffeb95;
--interactive-accent-rgb: 123, 108, 217;
--interactive-accent-hover: #ff5555;
--scrollbar-active-thumb-bg: #282a36;
--scrollbar-bg: #282a36;
--scrollbar-thumb-bg: #282a36;
--text-title-h1: #ff79c6;
--text-title-h2: #82aaff;
--text-title-h3: #c5e478;
--text-title-h4: #ffb86c;
--text-title-h5: #50fa7b;
--text-title-h6: #8be9fd;
--inline-code: #bd93f9;
--code-block: #8be9fd;
--pre-code: #44475a;
--blockquote-border: #ffb86c;
--vim-cursor: #ff5555;
--border-color: #2b2727; /*also like transparent*/
}
/*-------------------------------------*/
/* Search the following lines */
/* to jump to specific section */
/*-------------------------------------*/
/* resize-handle and borders */
/* tags */
/* link */
/* Cursor */
/* basic format in EDITOR and PREVIEW */
/* Headings - EDITOR and PREVIEW */
/* Code block in Preview */
/* Code block in Editor */
/* Brackets */
/* Blockquote */
/* table */
/* Checkbox */
/* html in editor */
/* popover */
/* Side panel */
/* internal embedded link in preview */
/* graph view */
/* settings */
/* Hide side bar */
/* width of content */
/* note header bar for non-andy mode */
/* andy mode activated in light mode */
/* at a rule line before ul list *
/* Hide Scrollbar (recommend for mac) */
/*-------------------------------------*/
/***************************************/
/* resize-handle and borders */
/***************************************/
/*vertical resize-handle*/
.workspace-split.mod-vertical > * > .workspace-leaf-resize-handle,
.workspace-split.mod-left-split > .workspace-leaf-resize-handle,
.workspace-split.mod-right-split > .workspace-leaf-resize-handle {
width: 1px !important;
background-color: var(--border-color);
}
/*horizontal resize-handle*/
.workspace-split.mod-horizontal > * > .workspace-leaf-resize-handle {
height: 1px !important;
background-color: var(--border-color);
}
/*workspace ribbon when collapsed*/
.workspace-ribbon.is-collapsed {
background-color: var(--background-primary-alt);
}
/*the vertical split*/
.workspace-split.mod-root .workspace-split.mod-vertical .workspace-leaf-content,
.workspace-split.mod-vertical > .workspace-split,
.workspace-split.mod-vertical > .workspace-leaf,
.workspace-tabs {
padding-right: 0px;
}
/*status-bar*/
.status-bar {
font-size: var(--font-size-status-bar);
background-color: var(--background-secondary-alt);
border-top: 0px;
}
.document-search-container {
border-top: 0px;
border-right: 0px;
z-index: inherit;
}
.workspace-ribbon.mod-left.is-collapsed {
border-right: 1px solid var(--border-color);
}
.workspace-ribbon.mod-right.is-collapsed {
border-left: 1px solid var(--border-color);
}
/*************************************/
/* tags */
/*************************************/
/* Tag hover in preview */
a.tag:hover {
color: var(--text-accent) !important;
}
/* Tag Color in editor and preview*/
.cm-hashtag,
a.tag {
color: var(--text-accent-hover) !important;
text-decoration: none !important;
font-style: normal !important;
}
/*********************************/
/* link */
/*********************************/
/* link */
a,
.internal-link,
.cm-hmd-internal-link,
.cm-link,
.cm-formatting-link,
.cm-url {
text-decoration: none !important;
}
/* the url string in editor */
.cm-s-obsidian span.cm-string {
color: var(--text-accent-hover) !important;
}
/* make external links italics to differentiate */
a:not(.internal-link) {
font-style: italic;
}
/*footnote*/
.cm-s-obsidian pre.HyperMD-footnote span.cm-hmd-footnote,
.cm-s-obsidian span.cm-footref {
color: var(--text-accent) !important;
}
/***************************************/
/* Cursor */
/***************************************/
/* Cursor color and opacity */
.cm-fat-cursor .CodeMirror-cursor,
.cm-animate-fat-cursor {
width: 0.5em;
background: var(--vim-cursor);
opacity: 60% !important;
}
/**************************************/
/* basic format in EDITOR and PREVIEW */
/**************************************/
/* font for everything outside of editor/preview panes */
.app-container {
font-family: var(--font-family-preview);
}
/* set the text selection color for preview mode */
::selection {
background-color: var(--text-selection);
}
/* normal text outside of headings and code of editor */
.cm-s-obsidian,
.mod-single-child .cm-s-obsidian {
font-family: var(--font-family-editor);
font-size: var(--font-size-normal);
}
/* bold in preview and editor */
strong,
.cm-strong {
font-weight: 600;
color: var(--text-bold-color);
}
/* emphasis in preview and editor */
em,
.cm-em {
color: var(--text-italic-color);
font-style: italic;
}
.cm-em.cm-strong {
color: var(--text-italic-bold-color);
}
/* strikethrough in preview and editor */
s,
.cm-strikethrough {
color: var(--text-muted);
}
/* list in editor */
.cm-s-obsidian span.cm-formatting-list {
color: var(--text-normal) !important;
}
/* horizontal line in preview */
.markdown-preview-view hr {
background-color: var(--text-faint) !important;
}
/* embedded images */
img {
display: block;
margin-left: auto;
margin-right: auto;
}
/* img hover zoom out img*/
img:hover {
transform: scale(1.04);
transition: transform 0.25s ease-in-out 0s;
}
.community-theme img:hover {
transform: none;
}
/***************************************/
/* Code block in Preview */
/***************************************/
/* code blocks in preview */
pre code {
font-family: monaco !important;
font-size: var(--font-size-code) !important;
padding: 6px !important;
line-height: normal;
display: block;
color: var(--code-block) !important;
}
/* padding of code blocks in preview */
.markdown-preview-view pre {
padding: 0px !important;
}
/* font-size of in-line block for preview */
.markdown-preview-view code {
font-size: var(--font-size-code);
}
/* remove the shadow that typically affect light mode */
.theme-dark code[class*=language-],
.theme-dark pre[class*=language-],
.theme-light code[class*=language-],
.theme-light pre[class*=language-] {
text-shadow: none !important;
color: var(--text-faint) !important;
background-color: var(--pre-code);
}
/***************************************/
/* Brackets */
/***************************************/
.cm-s-obsidian span.cm-formatting-link {
color: var(--text-accent) !important;
}
/***************************************/
/* Blockquote */
/***************************************/
/* for editor */
.cm-quote {
color: var(--text-normal) !important;
font-style: italic;
}
/* for preview */
.markdown-preview-view blockquote {
background-color: var(--pre-code);
border: 0px solid;
border-color: var(--blockquote-border) !important;
border-left-width: 4px !important;
border-radius: 0 8px 8px 0;
line-height: 1.5em;
margin: 30px 0px;
font-style: italic;
}
/***************************************/
/* table */
/***************************************/
th {
font-weight: 800 !important;
}
.markdown-preview-view th {
font-weight: 800;
background-color: var(--background-secondary) !important;
}
thead {
border-bottom: 3px solid var(--background-modifier-border);
}
.table {
padding: 4px;
line-height: normal;
display: block;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
/***************************************/
/* popover */
/***************************************/
.popover {
border: 1px solid var(--border-color);
background-color: var(--background-secondary);
}
/***************************************/
/* Side panel */
/***************************************/
/* search result in backlink or file search */
.search-result-file-title {
font-size: 15px;
}
.search-result-file-matches,
.search-empty-state {
font-size: var(--font-size-side-dock);
}
/*decrease the spacing between result items*/
.search-result-file-title,
.search-result-file-match {
padding: 0px 10px;
}
.nav-file-title,
.nav-folder-title {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
/*backlink pane*/
.workspace-leaf-content[data-type=backlink] .view-content {
background-color: var(--background-secondary);
}
.workspace-leaf-content[data-type=tag] .tag-pane-tag-count,
.workspace-leaf-content[data-type=tag] .tag-pane-tag-text {
font-size: var(--font-size-side-dock);
}
.workspace-leaf-content[data-type=backlink] .search-result-file-matches {
font-size: var(--font-size-side-dock);
}
/***************************************/
/* internal embedded link in preview */
/***************************************/
/* Naked Embeds */
.markdown-embed-title {
display: none;
}
.markdown-preview-view .markdown-embed-content > :first-child {
margin-top: 0;
}
.markdown-preview-view .markdown-embed-content > :last-child {
margin-bottom: 0;
}
/*remove the following two line, you will get border and scroll*/
.markdown-preview-view .markdown-embed {
border: none;
padding: 0;
margin: 0;
}
.markdown-preview-view .markdown-embed-content {
max-height: unset;
background-color: var(--background-secondary);
}
/* the link on the top right corner*/
.markdown-embed-link {
color: var(--text-faint) !important;
}
.markdown-embed-link:hover {
color: var(--text-accent) !important;
}
/***************************************/
/* graph view */
/***************************************/
.graph-view.color-circle,
.graph-view.color-fill-highlight,
.graph-view.color-line-highlight {
color: var(--text-accent) !important;
}
.graph-view.color-text {
color: var(--text-normal) !important;
}
.graph-view.color-line {
color: #6272a4;
}
.graph-view.color-fill {
color: var(--text-muted);
}
.workspace-leaf-content[data-type=graph] .view-content {
background-color: var(--background-primary);
}
/***************************************/
/* settings */
/***************************************/
.modal.mod-settings button:not(.mod-cta):hover {
background-color: var(--interactive-accent-hover);
}
/***************************************/
/* Hide side bar */
/***************************************/
.workspace-ribbon:not(:hover) .workspace-ribbon-collapse-btn,
.workspace-ribbon:not(:hover) .side-dock-actions,
.workspace-ribbon:not(:hover) .side-dock-settings {
display: none;
transition: all 300ms ease-in-out;
}
.workspace-ribbon:not(:hover) {
width: 0px;
transition: all 300ms ease-in-out;
}
.workspace-split.mod-left-split {
margin-left: 0px;
}
.workspace-split.mod-right-split {
margin-right: 0px;
}
/***************************************/
/* width of content */
/***************************************/
.markdown-source-view.is-readable-line-width .CodeMirror {
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
.markdown-preview-view.is-readable-line-width .markdown-preview-section {
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
/* shift sticky position, so titles will stack up to the left */
/* This will currently stack to a maximum of 10 before resetting */
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-8) {
left: calc(var(--sticky-left) * 0);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-7) {
left: calc(var(--sticky-left) * 1);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-6) {
left: calc(var(--sticky-left) * 2);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-5) {
left: calc(var(--sticky-left) * 3);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-4) {
left: calc(var(--sticky-left) * 4);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-3) {
left: calc(var(--sticky-left) * 5);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-2) {
left: calc(var(--sticky-left) * 6);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-1) {
left: calc(var(--sticky-left) * 7);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n+0) {
left: calc(var(--sticky-left) * 8);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n+1) {
left: calc(var(--sticky-left) * 9);
}
/* now it's time for the fancy vertical titles */
/* first we'll add a bit of gap for the title to sit inside of */
.theme-light .workspace-leaf-content {
padding-left: var(--sticky-left);
position: relative;
}
/* this is where the magic happens */
.theme-light .view-header {
writing-mode: vertical-lr;
border-right: 1px solid var(--border-color);
border-left: 0px !important;
border-top: none;
border-bottom: none;
height: auto;
width: 36px;
position: absolute;
left: 0;
top: 0;
bottom: 0;
background-color: var(--background-primary) !important;
}
/* fix the long-title-obscuring shadows */
.theme-light .view-header-title-container:after {
width: 100%;
height: 30px;
top: unset;
bottom: 0;
background: linear-gradient(to bottom, transparent, var(--background-primary)) !important;
}
/* unset the title container height and swap padding */
.theme-light .view-header-title-container {
height: unset;
padding-left: unset;
padding-top: 5px;
}
/* active titles have different border colours */
.theme-light .workspace-leaf.mod-active .view-header {
background-color: var(--background-secondary-alt) !important;
border-right: 3px solid var(--interactive-accent) !important;
border-left: 0px;
border-bottom: none;
}
/* swap the padding/margin around for the header and actions icons */
.theme-light .view-header-icon,
.theme-light .view-actions {
padding: 10px 5px;
}
.theme-light .view-action {
margin: 8px 0;
}
/* get rid of the gap left by the now-missing horizontal title */
.theme-light .view-content {
height: 100%;
}
/* make the fake drop target overlay have a background so you can see it. */
/* TODO: figure out how the fake target overlay works so we can put the title back, too */
.theme-light .workspace-fake-target-overlay {
background-color: var(--background-primary);
}
/*preview padding too small*/
.theme-light .markdown-preview-view,
.theme-light .mod-single-child .markdown-preview-view {
font-family: var(--font-family-editor);
font-size: var(--font-size-normal);
padding-top: 5px;
padding-left: 4% !important;
padding-right: 2% !important;
}
/***************************************/
/* at a rule line before ul list */
/***************************************/
ul ul {
position: relative;
}
ul ul::before {
content: "";
border-left: 1px solid var(--border-color);
position: absolute;
}
ul ul::before {
left: -1em;
top: 0;
bottom: 0;
}
/***************************************/
/* Code block in Editor */
/***************************************/
/* in-line block for editor */
.cm-s-obsidian span.cm-inline-code,
.cm-s-obsidian span.cm-inline-code.cm-hmd-indented-code,
.cm-s-obsidian span.cm-inline-code:not(.cm-formatting):not(.cm-hmd-indented-code) {
background-color: var(--pre-code-bg);
color: var(--inline-code) !important;
bottom: 0px !important;
}
/* Editor CodeBlock TEXT Appearance */
.cm-s-obsidian pre.HyperMD-codeblock {
font-family: monaco !important;
font-size: var(--font-size-code) !important;
padding: 1px !important;
display: block;
color: var(--code-block) !important;
font-weight: 500;
text-indent: 0px !important;
}
/*remove the border of codeblock in editor */
.HyperMD-codeblock-bg {
border: 0px !important;
}
/*an active line highlight in vim normal mode
.cm-fat-cursor .CodeMirror-activeline .CodeMirror-linebackground{
background-color: var(--text-selection) !important;
} */
/* in-line block for preview */
code {
color: var(--inline-code) !important;
bottom: 0px !important;
}
/* graph css */
.theme-dark .graph-view.color-arrow {
color: #50fa7b;
}
.theme-dark .graph-view.color-fill-tag {
color: #ffb86c;
}
.theme-dark .graph-view.color-fill-attachment {
color: #ff5555;
}
.theme-dark .graph-view.color-fill-unresolved {
color: #6272a4;
}
.search-result-collapse-indicator {
position: absolute;
left: 0;
top: -3px;
color: var(--text-faint);
transition: transform 100ms ease-in-out;
padding: 0px !important;
}
body {
font-size: var(--font-size-normal);
}
.nav-file-title,
.nav-folder-title {
border: 1px solid transparent;
border-radius: 3px;
cursor: pointer;
color: var(--text-muted);
font-size: 1rem;
line-height: 20px;
padding: 1px 20px 0 26px;
position: relative;
white-space: nowrap;
width: max-content;
min-width: 100%;
}
.markdown-preview-view .list-collapse-indicator {
margin-left: -60px;
padding-left: 8px;
}
/* rule line when there are checkboxes*/
ul .task-list-item ul::before {
left: 0.15em !important;
}
/***************************************/
/* Checkbox */
/***************************************/
.markdown-preview-view .task-list-item-checkbox {
-webkit-appearance: none;
top: 0.2em !important;
right: 8px;
box-sizing: border-box;
position: relative;
width: 1rem;
height: 1rem;
margin: 0;
box-shadow: 0 0 0.1em var(--text-muted);
}
.markdown-preview-view .task-list-item-checkbox:checked::before {
content: "✓";
position: absolute;
left: -1px;
top: -3px;
color: var(--text-accent);
font-size: 1rem;
line-height: 1.25rem;
width: 1.2rem;
text-align: center;
text-shadow: 0 0 0.1rem var(--text-accent);
}
.markdown-preview-view ul > li.task-list-item.is-checked {
text-decoration: none;
}
.checkbox-container {
background-color: var(--background-primary);
}
/**************************************/
/* note header bar for non-andy mode */
/* activated in dark mode */
/**************************************/
/* header */
.theme-dark .view-header {
background-color: var(--background-primary) !important;
border-top: 1px solid var(--border-color) !important;
border-bottom: 1px solid var(--border-color) !important;
}
.theme-dark .view-header-title-container:after {
background: linear-gradient(to bottom, transparent, var(--background-primary)) !important;
}
.theme-dark .workspace-leaf.mod-active .view-header {
background-color: var(--background-primary-alt) !important;
border-top: 0px !important;
border-bottom: 3px solid var(--interactive-accent) !important;
}
.workspace-leaf.mod-active .view-header-title-container:after {
background: linear-gradient(to bottom, transparent, var(--background-secondary-alt)) !important;
}
.workspace-leaf.mod-active .view-header-title,
.workspace-leaf.mod-active .view-header-icon {
color: var(--background-modifier-border);
}
.view-header-title,
.view-header-icon,
.view-action {
color: var(--text-faint);
}
.cm-header-1,
.cm-header-2,
.cm-header-3,
.cm-header-4,
.cm-header-5,
.cm-header-6 {
font-weight: 500;
}
.cm-header-1 {
font-size: var(--font-size-h1);
color: var(--text-title-h1);
}
.cm-header-2 {
font-size: var(--font-size-h2);
color: var(--text-title-h2);
}
.cm-header-3 {
font-size: var(--font-size-h3);
color: var(--text-title-h3);
}
.cm-header-4 {
font-size: var(--font-size-h4);
color: var(--text-title-h4);
}
.cm-header-5 {
font-size: var(--font-size-h5);
color: var(--text-title-h5);
}
.cm-header-6 {
font-size: var(--font-size-h6);
color: var(--text-title-h6);
}
.markdown-preview-view h1 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h1);
color: var(--text-title-h1);
}
.markdown-preview-view h2 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h2);
color: var(--text-title-h2);
}
.markdown-preview-view h3 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h3);
color: var(--text-title-h3);
}
.markdown-preview-view h4 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h4);
color: var(--text-title-h4);
}
.markdown-preview-view h5 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h5);
color: var(--text-title-h5);
}
.markdown-preview-view h6 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h6);
color: var(--text-title-h6);
}
.markdown-preview-view h1 {
font-weight: 900;
}
.markdown-preview-view h2 {
font-weight: 800;
}
.markdown-preview-view h3 {
font-weight: 700;
}
.markdown-preview-view h4 {
font-weight: 600;
}
.markdown-preview-view h5,
.markdown-preview-view h6 {
font-weight: 500;
}
.markdown-source-view.mod-cm6 .HyperMD-task-line[data-task]:not([data-task=" "]) {
text-decoration: none;
}
.markdown-source-view.mod-cm6 .is-unresolved {
opacity: 1;
}
.markdown-source-view.mod-cm6 .is-unresolved .cm-hmd-internal-link::after {
content: "↩️";
width: 30px;
height: 30px;
margin-left: 3px;
font-size: 0.8rem;
opacity: 0.5;
}
.statediagram-note rect {
fill: var(--background-secondary-alt) !important;
stroke: #fff !important;
}

View File

@@ -0,0 +1,7 @@
{
"name": "Vileplume",
"version": "1.0.2",
"minAppVersion": "1.0.0",
"author": "Hung-Su",
"authorUrl": "https://github.com/hungsu"
}

686
.obsidian/themes/Vileplume/theme.css vendored Normal file
View File

@@ -0,0 +1,686 @@
/* latin */
@font-face {
font-family: 'Jomhuria';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/jomhuria/v9/Dxxp8j-TMXf-llKur1byOuA.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18Q.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSds18Q.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root
{
--dark0: hsl(219, 38%, 21%);
--dark1: hsl(219, 37%, 36%);
--dark2: hsl(220, 22%, 51%);
--dark3: hsl(221, 22%, 55%);
--light0: #d8dee9;
--light1: #e5e9f0;
--light2: #eceff4;
--light3: #ffffff;
--frost0: #8fbcbb;
--frost1: #88c0d0;
--frost2: #81a1c1;
--frost3: #5e81ac;
--bloddish48: hsl(203, 27%, 48%);
--bloddish64: hsl(204, 24%, 64%);
--red53: hsl(355, 35%, 53%);
--red: hsl(352, 56%, 62%);
--orange: #d08770;
--yellow54: hsl(30, 55%, 54%);
--yellow59: hsl(24, 33%, 59%);
--yellow: hsl(27, 49%, 68%);
--yellow75: hsl(19, 38%, 75%);
--green: #a3be8c;
--groddish: hsl(107, 39%, 43%);
--purple: #b48ead;
--font-default: 'Source Sans Pro', 'Segoe UI Emoji', sans-serif;
--font-title: 'Jomhuria', serif;
--font-headings: var(--font-default);
--font-monospace: 'Hack Nerd Font', 'Source Code Pro', monospace;
}
body {
--h1-size: 4.6em;
--h2-size: 2.07em;
--h3-size: 1.73em;
--h4-size: 1.44em;
--h5-size: 1.2em;
--h6-size: 1.2em;
}
.theme-dark
{
--background-primary: var(--dark0);
--background-primary-alt: var(--dark0);
--background-secondary: var(--dark1);
--background-secondary-alt: var(--dark2);
--text-normal: var(--light2);
--text-faint: var(--light0);
--text-muted: var(--light1);
--text-title-h1: var(--red);
--text-title-h2: var(--orange);
--text-title-h3: var(--yellow);
--text-title-h4: var(--green);
--text-title-h5: var(--bloddish64);
--text-title-h6: var(--purple);
--text-link: var(--frost0);
--text-a: var(--yellow);
--text-a-hover: var(--yellow);
--text-mark: var(--red);
--pre-code: var(--dark1);
--text-highlight-bg: var(--dark3);
--interactive-accent: var(--yellow59);
--interactive-accent-hover: var(--red);
--interactive-hover: var(--dark0);
--interactive-before: var(--dark3);
--background-modifier-border: var(--dark2);
--text-accent: var(--orange);
--interactive-accent-rgb: var(--orange);
--inline-code: var(--frost1);
--code-block: var(--frost1);
--vim-cursor: var(--orange);
--text-selection: var(--red53); /* Annoying - affects both Edit and Preview, but Preview has translucency */
--opacity-translucency: 0.9;
}
.theme-light
{
--background-primary: var(--light3);
--background-primary-alt: var(--light3);
--background-secondary: var(--light2);
--background-secondary-alt: var(--light1);
--text-normal: var(--dark1);
--text-faint: var(--dark3);
--text-muted: var(--dark2);
--text-title-h1: var(--red);
--text-title-h2: var(--orange);
--text-title-h3: var(--yellow);
--text-title-h4: var(--green);
--text-title-h5: var(--purple);
--text-link: var(--frost0);
--text-a: var(--frost3);
--text-a-hover: var(--frost1);
--text-mark: rgba(136, 192, 208, 0.3); /* frost1 */
--pre-code: var(--light2);
--text-highlight-bg: var(--light0);
--interactive-accent: var(--frost0);
--interactive-before: var(--light0);
--background-modifier-border: var(--light1);
--text-accent: var(--orange);
--interactive-accent-rgb: var(--orange);
--inline-code: var(--frost1);
--code-block: var(--frost1);
--vim-cursor: var(--orange);
--text-selection: var(--light0);
--opacity-translucency: 1;
}
.theme-dark code[class*="language-"],
.theme-dark pre[class*="language-"],
.theme-light code[class*="language-"],
.theme-light pre[class*="language-"]
{
text-shadow: none !important;
background-color: var(--pre-code) !important;
}
html,
body
{
font-family: var(--font-default);
font-size: 16px !important;
font-weight: 300;
}
strong
{
font-weight: 700 !important;
}
a,
.cm-hmd-internal-link
{
color: var(--text-a);
text-decoration: none !important;
}
a:hover,
.cm-hmd-internal-link:hover,
.cm-url
{
color: var(--text-a-hover);
text-decoration: underline !important;
}
.view-actions a
{
color: var(--text-normal) !important;
}
.view-actions a:hover
{
color: var(--text-a) !important;
}
.HyperMD-codeblock-bg
{
background-color: var(--pre-code) !important;
}
.HyperMD-codeblock
{
line-height: 1.4em !important;
color: var(--code-block) !important;
}
.HyperMD-codeblock-begin
{
border-top-left-radius: 4px !important;
border-top-right-radius: 4px !important;
}
.HyperMD-codeblock-end
{
border-bottom-left-radius: 4px !important;
border-bottom-right-radius: 4px !important;
}
th
{
font-weight: 600 !important;
}
thead
{
border-bottom: 2px solid var(--background-modifier-border) !important;
}
.HyperMD-table-row
{
line-height: normal !important;
padding-left: 4px !important;
padding-right: 4px !important;
/* background-color: var(--pre-code) !important; */
}
.HyperMD-table-row-0
{
/* padding-top: 4px !important; */
}
.CodeMirror-foldgutter-folded,
.is-collapsed .nav-folder-collapse-indicator
{
color: var(--text-a) !important;
}
.nav-file-tag
{
color: var(--text-a) !important;
}
.is-active .nav-file-title
{
color: var(--text-a) !important;
background-color: var(--background-primary-alt) !important;
}
.nav-file-title
{
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
.HyperMD-list-line
{
padding-top: 0 !important;
}
.CodeMirror-linenumber
{
font-family: var(--font-monospace);
color: var(--frost2);
}
.markdown-preview-section pre code,
.markdown-preview-section code
{
font-size: 0.9em !important;
background-color: var(--pre-code) !important;
}
.markdown-preview-section pre code
{
padding: 4px !important;
line-height: 1.4em !important;
display: block !important;
color: var(--code-block) !important;
}
.markdown-preview-section code
{
color: var(--inline-code) !important;
}
.cm-s-obsidian,
.cm-inline-code
{
-webkit-font-smoothing: auto !important;
}
.cm-inline-code
{
color: var(--inline-code) !important;
background-color: var(--pre-code) !important;
padding: 1px !important;
}
.workspace-leaf-header-title
{
font-weight: 600 !important;
}
.side-dock-title
{
padding-top: 15px !important;
font-size: 20px !important;
}
.side-dock-ribbon-tab:hover,
.side-dock-ribbon-action:hover,
.side-dock-ribbon-action.is-active:hover,
.nav-action-button:hover,
.side-dock-collapse-btn:hover
{
color: var(--text-a);
}
.side-dock
{
border-right: 0 !important;
}
.cm-s-obsidian,
.markdown-preview-view
{
/* padding-left: 10px !important; */
padding-right: 10px !important;
}
/* vertical resize-handle */
.workspace-split.mod-vertical > * > .workspace-leaf-resize-handle,
.workspace-split.mod-left-split > .workspace-leaf-resize-handle,
.workspace-split.mod-right-split > .workspace-leaf-resize-handle
{
width: 1px !important;
background-color: var(--background-secondary-alt);
}
/* horizontal resize-handle */
.workspace-split.mod-horizontal > * > .workspace-leaf-resize-handle
{
height: 1px !important;
background-color: var(--background-secondary-alt);
}
/* Remove vertical split padding */
.workspace-split.mod-root .workspace-split.mod-vertical .workspace-leaf-content,
.workspace-split.mod-vertical > .workspace-split,
.workspace-split.mod-vertical > .workspace-leaf,
.workspace-tabs
{
padding-right: 0px;
}
.markdown-embed-title
{
font-weight: 600 !important;
}
.markdown-embed
{
padding-left: 10px !important;
padding-right: 10px !important;
margin-left: 10px !important;
margin-right: 10px !important;
}
.cm-header-1.cm-header-1,
.markdown-preview-section.markdown-preview-section h1 {
font-family: var(--font-title);
font-weight: 400;
text-shadow: 1px 1px rgba(0,0,0,0.05),
2px 2px rgba(0,0,0,0.05),
3px 3px rgba(0,0,0,0.05),
4px 4px rgba(0,0,0,0.05),
5px 5px rgba(0,0,0,0.05),
6px 6px rgba(0,0,0,0.05),
7px 7px rgba(0,0,0,0.05),
8px 8px rgba(0,0,0,0.05),
9px 9px rgba(0,0,0,0.05)
}
.theme-light .cm-header-1.cm-header-1,
.theme-light .markdown-preview-section.markdown-preview-section h1 {
text-shadow: 1px 1px rgba(0,0,0,0.02),
2px 2px rgba(0,0,0,0.02),
3px 3px rgba(0,0,0,0.02),
4px 4px rgba(0,0,0,0.02),
5px 5px rgba(0,0,0,0.02),
6px 6px rgba(0,0,0,0.02),
7px 7px rgba(0,0,0,0.02),
8px 8px rgba(0,0,0,0.02),
9px 9px rgba(0,0,0,0.02)
}
.markdown-preview-section.markdown-preview-section h1 {
text-align: center;
}
.markdown-preview-section h2,
.markdown-preview-section.markdown-preview-section h2,
.markdown-preview-section.markdown-preview-section h3,
.markdown-preview-section.markdown-preview-section h4,
.markdown-preview-section.markdown-preview-section h5,
.markdown-preview-section.markdown-preview-section h6
{
font-family: var(--font-headings);
font-weight: 600;
}
/* @settings
name: Vileplume settings
id: vileplume-settings
settings:
-
id: h1-size
title: Title size
description: Font size of your level 1 headings (#), in ems
type: variable-number
default: 3
format: em
*/
.cm-header-1.cm-header-1,
.markdown-preview-section.markdown-preview-section h1
{
color: var(--text-title-h1);
line-height: 0.75;
}
.cm-header-2,
.markdown-preview-section h2
{
color: var(--text-title-h2);
}
.cm-header-3,
.markdown-preview-section h3
{
color: var(--text-title-h3);
}
.cm-header-4,
.markdown-preview-section h4
{
color: var(--text-title-h4);
}
.cm-header-5,
.markdown-preview-section h5
{
color: var(--text-title-h5);
}
.cm-header-6,
.markdown-preview-section h6
{
color: var(--text-title-h6);
}
.suggestion-item.is-selected
{
background-color: var(--background-secondary);
}
.empty-state-container:hover
{
background-color: var(--background-secondary-alt);
border: 5px solid var(--interactive-accent) !important;
}
.checkbox-container
{
background-color: var(--interactive-before);
}
.mod-cta
{
/* color: var(--background-secondary-alt) !important; */
font-weight: 600 !important;
}
.mod-cta:hover
{
background-color: var(--interactive-before) !important;
font-weight: 600 !important;
}
.CodeMirror-cursor
{
background-color: var(--vim-cursor) !important;
opacity: 60% !important;
}
input.task-list-item-checkbox {
border: 1px solid var(--frost3);
appearance: none;
-webkit-appearance: none;
}
input.task-list-item-checkbox:checked {
background-color: var(--frost2);
box-shadow: inset 0 0 0 2px var(--background-primary);
}
.mermaid .note
{
fill: var(--frost3) !important;
}
/****************************************************************************
BEGIN - My code! 😀
****************************************************************************/
.heading-collapse-indicator svg {
background: url('https://cdn.discordapp.com/attachments/560318304472793114/808721915627307058/lets_go_arrow.png');
background-size: contain;
width:12px;
height: 12px;
}
::-webkit-scrollbar {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
background-color: var(--dark3);
}
/* There's no current good way to select an image that is alone, and NOT style images that are inline */
/* span:only-child img {
display: block;
margin: 0 auto;
} */
.view-header {
border-bottom-width: 0;
box-shadow: 0 5px 5px rgba(0,0,0,0.1), 0 10px 5px rgba(0,0,0,0.1);
}
.nav-buttons-container {
justify-content: space-between;
}
.cm-hashtag {
--tag-color: white;
background-color: var(--yellow59);
border: 1px solid rgba(255,255,255,0.3);
box-shadow: 10px 10px 30px rgba(0,0,0,0.2);
}
.cm-hashtag-begin {
border-radius: 1em 0 0;
}
.cm-hashtag-end {
border-radius: 0 0 1em
}
a.tag {
--tag-color: white;
background-color: var(--yellow59);
box-shadow: inset 0px 0px 1px rgba(255,255,255,0.5), 10px 10px 30px rgba(0,0,0,0.2);
white-space: nowrap;
display: inline-block;
}
a.tag:hover {
color: var(--tag-color);
background-color: var(--yellow);
transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
text-decoration: none !important;
}
.dropdown {
background-image: url('https://cdn.discordapp.com/attachments/560318304472793114/808721915627307058/lets_go_arrow.png')
}
/* Triple class selector, to avoid using !important */
.cm-highlight.cm-highlight.cm-highlight,
.markdown-preview-view mark {
background-color: var(--text-mark);
}
.markdown-preview-view blockquote {
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.03);
padding: 10px 20px;
position: relative;
box-shadow: -10px -10px 30px rgba(255,255,255,0.05), 10px 10px 30px rgba(0,0,0,0.2);
background-color: rgba(255,255,255,0.01);
}
.markdown-preview-view blockquote::before {
content: "\201C";
position: absolute;
font-size: 3em;
top: 0.3em;
left: -0.15em;
}
/* GRAPH VIEW */
.theme-dark .graph-view.color-fill {
color: white;
}
.theme-dark.graph-view.color-fill-highlight,
.theme-dark.graph-view.color-line-highlight
{
color: var(--interactive-accent-rgb);
}
.graph-view.color-text
{
color: var(--text-a-hover);
}
/*
.graph-view.color-line
{
color: var(--background-modifier-border);
}
*/
.theme-light .graph-view.color-fill
{
color: var(--background-secondary);
}
.graph-view.color-fill-highlight {
color: var(--interactive-accent);
}
.graph-view.color-circle-highlight {
color: var(--text-normal);
}
.theme-dark .graph-view.color-fill-tag {
color: var(--yellow);
}
.theme-dark .graph-view.color-fill-attachment {
color: var(--red);
}
.theme-dark .graph-view.color-fill-unresolved {
color: var(--bloddish64);
}
/* END GRAPH VIEW */
.status-bar {
position: absolute;
bottom: 0;
right: 0;
padding: 0;
border-radius: 5px 0 0 0;
box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

View File

@@ -0,0 +1,850 @@
@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400;1,500&family=Karla:ital,wght@0,400;0,600;1,400;1,600&family=Rubik:ital,wght@0,400;0,600;1,400;1,600&display=swap");
/*------------- --------------------*/
/* Typography */
/*------------- --------------------*/
/*-----------------------------*/
/* Colors */
/*-----------------------------*/
/* @settings
name: Night Owl Theme
id: night-owl-theme
settings:
-
id: night-owl-typography
title: Colors
type: heading
level: 3
-
id: text-bold-color
title: Bold Color
type: variable-color
format: hex
default: '#50fa7b'
-
id: text-italic-color
title: Italic Color
type: variable-color
format: hex
default: '#ffeb95'
-
id: text-italic-bold-color
title: Italic Bold Color
type: variable-color
format: hex
default: '#b380fb'
*/
/*-------------------------------------*/
/* CSS Variables */
/*-------------------------------------*/
:root {
--font-size-normal: 18px;
--font-size-code: 15px;
--font-size-side-dock: 15px;
--font-size-side-dock-title: 18px;
--font-size-status-bar: 15px;
--font-size-h1: 30px;
--font-size-h2: 25px;
--font-size-h3: 21px;
--font-size-h4: 20px;
--font-size-h5: 19px;
--font-size-h6: 18px;
--font-family-editor: IBM Plex Mono, Menlo, Monaco, Courier New, monospace;
--font-text: Karla, Avenir Next, Helvetica, Arial, sans-serif;
--font-family-preview: Karla, Avenir Next, Helvetica, Arial, sans-serif;
--font-family-preview-heading: Rubik, Avenir Next, Helvetica, Arial, sans-serif;
--primary-lavender: #b380fb;
}
.theme-light,
.theme-dark {
--background-primary: hsl(207deg, 95%, 8%);
--background-primary-alt: #011c32;
--background-secondary: #011c32;
--background-secondary-alt: #02223c;
--background-accent: #f8f8f2;
--background-modifier-border: #f8f8f2;
--background-modifier-form-field: rgba(0, 0, 0, 0.2);
--background-modifier-form-field-highlighted: rgba(0, 0, 0, 0.5);
--background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
--background-modifier-success: #50fa7b; /*no sure*/
--background-modifier-error: #3d0000; /*no sure*/
--background-modifier-error-rgb: 61, 0, 0;
--background-modifier-error-hover: #470000;
--background-modifier-cover: rgba(0, 0, 0, 0.6);
--text-accent: #ffeb95;
--text-accent-hover: #8be9fd;
--text-bold-color: #50fa7b;
--text-italic-color: #ffeb95;
--text-italic-bold-color: #b380fb;
--text-normal: #f8f8f2;
--text-muted: #f8f8f2;
--text-faint: #7fdbca;
--text-highlight-bg: hsla(61deg, 100%, 32%, 0.8);
--text-error: #ff79c6;
--text-error-hover: #ff79c6;
--text-selection: #6272a4; /* Chromium precess this color with alpha channel */
--text-on-accent: #bd93f9;
--interactive-normal: #ffb86c;
--interactive-hover: #ff5555;
--interactive-accent: #ffeb95;
--interactive-accent-rgb: 123, 108, 217;
--interactive-accent-hover: #ff5555;
--scrollbar-active-thumb-bg: #282a36;
--scrollbar-bg: #282a36;
--scrollbar-thumb-bg: #282a36;
--text-title-h1: #ff79c6;
--text-title-h2: #82aaff;
--text-title-h3: #c5e478;
--text-title-h4: #ffb86c;
--text-title-h5: #50fa7b;
--text-title-h6: #8be9fd;
--inline-code: #bd93f9;
--code-block: #8be9fd;
--pre-code: #44475a;
--blockquote-border: #ffb86c;
--vim-cursor: #ff5555;
--border-color: #2b2727; /*also like transparent*/
}
/*-------------------------------------*/
/* Search the following lines */
/* to jump to specific section */
/*-------------------------------------*/
/* resize-handle and borders */
/* tags */
/* link */
/* Cursor */
/* basic format in EDITOR and PREVIEW */
/* Headings - EDITOR and PREVIEW */
/* Code block in Preview */
/* Code block in Editor */
/* Brackets */
/* Blockquote */
/* table */
/* Checkbox */
/* html in editor */
/* popover */
/* Side panel */
/* internal embedded link in preview */
/* graph view */
/* settings */
/* Hide side bar */
/* width of content */
/* note header bar for non-andy mode */
/* andy mode activated in light mode */
/* at a rule line before ul list *
/* Hide Scrollbar (recommend for mac) */
/*-------------------------------------*/
/***************************************/
/* resize-handle and borders */
/***************************************/
/*vertical resize-handle*/
.workspace-split.mod-vertical > * > .workspace-leaf-resize-handle,
.workspace-split.mod-left-split > .workspace-leaf-resize-handle,
.workspace-split.mod-right-split > .workspace-leaf-resize-handle {
width: 1px !important;
background-color: var(--border-color);
}
/*horizontal resize-handle*/
.workspace-split.mod-horizontal > * > .workspace-leaf-resize-handle {
height: 1px !important;
background-color: var(--border-color);
}
/*workspace ribbon when collapsed*/
.workspace-ribbon.is-collapsed {
background-color: var(--background-primary-alt);
}
/*the vertical split*/
.workspace-split.mod-root .workspace-split.mod-vertical .workspace-leaf-content,
.workspace-split.mod-vertical > .workspace-split,
.workspace-split.mod-vertical > .workspace-leaf,
.workspace-tabs {
padding-right: 0px;
}
/*status-bar*/
.status-bar {
font-size: var(--font-size-status-bar);
background-color: var(--background-secondary-alt);
border-top: 0px;
}
.document-search-container {
border-top: 0px;
border-right: 0px;
z-index: inherit;
}
.workspace-ribbon.mod-left.is-collapsed {
border-right: 1px solid var(--border-color);
}
.workspace-ribbon.mod-right.is-collapsed {
border-left: 1px solid var(--border-color);
}
/*************************************/
/* tags */
/*************************************/
/* Tag hover in preview */
a.tag:hover {
color: var(--text-accent) !important;
}
/* Tag Color in editor and preview*/
.cm-hashtag,
a.tag {
color: var(--text-accent-hover) !important;
text-decoration: none !important;
font-style: normal !important;
}
/*********************************/
/* link */
/*********************************/
/* link */
a,
.internal-link,
.cm-hmd-internal-link,
.cm-link,
.cm-formatting-link,
.cm-url {
text-decoration: none !important;
}
/* the url string in editor */
.cm-s-obsidian span.cm-string {
color: var(--text-accent-hover) !important;
}
/* make external links italics to differentiate */
a:not(.internal-link) {
font-style: italic;
}
/*footnote*/
.cm-s-obsidian pre.HyperMD-footnote span.cm-hmd-footnote,
.cm-s-obsidian span.cm-footref {
color: var(--text-accent) !important;
}
/***************************************/
/* Cursor */
/***************************************/
/* Cursor color and opacity */
.cm-fat-cursor .CodeMirror-cursor,
.cm-animate-fat-cursor {
width: 0.5em;
background: var(--vim-cursor);
opacity: 60% !important;
}
/**************************************/
/* basic format in EDITOR and PREVIEW */
/**************************************/
/* font for everything outside of editor/preview panes */
.app-container {
font-family: var(--font-family-preview);
}
/* set the text selection color for preview mode */
::selection {
background-color: var(--text-selection);
}
/* normal text outside of headings and code of editor */
.cm-s-obsidian,
.mod-single-child .cm-s-obsidian {
font-family: var(--font-family-editor);
font-size: var(--font-size-normal);
}
/* bold in preview and editor */
strong,
.cm-strong {
font-weight: 600;
color: var(--text-bold-color);
}
/* emphasis in preview and editor */
em,
.cm-em {
color: var(--text-italic-color);
font-style: italic;
}
.cm-em.cm-strong {
color: var(--text-italic-bold-color);
}
/* strikethrough in preview and editor */
s,
.cm-strikethrough {
color: var(--text-muted);
}
/* list in editor */
.cm-s-obsidian span.cm-formatting-list {
color: var(--text-normal) !important;
}
/* horizontal line in preview */
.markdown-preview-view hr {
background-color: var(--text-faint) !important;
}
/* embedded images */
img {
display: block;
margin-left: auto;
margin-right: auto;
}
/* img hover zoom out img*/
img:hover {
transform: scale(1.04);
transition: transform 0.25s ease-in-out 0s;
}
.community-theme img:hover {
transform: none;
}
/***************************************/
/* Code block in Preview */
/***************************************/
/* code blocks in preview */
pre code {
font-family: monaco !important;
font-size: var(--font-size-code) !important;
padding: 6px !important;
line-height: normal;
display: block;
color: var(--code-block) !important;
}
/* padding of code blocks in preview */
.markdown-preview-view pre {
padding: 0px !important;
}
/* font-size of in-line block for preview */
.markdown-preview-view code {
font-size: var(--font-size-code);
}
/* remove the shadow that typically affect light mode */
.theme-dark code[class*=language-],
.theme-dark pre[class*=language-],
.theme-light code[class*=language-],
.theme-light pre[class*=language-] {
text-shadow: none !important;
color: var(--text-faint) !important;
background-color: var(--pre-code);
}
/***************************************/
/* Brackets */
/***************************************/
.cm-s-obsidian span.cm-formatting-link {
color: var(--text-accent) !important;
}
/***************************************/
/* Blockquote */
/***************************************/
/* for editor */
.cm-quote {
color: var(--text-normal) !important;
font-style: italic;
}
/* for preview */
.markdown-preview-view blockquote {
background-color: var(--pre-code);
border: 0px solid;
border-color: var(--blockquote-border) !important;
border-left-width: 4px !important;
border-radius: 0 8px 8px 0;
line-height: 1.5em;
margin: 30px 0px;
font-style: italic;
}
/***************************************/
/* table */
/***************************************/
th {
font-weight: 800 !important;
}
.markdown-preview-view th {
font-weight: 800;
background-color: var(--background-secondary) !important;
}
thead {
border-bottom: 3px solid var(--background-modifier-border);
}
.table {
padding: 4px;
line-height: normal;
display: block;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
/***************************************/
/* popover */
/***************************************/
.popover {
border: 1px solid var(--border-color);
background-color: var(--background-secondary);
}
/***************************************/
/* Side panel */
/***************************************/
/* search result in backlink or file search */
.search-result-file-title {
font-size: 15px;
}
.search-result-file-matches,
.search-empty-state {
font-size: var(--font-size-side-dock);
}
/*decrease the spacing between result items*/
.search-result-file-title,
.search-result-file-match {
padding: 0px 10px;
}
.nav-file-title,
.nav-folder-title {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
/*backlink pane*/
.workspace-leaf-content[data-type=backlink] .view-content {
background-color: var(--background-secondary);
}
.workspace-leaf-content[data-type=tag] .tag-pane-tag-count,
.workspace-leaf-content[data-type=tag] .tag-pane-tag-text {
font-size: var(--font-size-side-dock);
}
.workspace-leaf-content[data-type=backlink] .search-result-file-matches {
font-size: var(--font-size-side-dock);
}
/***************************************/
/* internal embedded link in preview */
/***************************************/
/* Naked Embeds */
.markdown-embed-title {
display: none;
}
.markdown-preview-view .markdown-embed-content > :first-child {
margin-top: 0;
}
.markdown-preview-view .markdown-embed-content > :last-child {
margin-bottom: 0;
}
/*remove the following two line, you will get border and scroll*/
.markdown-preview-view .markdown-embed {
border: none;
padding: 0;
margin: 0;
}
.markdown-preview-view .markdown-embed-content {
max-height: unset;
background-color: var(--background-secondary);
}
/* the link on the top right corner*/
.markdown-embed-link {
color: var(--text-faint) !important;
}
.markdown-embed-link:hover {
color: var(--text-accent) !important;
}
/***************************************/
/* graph view */
/***************************************/
.graph-view.color-circle,
.graph-view.color-fill-highlight,
.graph-view.color-line-highlight {
color: var(--text-accent) !important;
}
.graph-view.color-text {
color: var(--text-normal) !important;
}
.graph-view.color-line {
color: #6272a4;
}
.graph-view.color-fill {
color: var(--text-muted);
}
.workspace-leaf-content[data-type=graph] .view-content {
background-color: var(--background-primary);
}
/***************************************/
/* settings */
/***************************************/
.modal.mod-settings button:not(.mod-cta):hover {
background-color: var(--interactive-accent-hover);
}
/***************************************/
/* Hide side bar */
/***************************************/
.workspace-ribbon:not(:hover) .workspace-ribbon-collapse-btn,
.workspace-ribbon:not(:hover) .side-dock-actions,
.workspace-ribbon:not(:hover) .side-dock-settings {
display: none;
transition: all 300ms ease-in-out;
}
.workspace-ribbon:not(:hover) {
width: 0px;
transition: all 300ms ease-in-out;
}
.workspace-split.mod-left-split {
margin-left: 0px;
}
.workspace-split.mod-right-split {
margin-right: 0px;
}
/***************************************/
/* width of content */
/***************************************/
.markdown-source-view.is-readable-line-width .CodeMirror {
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
.markdown-preview-view.is-readable-line-width .markdown-preview-section {
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
/* shift sticky position, so titles will stack up to the left */
/* This will currently stack to a maximum of 10 before resetting */
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-8) {
left: calc(var(--sticky-left) * 0);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-7) {
left: calc(var(--sticky-left) * 1);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-6) {
left: calc(var(--sticky-left) * 2);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-5) {
left: calc(var(--sticky-left) * 3);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-4) {
left: calc(var(--sticky-left) * 4);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-3) {
left: calc(var(--sticky-left) * 5);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-2) {
left: calc(var(--sticky-left) * 6);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n-1) {
left: calc(var(--sticky-left) * 7);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n+0) {
left: calc(var(--sticky-left) * 8);
}
.theme-light .mod-root.workspace-split.mod-vertical > div:nth-child(10n+1) {
left: calc(var(--sticky-left) * 9);
}
/* now it's time for the fancy vertical titles */
/* first we'll add a bit of gap for the title to sit inside of */
.theme-light .workspace-leaf-content {
padding-left: var(--sticky-left);
position: relative;
}
/* this is where the magic happens */
.theme-light .view-header {
writing-mode: vertical-lr;
border-right: 1px solid var(--border-color);
border-left: 0px !important;
border-top: none;
border-bottom: none;
height: auto;
width: 36px;
position: absolute;
left: 0;
top: 0;
bottom: 0;
background-color: var(--background-primary) !important;
}
/* fix the long-title-obscuring shadows */
.theme-light .view-header-title-container:after {
width: 100%;
height: 30px;
top: unset;
bottom: 0;
background: linear-gradient(to bottom, transparent, var(--background-primary)) !important;
}
/* unset the title container height and swap padding */
.theme-light .view-header-title-container {
height: unset;
padding-left: unset;
padding-top: 5px;
}
/* active titles have different border colours */
.theme-light .workspace-leaf.mod-active .view-header {
background-color: var(--background-secondary-alt) !important;
border-right: 3px solid var(--interactive-accent) !important;
border-left: 0px;
border-bottom: none;
}
/* swap the padding/margin around for the header and actions icons */
.theme-light .view-header-icon,
.theme-light .view-actions {
padding: 10px 5px;
}
.theme-light .view-action {
margin: 8px 0;
}
/* get rid of the gap left by the now-missing horizontal title */
.theme-light .view-content {
height: 100%;
}
/* make the fake drop target overlay have a background so you can see it. */
/* TODO: figure out how the fake target overlay works so we can put the title back, too */
.theme-light .workspace-fake-target-overlay {
background-color: var(--background-primary);
}
/*preview padding too small*/
.theme-light .markdown-preview-view,
.theme-light .mod-single-child .markdown-preview-view {
font-family: var(--font-family-editor);
font-size: var(--font-size-normal);
padding-top: 5px;
padding-left: 4% !important;
padding-right: 2% !important;
}
/***************************************/
/* at a rule line before ul list */
/***************************************/
ul ul {
position: relative;
}
ul ul::before {
content: "";
border-left: 1px solid var(--border-color);
position: absolute;
}
ul ul::before {
left: -1em;
top: 0;
bottom: 0;
}
/***************************************/
/* Code block in Editor */
/***************************************/
/* in-line block for editor */
.cm-s-obsidian span.cm-inline-code,
.cm-s-obsidian span.cm-inline-code.cm-hmd-indented-code,
.cm-s-obsidian span.cm-inline-code:not(.cm-formatting):not(.cm-hmd-indented-code) {
background-color: var(--pre-code-bg);
color: var(--inline-code) !important;
bottom: 0px !important;
}
/* Editor CodeBlock TEXT Appearance */
.cm-s-obsidian pre.HyperMD-codeblock {
font-family: monaco !important;
font-size: var(--font-size-code) !important;
padding: 1px !important;
display: block;
color: var(--code-block) !important;
font-weight: 500;
text-indent: 0px !important;
}
/*remove the border of codeblock in editor */
.HyperMD-codeblock-bg {
border: 0px !important;
}
/*an active line highlight in vim normal mode
.cm-fat-cursor .CodeMirror-activeline .CodeMirror-linebackground{
background-color: var(--text-selection) !important;
} */
/* in-line block for preview */
code {
color: var(--inline-code) !important;
bottom: 0px !important;
}
/* graph css */
.theme-dark .graph-view.color-arrow {
color: #50fa7b;
}
.theme-dark .graph-view.color-fill-tag {
color: #ffb86c;
}
.theme-dark .graph-view.color-fill-attachment {
color: #ff5555;
}
.theme-dark .graph-view.color-fill-unresolved {
color: #6272a4;
}
.search-result-collapse-indicator {
position: absolute;
left: 0;
top: -3px;
color: var(--text-faint);
transition: transform 100ms ease-in-out;
padding: 0px !important;
}
body {
font-size: var(--font-size-normal);
}
.nav-file-title,
.nav-folder-title {
border: 1px solid transparent;
border-radius: 3px;
cursor: pointer;
color: var(--text-muted);
font-size: 1rem;
line-height: 20px;
padding: 1px 20px 0 26px;
position: relative;
white-space: nowrap;
width: max-content;
min-width: 100%;
}
.markdown-preview-view .list-collapse-indicator {
margin-left: -60px;
padding-left: 8px;
}
/* rule line when there are checkboxes*/
ul .task-list-item ul::before {
left: 0.15em !important;
}
/***************************************/
/* Checkbox */
/***************************************/
.markdown-preview-view .task-list-item-checkbox {
-webkit-appearance: none;
top: 0.2em !important;
right: 8px;
box-sizing: border-box;
position: relative;
width: 1rem;
height: 1rem;
margin: 0;
box-shadow: 0 0 0.1em var(--text-muted);
}
.markdown-preview-view .task-list-item-checkbox:checked::before {
content: "✓";
position: absolute;
left: -1px;
top: -3px;
color: var(--text-accent);
font-size: 1rem;
line-height: 1.25rem;
width: 1.2rem;
text-align: center;
text-shadow: 0 0 0.1rem var(--text-accent);
}
.markdown-preview-view ul > li.task-list-item.is-checked {
text-decoration: none;
}
.checkbox-container {
background-color: var(--background-primary);
}
/**************************************/
/* note header bar for non-andy mode */
/* activated in dark mode */
/**************************************/
/* header */
.theme-dark .view-header {
background-color: var(--background-primary) !important;
border-top: 1px solid var(--border-color) !important;
border-bottom: 1px solid var(--border-color) !important;
}
.theme-dark .view-header-title-container:after {
background: linear-gradient(to bottom, transparent, var(--background-primary)) !important;
}
.theme-dark .workspace-leaf.mod-active .view-header {
background-color: var(--background-primary-alt) !important;
border-top: 0px !important;
border-bottom: 3px solid var(--interactive-accent) !important;
}
.workspace-leaf.mod-active .view-header-title-container:after {
background: linear-gradient(to bottom, transparent, var(--background-secondary-alt)) !important;
}
.workspace-leaf.mod-active .view-header-title,
.workspace-leaf.mod-active .view-header-icon {
color: var(--background-modifier-border);
}
.view-header-title,
.view-header-icon,
.view-action {
color: var(--text-faint);
}
.cm-header-1,
.cm-header-2,
.cm-header-3,
.cm-header-4,
.cm-header-5,
.cm-header-6 {
font-weight: 500;
}
.cm-header-1 {
font-size: var(--font-size-h1);
color: var(--text-title-h1);
}
.cm-header-2 {
font-size: var(--font-size-h2);
color: var(--text-title-h2);
}
.cm-header-3 {
font-size: var(--font-size-h3);
color: var(--text-title-h3);
}
.cm-header-4 {
font-size: var(--font-size-h4);
color: var(--text-title-h4);
}
.cm-header-5 {
font-size: var(--font-size-h5);
color: var(--text-title-h5);
}
.cm-header-6 {
font-size: var(--font-size-h6);
color: var(--text-title-h6);
}
.markdown-preview-view h1 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h1);
color: var(--text-title-h1);
}
.markdown-preview-view h2 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h2);
color: var(--text-title-h2);
}
.markdown-preview-view h3 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h3);
color: var(--text-title-h3);
}
.markdown-preview-view h4 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h4);
color: var(--text-title-h4);
}
.markdown-preview-view h5 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h5);
color: var(--text-title-h5);
}
.markdown-preview-view h6 {
font-family: var(--font-family-preview-heading);
font-size: var(--font-size-h6);
color: var(--text-title-h6);
}
.markdown-preview-view h1 {
font-weight: 900;
}
.markdown-preview-view h2 {
font-weight: 800;
}
.markdown-preview-view h3 {
font-weight: 700;
}
.markdown-preview-view h4 {
font-weight: 600;
}
.markdown-preview-view h5,
.markdown-preview-view h6 {
font-weight: 500;
}
.markdown-source-view.mod-cm6 .HyperMD-task-line[data-task]:not([data-task=" "]) {
text-decoration: none;
}
.markdown-source-view.mod-cm6 .is-unresolved {
opacity: 1;
}
.markdown-source-view.mod-cm6 .is-unresolved .cm-hmd-internal-link::after {
content: "↩️";
width: 30px;
height: 30px;
margin-left: 3px;
font-size: 0.8rem;
opacity: 0.5;
}
.statediagram-note rect {
fill: var(--background-secondary-alt) !important;
stroke: #fff !important;
}
* {
border: 1px solid cyan !important;
}