Format css file

This commit is contained in:
DefectingCat
2022-10-31 09:34:12 +08:00
parent 6200acb5e1
commit 502e624d90
2 changed files with 284 additions and 284 deletions

View File

@ -30,77 +30,77 @@
.dark code, .dark code,
.dark pre { .dark pre {
background: hsl(220, 13%, 18%); background: hsl(220, 13%, 18%);
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
text-shadow: 0 1px rgba(0, 0, 0, 0.3); text-shadow: 0 1px rgba(0, 0, 0, 0.3);
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono', /* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
monospace; */ monospace; */
font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace; font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace;
direction: ltr; direction: ltr;
text-align: left; text-align: left;
white-space: pre; white-space: pre;
word-spacing: normal; word-spacing: normal;
word-break: normal; word-break: normal;
line-height: 1.5; line-height: 1.5;
-moz-tab-size: 2; -moz-tab-size: 2;
-o-tab-size: 2; -o-tab-size: 2;
tab-size: 2; tab-size: 2;
-webkit-hyphens: none; -webkit-hyphens: none;
-moz-hyphens: none; -moz-hyphens: none;
-ms-hyphens: none; -ms-hyphens: none;
hyphens: none; hyphens: none;
} }
/* Selection */ /* Selection */
.dark code::-moz-selection, .dark code::-moz-selection,
.dark code *::-moz-selection, .dark code *::-moz-selection,
.dark pre *::-moz-selection { .dark pre *::-moz-selection {
background: hsl(220, 13%, 28%); background: hsl(220, 13%, 28%);
color: inherit; color: inherit;
text-shadow: none; text-shadow: none;
} }
.dark code::selection, .dark code::selection,
.dark code *::selection, .dark code *::selection,
.dark pre *::selection { .dark pre *::selection {
background: hsl(220, 13%, 28%); background: hsl(220, 13%, 28%);
color: inherit; color: inherit;
text-shadow: none; text-shadow: none;
} }
/* Code blocks */ /* Code blocks */
.dark pre { .dark pre {
padding: 1em; padding: 1em;
margin: 0.5em 0; margin: 0.5em 0;
overflow: auto; overflow: auto;
border-radius: 0.3em; border-radius: 0.3em;
} }
/* Inline code */ /* Inline code */
.dark :not(pre) > code { .dark :not(pre) > code {
padding: 0.2em 0.3em; padding: 0.2em 0.3em;
border-radius: 0.3em; border-radius: 0.3em;
white-space: normal; white-space: normal;
} }
/* Print */ /* Print */
@media print { @media print {
.dark code, .dark code,
.dark pre { .dark pre {
text-shadow: none; text-shadow: none;
} }
} }
.dark .token.comment, .dark .token.comment,
.dark .token.prolog, .dark .token.prolog,
.dark .token.cdata { .dark .token.cdata {
color: hsl(220, 10%, 40%); color: hsl(220, 10%, 40%);
} }
.dark .token.doctype, .dark .token.doctype,
.dark .token.punctuation, .dark .token.punctuation,
.dark .token.entity { .dark .token.entity {
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
} }
.dark .token.attr-name, .dark .token.attr-name,
@ -109,11 +109,11 @@
.dark .token.constant, .dark .token.constant,
.dark .token.number, .dark .token.number,
.dark .token.atrule { .dark .token.atrule {
color: hsl(29, 54%, 61%); color: hsl(29, 54%, 61%);
} }
.dark .token.keyword { .dark .token.keyword {
color: hsl(286, 60%, 67%); color: hsl(286, 60%, 67%);
} }
.dark .token.property, .dark .token.property,
@ -121,7 +121,7 @@
.dark .token.symbol, .dark .token.symbol,
.dark .token.deleted, .dark .token.deleted,
.dark .token.important { .dark .token.important {
color: hsl(355, 65%, 65%); color: hsl(355, 65%, 65%);
} }
.dark .token.selector, .dark .token.selector,
@ -132,129 +132,129 @@
.dark .token.regex, .dark .token.regex,
.dark .token.attr-value, .dark .token.attr-value,
.dark .token.attr-value > .dark .token.punctuation { .dark .token.attr-value > .dark .token.punctuation {
color: hsl(95, 38%, 62%); color: hsl(95, 38%, 62%);
} }
.dark .token.variable, .dark .token.variable,
.dark .token.operator, .dark .token.operator,
.dark .token.function { .dark .token.function {
color: hsl(207, 82%, 66%); color: hsl(207, 82%, 66%);
} }
.dark .token.url { .dark .token.url {
color: hsl(187, 47%, 55%); color: hsl(187, 47%, 55%);
} }
/* HTML overrides */ /* HTML overrides */
.dark .token.attr-value > .dark .token.punctuation.attr-equals, .dark .token.attr-value > .dark .token.punctuation.attr-equals,
.dark .token.special-attr > .dark .token.attr-value > .dark .token.value.css { .dark .token.special-attr > .dark .token.attr-value > .dark .token.value.css {
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
} }
/* CSS overrides */ /* CSS overrides */
.language-css .dark .token.selector { .language-css .dark .token.selector {
color: hsl(355, 65%, 65%); color: hsl(355, 65%, 65%);
} }
.language-css .dark .token.property { .language-css .dark .token.property {
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
} }
.language-css .dark .token.function, .language-css .dark .token.function,
.language-css .dark .token.url > .dark .token.function { .language-css .dark .token.url > .dark .token.function {
color: hsl(187, 47%, 55%); color: hsl(187, 47%, 55%);
} }
.language-css .dark .token.url > .dark .token.string.url { .language-css .dark .token.url > .dark .token.string.url {
color: hsl(95, 38%, 62%); color: hsl(95, 38%, 62%);
} }
.language-css .dark .token.important, .language-css .dark .token.important,
.language-css .dark .token.atrule .dark .token.rule { .language-css .dark .token.atrule .dark .token.rule {
color: hsl(286, 60%, 67%); color: hsl(286, 60%, 67%);
} }
/* JS overrides */ /* JS overrides */
.language-javascript .dark .token.operator { .language-javascript .dark .token.operator {
color: hsl(286, 60%, 67%); color: hsl(286, 60%, 67%);
} }
.language-javascript .language-javascript
.dark .dark
.token.template-string .token.template-string
> .dark > .dark
.token.interpolation .token.interpolation
> .dark > .dark
.token.interpolation-punctuation.punctuation { .token.interpolation-punctuation.punctuation {
color: hsl(5, 48%, 51%); color: hsl(5, 48%, 51%);
} }
/* JSON overrides */ /* JSON overrides */
.language-json .dark .token.operator { .language-json .dark .token.operator {
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
} }
.language-json .dark .token.null.keyword { .language-json .dark .token.null.keyword {
color: hsl(29, 54%, 61%); color: hsl(29, 54%, 61%);
} }
/* MD overrides */ /* MD overrides */
.language-markdown .dark .token.url, .language-markdown .dark .token.url,
.language-markdown .dark .token.url > .dark .token.operator, .language-markdown .dark .token.url > .dark .token.operator,
.language-markdown .dark .token.url-reference.url > .dark .token.string { .language-markdown .dark .token.url-reference.url > .dark .token.string {
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
} }
.language-markdown .dark .token.url > .dark .token.content { .language-markdown .dark .token.url > .dark .token.content {
color: hsl(207, 82%, 66%); color: hsl(207, 82%, 66%);
} }
.language-markdown .dark .token.url > .dark .token.url, .language-markdown .dark .token.url > .dark .token.url,
.language-markdown .dark .token.url-reference.url { .language-markdown .dark .token.url-reference.url {
color: hsl(187, 47%, 55%); color: hsl(187, 47%, 55%);
} }
.language-markdown .dark .token.blockquote.punctuation, .language-markdown .dark .token.blockquote.punctuation,
.language-markdown .dark .token.hr.punctuation { .language-markdown .dark .token.hr.punctuation {
color: hsl(220, 10%, 40%); color: hsl(220, 10%, 40%);
font-style: italic; font-style: italic;
} }
.language-markdown .dark .token.code-snippet { .language-markdown .dark .token.code-snippet {
color: hsl(95, 38%, 62%); color: hsl(95, 38%, 62%);
} }
.language-markdown .dark .token.bold .dark .token.content { .language-markdown .dark .token.bold .dark .token.content {
color: hsl(29, 54%, 61%); color: hsl(29, 54%, 61%);
} }
.language-markdown .dark .token.italic .dark .token.content { .language-markdown .dark .token.italic .dark .token.content {
color: hsl(286, 60%, 67%); color: hsl(286, 60%, 67%);
} }
.language-markdown .dark .token.strike .dark .token.content, .language-markdown .dark .token.strike .dark .token.content,
.language-markdown .dark .token.strike .dark .token.punctuation, .language-markdown .dark .token.strike .dark .token.punctuation,
.language-markdown .dark .token.list.punctuation, .language-markdown .dark .token.list.punctuation,
.language-markdown .dark .token.title.important > .dark .token.punctuation { .language-markdown .dark .token.title.important > .dark .token.punctuation {
color: hsl(355, 65%, 65%); color: hsl(355, 65%, 65%);
} }
/* General */ /* General */
.dark .token.bold { .dark .token.bold {
font-weight: bold; font-weight: bold;
} }
.dark .token.comment, .dark .token.comment,
.dark .token.italic { .dark .token.italic {
font-style: italic; font-style: italic;
} }
.dark .token.entity { .dark .token.entity {
cursor: help; cursor: help;
} }
.dark .token.namespace { .dark .token.namespace {
opacity: 0.8; opacity: 0.8;
} }
/* Plugin overrides */ /* Plugin overrides */
@ -265,24 +265,24 @@
.dark .token.dark .token.cr:before, .dark .token.dark .token.cr:before,
.dark .token.dark .token.lf:before, .dark .token.dark .token.lf:before,
.dark .token.dark .token.space:before { .dark .token.dark .token.space:before {
color: hsla(220, 14%, 71%, 0.15); color: hsla(220, 14%, 71%, 0.15);
text-shadow: none; text-shadow: none;
} }
/* Toolbar plugin overrides */ /* Toolbar plugin overrides */
/* Space out all buttons and move them away from the right edge of the code block */ /* Space out all buttons and move them away from the right edge of the code block */
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item { .dark div.code-toolbar > .toolbar.toolbar > .toolbar-item {
margin-right: 0.4em; margin-right: 0.4em;
} }
/* Styling the buttons */ /* Styling the buttons */
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > button, .dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > button,
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > a, .dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > a,
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span { .dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span {
background: hsl(220, 13%, 26%); background: hsl(220, 13%, 26%);
color: hsl(220, 9%, 55%); color: hsl(220, 9%, 55%);
padding: 0.1em 0.4em; padding: 0.1em 0.4em;
border-radius: 0.3em; border-radius: 0.3em;
} }
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover, .dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover,
@ -291,46 +291,46 @@
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus, .dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus,
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover, .dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover,
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus { .dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
background: hsl(220, 13%, 28%); background: hsl(220, 13%, 28%);
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
} }
/* Line Highlight plugin overrides */ /* Line Highlight plugin overrides */
/* The highlighted line itself */ /* The highlighted line itself */
.dark .line-highlight.line-highlight { .dark .line-highlight.line-highlight {
background: hsla(220, 100%, 80%, 0.04); background: hsla(220, 100%, 80%, 0.04);
} }
/* Default line numbers in Line Highlight plugin */ /* Default line numbers in Line Highlight plugin */
.dark .line-highlight.line-highlight:before, .dark .line-highlight.line-highlight:before,
.dark .line-highlight.line-highlight[data-end]:after { .dark .line-highlight.line-highlight[data-end]:after {
background: hsl(220, 13%, 26%); background: hsl(220, 13%, 26%);
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
padding: 0.1em 0.6em; padding: 0.1em 0.6em;
border-radius: 0.3em; border-radius: 0.3em;
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */ box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
} }
/* Hovering over a linkable line number (in the gutter area) */ /* Hovering over a linkable line number (in the gutter area) */
/* Requires Line Numbers plugin as well */ /* Requires Line Numbers plugin as well */
.dark .dark
pre[id].linkable-line-numbers.linkable-line-numbers pre[id].linkable-line-numbers.linkable-line-numbers
span.line-numbers-rows span.line-numbers-rows
> span:hover:before { > span:hover:before {
background-color: hsla(220, 100%, 80%, 0.04); background-color: hsla(220, 100%, 80%, 0.04);
} }
/* Line Numbers and Command Line plugins overrides */ /* Line Numbers and Command Line plugins overrides */
/* Line separating gutter from coding area */ /* Line separating gutter from coding area */
.dark .line-numbers.line-numbers .line-numbers-rows, .dark .line-numbers.line-numbers .line-numbers-rows,
.dark .command-line .command-line-prompt { .dark .command-line .command-line-prompt {
border-right-color: hsla(220, 14%, 71%, 0.15); border-right-color: hsla(220, 14%, 71%, 0.15);
} }
/* Stuff in the gutter */ /* Stuff in the gutter */
.dark .line-numbers .line-numbers-rows > span:before, .dark .line-numbers .line-numbers-rows > span:before,
.dark .command-line .command-line-prompt > span:before { .dark .command-line .command-line-prompt > span:before {
color: hsl(220, 14%, 45%); color: hsl(220, 14%, 45%);
} }
/* Match Braces plugin overrides */ /* Match Braces plugin overrides */
@ -338,137 +338,137 @@ span.line-numbers-rows
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-1, .rainbow-braces .dark .token.dark .token.punctuation.brace-level-1,
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-5, .rainbow-braces .dark .token.dark .token.punctuation.brace-level-5,
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-9 { .rainbow-braces .dark .token.dark .token.punctuation.brace-level-9 {
color: hsl(355, 65%, 65%); color: hsl(355, 65%, 65%);
} }
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-2, .rainbow-braces .dark .token.dark .token.punctuation.brace-level-2,
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-6, .rainbow-braces .dark .token.dark .token.punctuation.brace-level-6,
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-10 { .rainbow-braces .dark .token.dark .token.punctuation.brace-level-10 {
color: hsl(95, 38%, 62%); color: hsl(95, 38%, 62%);
} }
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-3, .rainbow-braces .dark .token.dark .token.punctuation.brace-level-3,
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-7, .rainbow-braces .dark .token.dark .token.punctuation.brace-level-7,
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-11 { .rainbow-braces .dark .token.dark .token.punctuation.brace-level-11 {
color: hsl(207, 82%, 66%); color: hsl(207, 82%, 66%);
} }
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-4, .rainbow-braces .dark .token.dark .token.punctuation.brace-level-4,
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-8, .rainbow-braces .dark .token.dark .token.punctuation.brace-level-8,
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-12 { .rainbow-braces .dark .token.dark .token.punctuation.brace-level-12 {
color: hsl(286, 60%, 67%); color: hsl(286, 60%, 67%);
} }
/* Diff Highlight plugin overrides */ /* Diff Highlight plugin overrides */
/* Taken from https://github.com/atom/github/blob/master/styles/variables.less */ /* Taken from https://github.com/atom/github/blob/master/styles/variables.less */
pre.diff-highlight > code .dark .token.dark .token.deleted:not(.prefix), pre.diff-highlight > code .dark .token.dark .token.deleted:not(.prefix),
pre > code.diff-highlight .dark .token.dark .token.deleted:not(.prefix) { pre > code.diff-highlight .dark .token.dark .token.deleted:not(.prefix) {
background-color: hsla(353, 100%, 66%, 0.15); background-color: hsla(353, 100%, 66%, 0.15);
} }
pre.diff-highlight pre.diff-highlight
> code > code
.dark .dark
.token.dark .token.dark
.token.deleted:not(.prefix)::-moz-selection, .token.deleted:not(.prefix)::-moz-selection,
pre.diff-highlight pre.diff-highlight
> code > code
.dark .dark
.token.dark .token.dark
.token.deleted:not(.prefix) .token.deleted:not(.prefix)
*::-moz-selection, *::-moz-selection,
pre pre
> code.diff-highlight > code.diff-highlight
.dark .dark
.token.dark .token.dark
.token.deleted:not(.prefix)::-moz-selection, .token.deleted:not(.prefix)::-moz-selection,
pre pre
> code.diff-highlight > code.diff-highlight
.dark .dark
.token.dark .token.dark
.token.deleted:not(.prefix) .token.deleted:not(.prefix)
*::-moz-selection { *::-moz-selection {
background-color: hsla(353, 95%, 66%, 0.25); background-color: hsla(353, 95%, 66%, 0.25);
} }
pre.diff-highlight pre.diff-highlight
> code > code
.dark .dark
.token.dark .token.dark
.token.deleted:not(.prefix)::selection, .token.deleted:not(.prefix)::selection,
pre.diff-highlight pre.diff-highlight
> code > code
.dark .dark
.token.dark .token.dark
.token.deleted:not(.prefix) .token.deleted:not(.prefix)
*::selection, *::selection,
pre pre
> code.diff-highlight > code.diff-highlight
.dark .dark
.token.dark .token.dark
.token.deleted:not(.prefix)::selection, .token.deleted:not(.prefix)::selection,
pre pre
> code.diff-highlight > code.diff-highlight
.dark .dark
.token.dark .token.dark
.token.deleted:not(.prefix) .token.deleted:not(.prefix)
*::selection { *::selection {
background-color: hsla(353, 95%, 66%, 0.25); background-color: hsla(353, 95%, 66%, 0.25);
} }
pre.diff-highlight > code .dark .token.dark .token.inserted:not(.prefix), pre.diff-highlight > code .dark .token.dark .token.inserted:not(.prefix),
pre > code.diff-highlight .dark .token.dark .token.inserted:not(.prefix) { pre > code.diff-highlight .dark .token.dark .token.inserted:not(.prefix) {
background-color: hsla(137, 100%, 55%, 0.15); background-color: hsla(137, 100%, 55%, 0.15);
} }
pre.diff-highlight pre.diff-highlight
> code > code
.dark .dark
.token.dark .token.dark
.token.inserted:not(.prefix)::-moz-selection, .token.inserted:not(.prefix)::-moz-selection,
pre.diff-highlight pre.diff-highlight
> code > code
.dark .dark
.token.dark .token.dark
.token.inserted:not(.prefix) .token.inserted:not(.prefix)
*::-moz-selection, *::-moz-selection,
pre pre
> code.diff-highlight > code.diff-highlight
.dark .dark
.token.dark .token.dark
.token.inserted:not(.prefix)::-moz-selection, .token.inserted:not(.prefix)::-moz-selection,
pre pre
> code.diff-highlight > code.diff-highlight
.dark .dark
.token.dark .token.dark
.token.inserted:not(.prefix) .token.inserted:not(.prefix)
*::-moz-selection { *::-moz-selection {
background-color: hsla(135, 73%, 55%, 0.25); background-color: hsla(135, 73%, 55%, 0.25);
} }
pre.diff-highlight pre.diff-highlight
> code > code
.dark .dark
.token.dark .token.dark
.token.inserted:not(.prefix)::selection, .token.inserted:not(.prefix)::selection,
pre.diff-highlight pre.diff-highlight
> code > code
.dark .dark
.token.dark .token.dark
.token.inserted:not(.prefix) .token.inserted:not(.prefix)
*::selection, *::selection,
pre pre
> code.diff-highlight > code.diff-highlight
.dark .dark
.token.dark .token.dark
.token.inserted:not(.prefix)::selection, .token.inserted:not(.prefix)::selection,
pre pre
> code.diff-highlight > code.diff-highlight
.dark .dark
.token.dark .token.dark
.token.inserted:not(.prefix) .token.inserted:not(.prefix)
*::selection { *::selection {
background-color: hsla(135, 73%, 55%, 0.25); background-color: hsla(135, 73%, 55%, 0.25);
} }
/* Previewers plugin overrides */ /* Previewers plugin overrides */
@ -476,48 +476,48 @@ pre
/* Border around popup */ /* Border around popup */
.dark .prism-previewer.prism-previewer:before, .dark .prism-previewer.prism-previewer:before,
.dark .prism-previewer-gradient.prism-previewer-gradient div { .dark .prism-previewer-gradient.prism-previewer-gradient div {
border-color: hsl(224, 13%, 17%); border-color: hsl(224, 13%, 17%);
} }
/* Angle and time should remain as circles and are hence not included */ /* Angle and time should remain as circles and are hence not included */
.dark .prism-previewer-color.prism-previewer-color:before, .dark .prism-previewer-color.prism-previewer-color:before,
.dark .prism-previewer-gradient.prism-previewer-gradient div, .dark .prism-previewer-gradient.prism-previewer-gradient div,
.dark .prism-previewer-easing.prism-previewer-easing:before { .dark .prism-previewer-easing.prism-previewer-easing:before {
border-radius: 0.3em; border-radius: 0.3em;
} }
/* Triangles pointing to the code */ /* Triangles pointing to the code */
.dark .prism-previewer.prism-previewer:after { .dark .prism-previewer.prism-previewer:after {
border-top-color: hsl(224, 13%, 17%); border-top-color: hsl(224, 13%, 17%);
} }
.dark .prism-previewer-flipped.prism-previewer-flipped.after { .dark .prism-previewer-flipped.prism-previewer-flipped.after {
border-bottom-color: hsl(224, 13%, 17%); border-bottom-color: hsl(224, 13%, 17%);
} }
/* Background colour within the popup */ /* Background colour within the popup */
.dark .prism-previewer-angle.prism-previewer-angle:before, .dark .prism-previewer-angle.prism-previewer-angle:before,
.dark .prism-previewer-time.prism-previewer-time:before, .dark .prism-previewer-time.prism-previewer-time:before,
.dark .prism-previewer-easing.prism-previewer-easing { .dark .prism-previewer-easing.prism-previewer-easing {
background: hsl(219, 13%, 22%); background: hsl(219, 13%, 22%);
} }
/* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */ /* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */
/* For time, this is the alternate colour */ /* For time, this is the alternate colour */
.dark .prism-previewer-angle.prism-previewer-angle circle, .dark .prism-previewer-angle.prism-previewer-angle circle,
.dark .prism-previewer-time.prism-previewer-time circle { .dark .prism-previewer-time.prism-previewer-time circle {
stroke: hsl(220, 14%, 71%); stroke: hsl(220, 14%, 71%);
stroke-opacity: 1; stroke-opacity: 1;
} }
/* Stroke colours of the handle, direction point, and vector itself */ /* Stroke colours of the handle, direction point, and vector itself */
.dark .prism-previewer-easing.prism-previewer-easing circle, .dark .prism-previewer-easing.prism-previewer-easing circle,
.dark .prism-previewer-easing.prism-previewer-easing path, .dark .prism-previewer-easing.prism-previewer-easing path,
.dark .prism-previewer-easing.prism-previewer-easing line { .dark .prism-previewer-easing.prism-previewer-easing line {
stroke: hsl(220, 14%, 71%); stroke: hsl(220, 14%, 71%);
} }
/* Fill colour of the handle */ /* Fill colour of the handle */
.dark .prism-previewer-easing.prism-previewer-easing circle { .dark .prism-previewer-easing.prism-previewer-easing circle {
fill: transparent; fill: transparent;
} }

