You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

339 lines
9.3 KiB

2 years ago
/* Base colors - TODO: are grey 1 and grey 2 used? */
2 years ago
.theme-dark {
2 years ago
--accent-h: 219;
--accent-s: 56%;
--accent-l: 55%;
2 years ago
--background-primary: #272b34;
--background-primary-alt: #20242b;
--background-secondary: #20242b;
--background-secondary-alt: #1a1e24;
--background-accent: #000;
--background-modifier-border: #424958;
--background-modifier-form-field: rgba(0, 0, 0, 0.3);
--background-modifier-form-field-highlighted: rgba(0, 0, 0, 0.22);
--background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
--background-modifier-success: #539126;
--background-modifier-error: #3d0000;
--background-modifier-error-rgb: 61, 0, 0;
--background-modifier-error-hover: #470000;
--background-modifier-cover: rgba(0, 0, 0, 0.6);
--text-accent: #61afef;
2 years ago
--text-accent-hover: #70bdfc;
2 years ago
--text-normal: #dcddde;
--text-muted: #888;
--text-faint: rgb(81, 86, 99);
--text-error: #e16d76;
--text-error-hover: #c9626a;
--text-highlight-bg: rgba(255, 255, 0, 0.4);
--text-selection: rgba(0, 122, 255, 0.2);
--text-on-accent: #dcddde;
--interactive-normal: #20242b;
--interactive-hover: #353b47;
2 years ago
--interactive-accent-hover: hsl(var(--accent-h), calc(var(--accent-s) + 5%), calc(var(--accent-l) - 10%));
2 years ago
--scrollbar-active-thumb-bg: rgba(255, 255, 255, 0.2);
--scrollbar-bg: rgba(255, 255, 255, 0.05);
--scrollbar-thumb-bg: rgba(255, 255, 255, 0.1);
--panel-border-color: #18191e;
--gray-1: #5C6370;
--gray-2: #abb2bf;
--red: #e06c75;
--orange: #d19a66;
--green: #98c379;
--aqua: #56b6c2;
--purple: #c678dd;
--blue: #61afef;
--yellow: #e5c07b;
2 years ago
--background-modifier-hover: hsla(var(--accent-h), calc(var(--accent-s) - 35%), var(--accent-l), 0.06);
--divider-color-hover: #404754;
2 years ago
}
.theme-light {
2 years ago
--accent-h: 230;
--accent-s: 83%;
--accent-l: 64%;
2 years ago
--background-primary: #fafafa;
--background-primary-alt: #eaeaeb;
--background-secondary: #eaeaeb;
--background-secondary-alt: #dbdbdc;
--background-accent: #fff;
--background-modifier-border: #dbdbdc;
--background-modifier-form-field: #fff;
--background-modifier-form-field-highlighted: #fff;
--background-modifier-box-shadow: rgba(0, 0, 0, 0.1);
--background-modifier-success: #A4E7C3;
--background-modifier-error: #e68787;
--background-modifier-error-rgb: 230, 135, 135;
--background-modifier-error-hover: #FF9494;
--background-modifier-cover: rgba(0, 0, 0, 0.8);
--text-accent: #1592ff;
2 years ago
--text-accent-hover: #097add;
2 years ago
--text-normal: #383a42;
--text-muted: #8e8e90;
--text-faint: #999999;
--text-error: #e75545;
--text-error-hover: #f86959;
--text-highlight-bg: rgba(255, 255, 0, 0.4);
--text-selection: rgba(0, 122, 255, 0.15);
--text-on-accent: #f2f2f2;
--interactive-normal: #eaeaeb;
--interactive-hover: #dbdbdc;
--interactive-accent-rgb: 21, 146, 255;
2 years ago
--interactive-accent-hover: hsl(var(--accent-h), calc(var(--accent-s) - 10%), calc(var(--accent-l) - 4%));
2 years ago
--scrollbar-active-thumb-bg: rgba(0, 0, 0, 0.2);
--scrollbar-bg: rgba(0, 0, 0, 0.05);
--scrollbar-thumb-bg: rgba(0, 0, 0, 0.1);
--panel-border-color: #dbdbdc;
--gray-1: #383a42;
--gray-2: #383a42;
--red: #e75545;
--green: #4ea24c;
--blue: #3d74f6;
--purple: #a625a4;
--aqua: #0084bc;
--yellow: #e35649;
--orange: #986800;
}
2 years ago
.theme-dark, .theme-light {
--ribbon-background: var(--background-primary);
--drag-ghost-background: var(--background-secondary-alt);
--background-modifier-message: var(--background-secondary-alt);
2 years ago
2 years ago
--tab-outline-color: transparent;
--divider-color: transparent;
2 years ago
2 years ago
--prompt-border-color: var(--panel-border-color);
--modal-border-color: var(--panel-border-color);
2 years ago
2 years ago
--background-modifier-border-hover: var(--interactive-hover);
--background-modifier-border-focus: var(--interactive-hover);
2 years ago
2 years ago
--checkbox-color: var(--text-accent);
--checkbox-color-hover: var(--text-accent-hover);
2 years ago
2 years ago
--nav-item-background-active: var(--interactive-accent);
--nav-item-color-active: #ffffff;
2 years ago
2 years ago
--tag-color: var(--yellow);
--tag-background: var(--background-primary-alt);
--tag-color-hover: var(--yellow);
--tag-background-hover: var(--background-primary-alt);
--tag-padding-x: 4px;
--tag-padding-y: 2px;
--tag-radius: 4px;
2 years ago
2 years ago
--inline-title-weight: var(--bold-weight);
--link-decoration: none;
--link-external-decoration: none;
--embed-padding: 0 0 0 var(--size-4-4);
2 years ago
}
2 years ago
/* Search */
.search-result .search-result-file-title {
2 years ago
cursor: pointer;
}
2 years ago
.search-result .collapse-icon {
cursor: var(--cursor);
2 years ago
}
2 years ago
.search-result:not(.is-collapsed) .search-result-file-title {
2 years ago
color: var(--blue);
}
2 years ago
/* File tab separators */
.workspace .mod-root .workspace-tab-header-inner::after {
right: unset;
left: -0.5px;
2 years ago
}
2 years ago
.workspace .mod-root .workspace-tab-header:last-child .workspace-tab-header-inner::before {
2 years ago
position: absolute;
2 years ago
right: -0.5px;
width: 1px;
background-color: var(--tab-divider-color);
content: '';
height: 20px;
2 years ago
}
2 years ago
.workspace .mod-root .workspace-tab-header.is-active .workspace-tab-header-inner::after,
.workspace .mod-root .workspace-tab-header.is-active .workspace-tab-header-inner::before,
.workspace .mod-root .workspace-tab-header:first-child .workspace-tab-header-inner::after,
.workspace .mod-root .workspace-tab-header.is-active + .workspace-tab-header .workspace-tab-header-inner::after {
opacity: 0;
2 years ago
}
2 years ago
/* Editor and output */
.markdown-rendered blockquote {
padding: var(--embed-padding);
2 years ago
}
2 years ago
mjx-container {
text-align: left !important;
2 years ago
}
.math-block {
2 years ago
font-size: 1.3em;
2 years ago
}
2 years ago
.theme-light :not(pre)>code,
.theme-light pre {
background: var(--background-primary);
box-shadow: inset 0 0 0 1px var(--background-primary-alt);
border-radius: 4px;
2 years ago
}
2 years ago
.markdown-preview-section > div h1,
.markdown-preview-section > div h2,
.markdown-preview-section > div h3,
.markdown-preview-section > div h4,
.markdown-preview-section > div h5,
.markdown-preview-section > div h6 {
margin-top: 40px;
2 years ago
}
2 years ago
.mod-header + div h1,
.mod-header + div h2,
.mod-header + div h3,
.mod-header + div h4,
.mod-header + div h5,
.mod-header + div h6 {
margin-top: 30px;
2 years ago
}
2 years ago
.cm-sizer > .inline-title {
margin-bottom: 20px;
2 years ago
}
2 years ago
/* Miscellaneous */
.theme-dark .dropdown:hover {
background-color: var(--background-modifier-form-field);
2 years ago
}
2 years ago
.tooltip {
color: var(--text-muted);
2 years ago
}
2 years ago
.nav-file, .nav-folder {
padding: 1px 2px;
2 years ago
}
2 years ago
body:not(.is-grabbing) .nav-file-title.is-being-dragged,
body:not(.is-grabbing) .nav-folder-title.is-being-dragged,
.nav-file-title.is-being-dragged,
.nav-folder-title.is-being-dragged {
background-color: var(--background-primary-alt);
color: var(--nav-item-color);
2 years ago
}
2 years ago
.view-header-title {
2 years ago
text-decoration: underline;
2 years ago
text-decoration-color: var(--text-muted);
text-underline-offset: 1.5px;
2 years ago
}
2 years ago
.status-bar {
border-color: var(--panel-border-color);
border-width: 1px;
padding: 4px 8px;
2 years ago
}
2 years ago
.theme-dark button.mod-warning {
--background-modifier-error: #d42020;
--background-modifier-error-hover: #b01515;
2 years ago
}
2 years ago
.theme-light button.mod-warning {
--background-modifier-error: #f23f3f;
--background-modifier-error-hover: #d72020;
2 years ago
}
2 years ago
/* Code syntax highlighting */
2 years ago
code[class*='language-'], pre[class*='language-'] {
text-align: left !important;
white-space: pre !important;
word-spacing: normal !important;
word-break: normal !important;
word-wrap: normal !important;
line-height: 1.5 !important;
tab-size: 4 !important;
hyphens: none !important;
}
pre[class*='language-'] {
2 years ago
/* Code blocks */
2 years ago
padding: 1em !important;
margin: .5em 0 !important;
overflow: auto !important;
}
:not(pre)>code[class*='language-'] {
2 years ago
/* Inline code */
2 years ago
padding: .1em !important;
border-radius: .3em !important;
white-space: normal !important;
}
2 years ago
.token.comment, .token.prolog, .token.doctype, .token.cdata,
.HyperMD-codeblock .cm-comment {
2 years ago
color: var(--gray-1) !important;
}
2 years ago
.token.punctuation,
.HyperMD-codeblock .cm-hmd-codeblock, .HyperMD-codeblock .cm-bracket {
2 years ago
color: var(--gray-2) !important;
}
2 years ago
.token.selector, .token.tag,
.HyperMD-codeblock .cm-tag, .HyperMD-codeblock .cm-property, .HyperMD-codeblock .cm-meta, .HyperMD-codeblock .cm-qualifier, .HyperMD-codeblock .cm-header, .HyperMD-codeblock .cm-quote, .HyperMD-codeblock .cm-hr, .HyperMD-codeblock .cm-link {
2 years ago
color: var(--red) !important;
}
2 years ago
.token.property, .token.boolean, .token.number, .token.constant, .token.symbol, .token.attr-name, .token.deleted,
.HyperMD-codeblock .cm-number, .HyperMD-codeblock .cm-atom, .HyperMD-codeblock .cm-attribute {
2 years ago
color: var(--orange) !important;
}
2 years ago
.token.string, .token.char, .token.attr-value, .token.builtin, .token.inserted,
.HyperMD-codeblock .cm-string, .HyperMD-codeblock .cm-builtin {
2 years ago
color: var(--green) !important;
}
2 years ago
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string,
.HyperMD-codeblock .cm-string-2, .HyperMD-codeblock .cm-operator {
2 years ago
color: var(--aqua) !important;
}
2 years ago
.token.atrule, .token.keyword,
.HyperMD-codeblock .cm-keyword {
2 years ago
color: var(--purple) !important;
}
2 years ago
.token.function, .token.macro.property,
.HyperMD-codeblock .cm-def, .HyperMD-codeblock .cm-variable {
2 years ago
color: var(--blue) !important;
}
2 years ago
.token.class-name,
.HyperMD-codeblock .cm-variable-2, .HyperMD-codeblock .cm-variable-3 {
2 years ago
color: var(--yellow) !important;
}
.token.regex, .token.important, .token.variable {
color: var(--purple) !important;
}
.token.important, .token.bold {
font-weight: bold !important;
}
.token.italic {
font-style: italic !important;
}
.token.entity {
cursor: help !important;
2 years ago
}