mirror of
https://github.com/prettyboycosmo/ProtocolBlue.git
synced 2026-07-22 03:30:23 +00:00
440 lines
11 KiB
CSS
440 lines
11 KiB
CSS
/* ProtocolBlue - CosmodiumCS Obsidian Theme */
|
|
/* created by : bluecosmo */
|
|
|
|
/* colors */
|
|
:root
|
|
{
|
|
/* theme colors */
|
|
--dark0: #242424;
|
|
--dark1: #202020;
|
|
--dark2: #393939;
|
|
--dark3: #424242;
|
|
--light0: #d8dee9;
|
|
--light1: #e5e9f0;
|
|
--light2: #eceff4;
|
|
--light3: #ffffff;
|
|
--frost0: #8fbcbb;
|
|
--frost1: #88c0d0;
|
|
--frost3: #81a1c1;
|
|
--frost5: #5e81ac;
|
|
--teal0: #009999;
|
|
--teal1: #00c8ff;
|
|
--teal2: #00fff2;
|
|
--teal3: #3aa0b9;
|
|
--teal4: #007991;
|
|
|
|
/* syntax highlighting */
|
|
--red: #ff5c5c;
|
|
--orange: #ff9035;
|
|
--yellow: #eeec79;
|
|
--green: #37c991;
|
|
--blue: #63c8da;
|
|
--purple: #d469c1;
|
|
--pink: #eb95db;
|
|
}
|
|
|
|
/* main */
|
|
body
|
|
{
|
|
/* accent color */
|
|
--accent-h: 180;
|
|
--accent-s: 100%;
|
|
--accent-l: 30%;
|
|
|
|
/* links */
|
|
--link-decoration: none;
|
|
--link-decoration-hover: none;
|
|
--link-external-decoration: none;
|
|
--link-external-decoration-hover: none;
|
|
|
|
/* tags */
|
|
--tag-decoration: none;
|
|
--tag-decoration-hover: underline;
|
|
--tag-padding-x: .5em;
|
|
--tag-padding-y: .2em;
|
|
--tag-radius: .5em;
|
|
|
|
/* fonts */
|
|
--tab-font-weight: 600;
|
|
--bold-weight: 600;
|
|
|
|
/* lists */
|
|
--checkbox-radius: 0;
|
|
/* --list-indent: 2em; */
|
|
|
|
/* embeds */
|
|
--embed-border-left: 6px double var(--interactive-accent);
|
|
}
|
|
|
|
/* theme */
|
|
.theme-dark
|
|
{
|
|
/* color placement */
|
|
--color-teal0-rgb: var(--teal0);
|
|
--color-teal0: var(--teal0);
|
|
--color-light3-rgb: var(--light3);
|
|
--color-light3: var(--light3);
|
|
--color-frost1-rgb: var(--frost1);
|
|
--color-frost1: var(--frost1);
|
|
--color-cyan-rgb: var(--frost1);
|
|
--color-cyan: var(--frost1);
|
|
--color-blue-rgb: var(--frost5);
|
|
--color-blue: var(--frost5);
|
|
--color-frost0-rgb: var(--frost0);
|
|
--color-frost0: var(--frost0);
|
|
--color-teal0-rgb: var(--teal0);
|
|
--color-teal0: var(--teal0);
|
|
|
|
/* syntax colors */
|
|
--color-red: var(--red);
|
|
--color-orange: var(--orange);
|
|
--color-yellow: var(--yellow);
|
|
--color-green: var(--green);
|
|
--color-blue: var(--blue);
|
|
--color-purple: var(--purple);
|
|
--color-pink: var(--pink);
|
|
|
|
/* background */
|
|
--background-primary: var(--dark0);
|
|
--background-primary-alt: var(--dark0);
|
|
--background-secondary: var(--dark0);
|
|
--background-secondary-alt: var(--dark0);
|
|
--background-modifier-border: var(--dark2);
|
|
|
|
--cursor-line-background: rgba(var(--teal0), 0.2);
|
|
|
|
/* text */
|
|
--text-normal: var(--light2);
|
|
--text-faint: var(--light0);
|
|
--text-muted: var(--light1);
|
|
--text-accent: var(--teal0);
|
|
--text-accent-hover: var(--light3);
|
|
--bold-color: var(--light3);
|
|
--italic-color: var(--light3);
|
|
|
|
/* links */
|
|
--link-url: var(--light3);
|
|
|
|
/* headers */
|
|
--h1-color: var(--teal0);
|
|
--h2-color: var(--frost0);
|
|
--h3-color: var(--frost1);
|
|
--h4-color: var(--teal3);
|
|
--h5-color: var(--teal4);
|
|
--h6-color: var(--light3);
|
|
|
|
/* highlighting */
|
|
--text-highlight-bg: var(--frost0);
|
|
--text-highlight-fg: var(--dark0);
|
|
|
|
/* tags */
|
|
--tag-color: var(--frost0);
|
|
--tag-background: var(--dark0);
|
|
--tag-background-hover: var(--dark0);
|
|
|
|
/* title */
|
|
--titlebar-text-color-focused: var(--teal0);
|
|
--inline-title-color: var(--frost0);
|
|
|
|
/* checkbox */
|
|
--checkbox-color: var(--frost0);
|
|
--checkbox-color-hover: var(--light3);
|
|
--checkbox-border-color: var(--light3);
|
|
--checkbox-border-color-hover: var(--frost0);
|
|
--checklist-done-color: var(--frost0);
|
|
|
|
/* table */
|
|
--table-header-background: var(--teal4);
|
|
--table-header-background-hover: var(--teal3);
|
|
--table-row-even-background: var(--dark3);
|
|
--table-row-odd-background: var(--dark2);
|
|
--table-row-background-hover: var(--frost5);
|
|
|
|
--text-selection: var(--teal4);
|
|
--flashing-background: var(--teal4);
|
|
|
|
/* code blocks */
|
|
--code-normal: var(--frost1);
|
|
--code-background: var(--dark1);
|
|
|
|
/* mermaid notes */
|
|
--mermaid-note: var(--frost5);
|
|
--mermaid-loopline: var(--frost1);
|
|
--mermaid-exclude: var(--dark0);
|
|
--mermaid-seqnum: var(--dark0);
|
|
|
|
/* icons */
|
|
--icon-color-hover: var(--teal0);
|
|
--icon-color-focused: var(--teal0);
|
|
--nav-item-color-hover: var(--teal0);
|
|
--nav-item-color-active: var(--light3);
|
|
--nav-file-tag: var(--teal2);
|
|
|
|
/* graphs */
|
|
--graph-line: var(--dark2);
|
|
--graph-node: var(--teal2);
|
|
--graph-node-tag: var(--teal4);
|
|
--graph-node-attachment: var(--teal1);
|
|
|
|
/* calendar */
|
|
--calendar-hover: var(--teal0);
|
|
--calendar-background-hover: var(--dark0);
|
|
--calendar-week: var(--frost0);
|
|
--calendar-today: var(--frost0);
|
|
|
|
/* dataview */
|
|
--dataview-key: var(--text-faint);
|
|
--dataview-key-background: rgba(var(--frost3), 0.3);
|
|
--dataview-value: var(--text-faint);
|
|
--dataview-value-background: rgba(var(--teal0), 0.3);
|
|
|
|
/* view */
|
|
--tab-text-color-focused-active: var(--light3);
|
|
--tab-text-color-focused-active-current: var(--teal0);
|
|
}
|
|
|
|
table
|
|
{
|
|
border: 1px solid var(--background-secondary) !important;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
thead
|
|
{
|
|
border-bottom: 2px solid var(--background-modifier-border) !important;
|
|
}
|
|
|
|
th
|
|
{
|
|
font-weight: 600 !important;
|
|
border: 1px solid var(--background-secondary) !important;
|
|
}
|
|
|
|
td
|
|
{
|
|
border-left: 1px solid var(--background-secondary) !important;
|
|
border-right: 1px solid var(--background-secondary) !important;
|
|
border-bottom: 1px solid var(--background-secondary) !important;
|
|
}
|
|
|
|
.markdown-rendered tbody tr:nth-child(even)
|
|
{
|
|
background-color: var(--table-row-even-background) !important;
|
|
}
|
|
|
|
.markdown-rendered tbody tr:nth-child(odd)
|
|
{
|
|
background-color: var(--table-row-odd-background) !important;
|
|
}
|
|
|
|
.markdown-rendered tbody tr:nth-child(even):hover,
|
|
.markdown-rendered tbody tr:nth-child(odd):hover
|
|
{
|
|
background-color: var(--table-row-background-hover) !important;
|
|
}
|
|
|
|
.markdown-rendered mark
|
|
{
|
|
background-color: var(--text-highlight-bg);
|
|
color: var(--text-highlight-fg);
|
|
}
|
|
|
|
.markdown-rendered mark a
|
|
{
|
|
color: var(--teal0) !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.search-result-file-matched-text
|
|
{
|
|
color: var(--text-highlight-fg) !important;
|
|
}
|
|
|
|
.cm-hashtag-begin:hover, .cm-hashtag-end:hover
|
|
{
|
|
color: var(--text-accent);
|
|
/* background-color: var(--tag-background-hover); */
|
|
text-decoration: underline;
|
|
}
|
|
|
|
input[type=checkbox]
|
|
{
|
|
border: 1px solid var(--checkbox-color);
|
|
}
|
|
|
|
input[type=checkbox]:checked
|
|
{
|
|
background-color: var(--checkbox-color);
|
|
box-shadow: inset 0 0 0 2px var(--background-primary);
|
|
}
|
|
|
|
input[type=checkbox]:checked:after
|
|
{
|
|
display: none;
|
|
}
|
|
|
|
code[class*="language-"],
|
|
pre[class*="language-"]
|
|
{
|
|
line-height: var(--line-height-tight) !important;
|
|
}
|
|
|
|
.cm-url
|
|
{
|
|
color: var(--link-url) !important;
|
|
}
|
|
|
|
.cm-url:hover
|
|
{
|
|
color: var(--text-accent-hover) !important;
|
|
}
|
|
|
|
/* Keep highlight/marks the same between viewer and editor. */
|
|
.cm-highlight
|
|
{
|
|
color: var(--text-highlight-fg) !important;
|
|
}
|
|
|
|
/* Keep inline code the same between viewer and editor. */
|
|
.cm-inline-code
|
|
{
|
|
border-radius: var(--radius-s);
|
|
font-size: var(--code-size);
|
|
padding: 0.1em 0.25em;
|
|
}
|
|
|
|
.cm-formatting-code + .cm-inline-code
|
|
{
|
|
border-radius: 0;
|
|
padding: 0.1em 0;
|
|
}
|
|
|
|
.cm-formatting-code
|
|
{
|
|
border-radius: var(--radius-s) 0 0 var(--radius-s);
|
|
padding: 0.1em 0 0.1em 0.25em;
|
|
}
|
|
|
|
.cm-inline-code + .cm-formatting-code
|
|
{
|
|
border-radius: 0 var(--radius-s) var(--radius-s) 0;
|
|
padding: 0.1em 0.25em 0.1em 0;
|
|
}
|
|
|
|
.cm-line .cm-strong
|
|
{
|
|
color: var(--bold-color) !important;
|
|
}
|
|
|
|
/*
|
|
* Keep list bullet padding the same between viewer and editor.
|
|
* This is annoying with the cursor in the editor as there is a gap.
|
|
*/
|
|
/*
|
|
.cm-formatting-list
|
|
{
|
|
padding-right: 4px !important;
|
|
}
|
|
*/
|
|
|
|
/*
|
|
* Keep sub-list indenting the same between viewer and editor.
|
|
* This assumes --list-indent is default at 2em.
|
|
*/
|
|
/*
|
|
.cm-indent
|
|
{
|
|
text-indent: 1em !important;
|
|
}
|
|
*/
|
|
|
|
.mermaid .note
|
|
{
|
|
fill: var(--mermaid-note) !important;
|
|
}
|
|
|
|
.mermaid .loopLine,
|
|
{
|
|
stroke: var(--mermaid-loopline) !important;
|
|
}
|
|
|
|
.mermaid .loopText>tspan,
|
|
.mermaid .entityLabel
|
|
{
|
|
fill: var(--teal0) !important;
|
|
}
|
|
|
|
.mermaid .exclude-range
|
|
{
|
|
fill: var(--mermaid-exclude) !important;
|
|
}
|
|
|
|
.mermaid .sequenceNumber
|
|
{
|
|
fill: var(--mermaid-seqnum) !important;
|
|
}
|
|
|
|
.calendar .week-num
|
|
{
|
|
color: var(--calendar-week) !important;
|
|
}
|
|
|
|
.calendar .today
|
|
{
|
|
color: var(--calendar-today) !important;
|
|
}
|
|
|
|
.calendar .week-num:hover,
|
|
.calendar .day:hover
|
|
{
|
|
color: var(--calendar-hover) !important;
|
|
background-color: var(--calendar-background-hover) !important;
|
|
}
|
|
|
|
.markdown-embed-title
|
|
{
|
|
color: var(--frost0);
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
.cm-active
|
|
{
|
|
background-color: var(--cursor-line-background) !important;
|
|
}
|
|
|
|
.nav-file-tag
|
|
{
|
|
color: var(--nav-file-tag) !important;
|
|
}
|
|
|
|
.is-flashing
|
|
{
|
|
background-color: var(--flashing-background) !important;
|
|
}
|
|
|
|
.dataview.inline-field-key
|
|
{
|
|
border-top-left-radius: var(--radius-s);
|
|
border-bottom-left-radius: var(--radius-s);
|
|
padding-left: 4px;
|
|
font-family: var(--font-monospace);
|
|
font-size: var(--font-smaller);
|
|
color: var(--dataview-key) !important;
|
|
background-color: var(--dataview-key-background) !important;
|
|
}
|
|
|
|
.dataview.inline-field-value
|
|
{
|
|
border-top-right-radius: var(--radius-s);
|
|
border-bottom-right-radius: var(--radius-s);
|
|
padding-right: 4px;
|
|
font-family: var(--font-monospace);
|
|
font-size: var(--font-smaller);
|
|
color: var(--dataview-value) !important;
|
|
background-color: var(--dataview-value-background) !important;
|
|
}
|
|
|
|
.suggestion-highlight
|
|
{
|
|
color: var(--teal0);
|
|
}
|