View File

@ -30,66 +30,66 @@
code, code,
pre { pre {
background: #fff; background: #fff;
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono', /* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
monospace; */ monospace; */
font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace; font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace;
direction: ltr; direction: ltr;
text-align: left; text-align: left;
white-space: pre; white-space: pre;
word-spacing: normal; word-spacing: normal;
word-break: normal; word-break: normal;
line-height: 1.5; line-height: 1.5;
-moz-tab-size: 2; -moz-tab-size: 2;
-o-tab-size: 2; -o-tab-size: 2;
tab-size: 2; tab-size: 2;
-webkit-hyphens: none; -webkit-hyphens: none;
-moz-hyphens: none; -moz-hyphens: none;
-ms-hyphens: none; -ms-hyphens: none;
hyphens: none; hyphens: none;
} }
/* Selection */ /* Selection */
code::-moz-selection, code::-moz-selection,
code *::-moz-selection, code *::-moz-selection,
pre *::-moz-selection { pre *::-moz-selection {
background: hsl(230, 1%, 90%); background: hsl(230, 1%, 90%);
color: inherit; color: inherit;
} }
code::selection, code::selection,
code *::selection, code *::selection,
pre *::selection { pre *::selection {
background: hsl(230, 1%, 90%); background: hsl(230, 1%, 90%);
color: inherit; color: inherit;
} }
/* Code blocks */ /* Code blocks */
pre { pre {
padding: 1em; padding: 1em;
margin: 0.5em 0; margin: 0.5em 0;
overflow: auto; overflow: auto;
border-radius: 0.3em; border-radius: 0.3em;
} }
/* Inline code */ /* Inline code */
:not(pre) > code { :not(pre) > code {
padding: 0.2em 0.3em; padding: 0.2em 0.3em;
border-radius: 0.3em; border-radius: 0.3em;
white-space: normal; white-space: normal;
} }
.token.comment, .token.comment,
.token.prolog, .token.prolog,
.token.cdata { .token.cdata {
color: hsl(230, 4%, 64%); color: hsl(230, 4%, 64%);
} }
.token.doctype, .token.doctype,
.token.punctuation, .token.punctuation,
.token.entity { .token.entity {
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
} }
.token.attr-name, .token.attr-name,
@ -98,11 +98,11 @@ pre {
.token.constant, .token.constant,
.token.number, .token.number,
.token.atrule { .token.atrule {
color: hsl(35, 99%, 36%); color: hsl(35, 99%, 36%);
} }
.token.keyword { .token.keyword {
color: hsl(301, 63%, 40%); color: hsl(301, 63%, 40%);
} }
.token.property, .token.property,
@ -110,7 +110,7 @@ pre {
.token.symbol, .token.symbol,
.token.deleted, .token.deleted,
.token.important { .token.important {
color: hsl(5, 74%, 59%); color: hsl(5, 74%, 59%);
} }
.token.selector, .token.selector,
@ -121,126 +121,126 @@ pre {
.token.regex, .token.regex,
.token.attr-value, .token.attr-value,
.token.attr-value > .token.punctuation { .token.attr-value > .token.punctuation {
color: hsl(119, 34%, 47%); color: hsl(119, 34%, 47%);
} }
.token.variable, .token.variable,
.token.operator, .token.operator,
.token.function { .token.function {
color: hsl(221, 87%, 60%); color: hsl(221, 87%, 60%);
} }
.token.url { .token.url {
color: hsl(198, 99%, 37%); color: hsl(198, 99%, 37%);
} }
/* HTML overrides */ /* HTML overrides */
.token.attr-value > .token.punctuation.attr-equals, .token.attr-value > .token.punctuation.attr-equals,
.token.special-attr > .token.attr-value > .token.value.css { .token.special-attr > .token.attr-value > .token.value.css {
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
} }
/* CSS overrides */ /* CSS overrides */
.language-css .token.selector { .language-css .token.selector {
color: hsl(5, 74%, 59%); color: hsl(5, 74%, 59%);
} }
.language-css .token.property { .language-css .token.property {
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
} }
.language-css .token.function, .language-css .token.function,
.language-css .token.url > .token.function { .language-css .token.url > .token.function {
color: hsl(198, 99%, 37%); color: hsl(198, 99%, 37%);
} }
.language-css .token.url > .token.string.url { .language-css .token.url > .token.string.url {
color: hsl(119, 34%, 47%); color: hsl(119, 34%, 47%);
} }
.language-css .token.important, .language-css .token.important,
.language-css .token.atrule .token.rule { .language-css .token.atrule .token.rule {
color: hsl(301, 63%, 40%); color: hsl(301, 63%, 40%);
} }
/* JS overrides */ /* JS overrides */
.language-javascript .token.operator { .language-javascript .token.operator {
color: hsl(301, 63%, 40%); color: hsl(301, 63%, 40%);
} }
.language-javascript .language-javascript
.token.template-string .token.template-string
> .token.interpolation > .token.interpolation
> .token.interpolation-punctuation.punctuation { > .token.interpolation-punctuation.punctuation {
color: hsl(344, 84%, 43%); color: hsl(344, 84%, 43%);
} }
/* JSON overrides */ /* JSON overrides */
.language-json .token.operator { .language-json .token.operator {
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
} }
.language-json .token.null.keyword { .language-json .token.null.keyword {
color: hsl(35, 99%, 36%); color: hsl(35, 99%, 36%);
} }
/* MD overrides */ /* MD overrides */
.language-markdown .token.url, .language-markdown .token.url,
.language-markdown .token.url > .token.operator, .language-markdown .token.url > .token.operator,
.language-markdown .token.url-reference.url > .token.string { .language-markdown .token.url-reference.url > .token.string {
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
} }
.language-markdown .token.url > .token.content { .language-markdown .token.url > .token.content {
color: hsl(221, 87%, 60%); color: hsl(221, 87%, 60%);
} }
.language-markdown .token.url > .token.url, .language-markdown .token.url > .token.url,
.language-markdown .token.url-reference.url { .language-markdown .token.url-reference.url {
color: hsl(198, 99%, 37%); color: hsl(198, 99%, 37%);
} }
.language-markdown .token.blockquote.punctuation, .language-markdown .token.blockquote.punctuation,
.language-markdown .token.hr.punctuation { .language-markdown .token.hr.punctuation {
color: hsl(230, 4%, 64%); color: hsl(230, 4%, 64%);
font-style: italic; font-style: italic;
} }
.language-markdown .token.code-snippet { .language-markdown .token.code-snippet {
color: hsl(119, 34%, 47%); color: hsl(119, 34%, 47%);
} }
.language-markdown .token.bold .token.content { .language-markdown .token.bold .token.content {
color: hsl(35, 99%, 36%); color: hsl(35, 99%, 36%);
} }
.language-markdown .token.italic .token.content { .language-markdown .token.italic .token.content {
color: hsl(301, 63%, 40%); color: hsl(301, 63%, 40%);
} }
.language-markdown .token.strike .token.content, .language-markdown .token.strike .token.content,
.language-markdown .token.strike .token.punctuation, .language-markdown .token.strike .token.punctuation,
.language-markdown .token.list.punctuation, .language-markdown .token.list.punctuation,
.language-markdown .token.title.important > .token.punctuation { .language-markdown .token.title.important > .token.punctuation {
color: hsl(5, 74%, 59%); color: hsl(5, 74%, 59%);
} }
/* General */ /* General */
.token.bold { .token.bold {
font-weight: bold; font-weight: bold;
} }
.token.comment, .token.comment,
.token.italic { .token.italic {
font-style: italic; font-style: italic;
} }
.token.entity { .token.entity {
cursor: help; cursor: help;
} }
.token.namespace { .token.namespace {
opacity: 0.8; opacity: 0.8;
} }
/* Plugin overrides */ /* Plugin overrides */
@ -251,23 +251,23 @@ pre {
.token.token.cr:before, .token.token.cr:before,
.token.token.lf:before, .token.token.lf:before,
.token.token.space:before { .token.token.space:before {
color: hsla(230, 8%, 24%, 0.2); color: hsla(230, 8%, 24%, 0.2);
} }
/* Toolbar plugin overrides */ /* Toolbar plugin overrides */
/* Space out all buttons and move them away from the right edge of the code block */ /* Space out all buttons and move them away from the right edge of the code block */
div.code-toolbar > .toolbar.toolbar > .toolbar-item { div.code-toolbar > .toolbar.toolbar > .toolbar-item {
margin-right: 0.4em; margin-right: 0.4em;
} }
/* Styling the buttons */ /* Styling the buttons */
div.code-toolbar > .toolbar.toolbar > .toolbar-item > button, div.code-toolbar > .toolbar.toolbar > .toolbar-item > button,
div.code-toolbar > .toolbar.toolbar > .toolbar-item > a, div.code-toolbar > .toolbar.toolbar > .toolbar-item > a,
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span { div.code-toolbar > .toolbar.toolbar > .toolbar-item > span {
background: hsl(230, 1%, 90%); background: hsl(230, 1%, 90%);
color: hsl(230, 6%, 44%); color: hsl(230, 6%, 44%);
padding: 0.1em 0.4em; padding: 0.1em 0.4em;
border-radius: 0.3em; border-radius: 0.3em;
} }
div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover, div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover,
@ -276,45 +276,45 @@ div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover,
div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus, div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus,
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover, div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover,
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus { div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
background: hsl(230, 1%, 78%); /* custom: darken(--syntax-bg, 20%) */ background: hsl(230, 1%, 78%); /* custom: darken(--syntax-bg, 20%) */
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
} }
/* Line Highlight plugin overrides */ /* Line Highlight plugin overrides */
/* The highlighted line itself */ /* The highlighted line itself */
.line-highlight.line-highlight { .line-highlight.line-highlight {
background: hsla(230, 8%, 24%, 0.05); background: hsla(230, 8%, 24%, 0.05);
} }
/* Default line numbers in Line Highlight plugin */ /* Default line numbers in Line Highlight plugin */
.line-highlight.line-highlight:before, .line-highlight.line-highlight:before,
.line-highlight.line-highlight[data-end]:after { .line-highlight.line-highlight[data-end]:after {
background: hsl(230, 1%, 90%); background: hsl(230, 1%, 90%);
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
padding: 0.1em 0.6em; padding: 0.1em 0.6em;
border-radius: 0.3em; border-radius: 0.3em;
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */ box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
} }
/* Hovering over a linkable line number (in the gutter area) */ /* Hovering over a linkable line number (in the gutter area) */
/* Requires Line Numbers plugin as well */ /* Requires Line Numbers plugin as well */
pre[id].linkable-line-numbers.linkable-line-numbers pre[id].linkable-line-numbers.linkable-line-numbers
span.line-numbers-rows span.line-numbers-rows
> span:hover:before { > span:hover:before {
background-color: hsla(230, 8%, 24%, 0.05); background-color: hsla(230, 8%, 24%, 0.05);
} }
/* Line Numbers and Command Line plugins overrides */ /* Line Numbers and Command Line plugins overrides */
/* Line separating gutter from coding area */ /* Line separating gutter from coding area */
.line-numbers.line-numbers .line-numbers-rows, .line-numbers.line-numbers .line-numbers-rows,
.command-line .command-line-prompt { .command-line .command-line-prompt {
border-right-color: hsla(230, 8%, 24%, 0.2); border-right-color: hsla(230, 8%, 24%, 0.2);
} }
/* Stuff in the gutter */ /* Stuff in the gutter */
.line-numbers .line-numbers-rows > span:before, .line-numbers .line-numbers-rows > span:before,
.command-line .command-line-prompt > span:before { .command-line .command-line-prompt > span:before {
color: hsl(230, 1%, 62%); color: hsl(230, 1%, 62%);
} }
/* Match Braces plugin overrides */ /* Match Braces plugin overrides */
@ -322,65 +322,65 @@ span.line-numbers-rows
.rainbow-braces .token.token.punctuation.brace-level-1, .rainbow-braces .token.token.punctuation.brace-level-1,
.rainbow-braces .token.token.punctuation.brace-level-5, .rainbow-braces .token.token.punctuation.brace-level-5,
.rainbow-braces .token.token.punctuation.brace-level-9 { .rainbow-braces .token.token.punctuation.brace-level-9 {
color: hsl(5, 74%, 59%); color: hsl(5, 74%, 59%);
} }
.rainbow-braces .token.token.punctuation.brace-level-2, .rainbow-braces .token.token.punctuation.brace-level-2,
.rainbow-braces .token.token.punctuation.brace-level-6, .rainbow-braces .token.token.punctuation.brace-level-6,
.rainbow-braces .token.token.punctuation.brace-level-10 { .rainbow-braces .token.token.punctuation.brace-level-10 {
color: hsl(119, 34%, 47%); color: hsl(119, 34%, 47%);
} }
.rainbow-braces .token.token.punctuation.brace-level-3, .rainbow-braces .token.token.punctuation.brace-level-3,
.rainbow-braces .token.token.punctuation.brace-level-7, .rainbow-braces .token.token.punctuation.brace-level-7,
.rainbow-braces .token.token.punctuation.brace-level-11 { .rainbow-braces .token.token.punctuation.brace-level-11 {
color: hsl(221, 87%, 60%); color: hsl(221, 87%, 60%);
} }
.rainbow-braces .token.token.punctuation.brace-level-4, .rainbow-braces .token.token.punctuation.brace-level-4,
.rainbow-braces .token.token.punctuation.brace-level-8, .rainbow-braces .token.token.punctuation.brace-level-8,
.rainbow-braces .token.token.punctuation.brace-level-12 { .rainbow-braces .token.token.punctuation.brace-level-12 {
color: hsl(301, 63%, 40%); color: hsl(301, 63%, 40%);
} }
/* Diff Highlight plugin overrides */ /* Diff Highlight plugin overrides */
/* Taken from https://github.com/atom/github/blob/master/styles/variables.less */ /* Taken from https://github.com/atom/github/blob/master/styles/variables.less */
pre.diff-highlight > code .token.token.deleted:not(.prefix), pre.diff-highlight > code .token.token.deleted:not(.prefix),
pre > code.diff-highlight .token.token.deleted:not(.prefix) { pre > code.diff-highlight .token.token.deleted:not(.prefix) {
background-color: hsla(353, 100%, 66%, 0.15); background-color: hsla(353, 100%, 66%, 0.15);
} }
pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection, pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection,
pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection, pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection,
pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection, pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,
pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection { pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection {
background-color: hsla(353, 95%, 66%, 0.25); background-color: hsla(353, 95%, 66%, 0.25);
} }
pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection, pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection,
pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection, pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection,
pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection, pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection,
pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection { pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection {
background-color: hsla(353, 95%, 66%, 0.25); background-color: hsla(353, 95%, 66%, 0.25);
} }
pre.diff-highlight > code .token.token.inserted:not(.prefix), pre.diff-highlight > code .token.token.inserted:not(.prefix),
pre > code.diff-highlight .token.token.inserted:not(.prefix) { pre > code.diff-highlight .token.token.inserted:not(.prefix) {
background-color: hsla(137, 100%, 55%, 0.15); background-color: hsla(137, 100%, 55%, 0.15);
} }
pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection, pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection,
pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection, pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection,
pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection, pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,
pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection { pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection {
background-color: hsla(135, 73%, 55%, 0.25); background-color: hsla(135, 73%, 55%, 0.25);
} }
pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection, pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection,
pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection, pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection,
pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection, pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection,
pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection { pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection {
background-color: hsla(135, 73%, 55%, 0.25); background-color: hsla(135, 73%, 55%, 0.25);
} }
/* Previewers plugin overrides */ /* Previewers plugin overrides */
@ -388,48 +388,48 @@ pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection {
/* Border around popup */ /* Border around popup */
.prism-previewer.prism-previewer:before, .prism-previewer.prism-previewer:before,
.prism-previewer-gradient.prism-previewer-gradient div { .prism-previewer-gradient.prism-previewer-gradient div {
border-color: hsl(0, 0, 95%); border-color: hsl(0, 0, 95%);
} }
/* Angle and time should remain as circles and are hence not included */ /* Angle and time should remain as circles and are hence not included */
.prism-previewer-color.prism-previewer-color:before, .prism-previewer-color.prism-previewer-color:before,
.prism-previewer-gradient.prism-previewer-gradient div, .prism-previewer-gradient.prism-previewer-gradient div,
.prism-previewer-easing.prism-previewer-easing:before { .prism-previewer-easing.prism-previewer-easing:before {
border-radius: 0.3em; border-radius: 0.3em;
} }
/* Triangles pointing to the code */ /* Triangles pointing to the code */
.prism-previewer.prism-previewer:after { .prism-previewer.prism-previewer:after {
border-top-color: hsl(0, 0, 95%); border-top-color: hsl(0, 0, 95%);
} }
.prism-previewer-flipped.prism-previewer-flipped.after { .prism-previewer-flipped.prism-previewer-flipped.after {
border-bottom-color: hsl(0, 0, 95%); border-bottom-color: hsl(0, 0, 95%);
} }
/* Background colour within the popup */ /* Background colour within the popup */
.prism-previewer-angle.prism-previewer-angle:before, .prism-previewer-angle.prism-previewer-angle:before,
.prism-previewer-time.prism-previewer-time:before, .prism-previewer-time.prism-previewer-time:before,
.prism-previewer-easing.prism-previewer-easing { .prism-previewer-easing.prism-previewer-easing {
background: hsl(0, 0%, 100%); background: hsl(0, 0%, 100%);
} }
/* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */ /* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */
/* For time, this is the alternate colour */ /* For time, this is the alternate colour */
.prism-previewer-angle.prism-previewer-angle circle, .prism-previewer-angle.prism-previewer-angle circle,
.prism-previewer-time.prism-previewer-time circle { .prism-previewer-time.prism-previewer-time circle {
stroke: hsl(230, 8%, 24%); stroke: hsl(230, 8%, 24%);
stroke-opacity: 1; stroke-opacity: 1;
} }
/* Stroke colours of the handle, direction point, and vector itself */ /* Stroke colours of the handle, direction point, and vector itself */
.prism-previewer-easing.prism-previewer-easing circle, .prism-previewer-easing.prism-previewer-easing circle,
.prism-previewer-easing.prism-previewer-easing path, .prism-previewer-easing.prism-previewer-easing path,
.prism-previewer-easing.prism-previewer-easing line { .prism-previewer-easing.prism-previewer-easing line {
stroke: hsl(230, 8%, 24%); stroke: hsl(230, 8%, 24%);
} }
/* Fill colour of the handle */ /* Fill colour of the handle */
.prism-previewer-easing.prism-previewer-easing circle { .prism-previewer-easing.prism-previewer-easing circle {
fill: transparent; fill: transparent;
} }