📝 Update style

This commit is contained in:
DefectingCat
2022-06-06 21:23:45 +08:00
parent 1657b4a2fc
commit e0c4b31de4
39 changed files with 5265 additions and 1517 deletions

View File

@ -3,18 +3,18 @@
@tailwind utilities;
* {
scroll-behavior: smooth;
scroll-behavior: smooth;
}
*::selection {
background: hsl(230, 1%, 90%);
color: inherit;
background: hsl(230, 1%, 90%);
color: inherit;
}
.dark *::selection {
background: hsl(220, 13%, 28%);
color: inherit;
text-shadow: none;
background: hsl(220, 13%, 28%);
color: inherit;
text-shadow: none;
}
/*
@ -26,79 +26,88 @@ font-family: 'Poppins', sans-serif;
*/
@layer base {
body {
@apply text-gray-600 bg-bluish-gray dark:bg-rua-gray-900 dark:text-gray-200;
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', miui,
'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
}
body {
@apply text-gray-600 bg-bluish-gray dark:bg-rua-gray-900 dark:text-gray-200;
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', miui,
'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
}
img,
iframe {
@apply dark:brightness-75;
}
img,
iframe {
@apply dark:brightness-75;
}
/* 滚动槽 */
::-webkit-scrollbar {
width: 7px;
height: 7px;
}
::-webkit-scrollbar-track {
border-radius: 3px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
}
::-webkit-scrollbar-track-piece {
background: 0 0;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
@apply bg-gray-400;
border-radius: 3px;
box-shadow: inset 0 0 10px rgba(185, 69, 69, 0.2);
}
/* 滚动槽 */
::-webkit-scrollbar {
width: 7px;
height: 7px;
}
::-webkit-scrollbar-track {
border-radius: 3px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
}
::-webkit-scrollbar-track-piece {
background: 0 0;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
@apply bg-gray-400;
border-radius: 3px;
box-shadow: inset 0 0 10px rgba(185, 69, 69, 0.2);
}
}
/* DocSearch */
html.dark {
--docsearch-text-color: #f5f6f7;
--docsearch-container-background: rgba(9, 10, 17, 0.8);
--docsearch-modal-background: #15172a;
--docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;
--docsearch-searchbox-background: #090a11;
--docsearch-searchbox-focus-background: #000;
--docsearch-hit-color: #bec3c9;
--docsearch-hit-shadow: none;
--docsearch-hit-background: #090a11;
--docsearch-key-gradient: linear-gradient(-26.5deg, #565872, #31355b);
--docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d,
--docsearch-text-color: #f5f6f7;
--docsearch-container-background: rgba(9, 10, 17, 0.8);
--docsearch-modal-background: #15172a;
--docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;
--docsearch-searchbox-background: #090a11;
--docsearch-searchbox-focus-background: #000;
--docsearch-hit-color: #bec3c9;
--docsearch-hit-shadow: none;
--docsearch-hit-background: #090a11;
--docsearch-key-gradient: linear-gradient(-26.5deg, #565872, #31355b);
--docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d,
0 2px 2px 0 rgba(3, 4, 9, 0.3);
--docsearch-footer-background: #1e2136;
--docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, 0.5),
--docsearch-footer-background: #1e2136;
--docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, 0.5),
0 -4px 8px 0 rgba(0, 0, 0, 0.2);
--docsearch-logo-color: #fff;
--docsearch-muted-color: #7f8497;
--docsearch-logo-color: #fff;
--docsearch-muted-color: #7f8497;
}
html {
--docsearch-primary-color: rgb(75, 85, 99) !important;
--docsearch-primary-color: rgb(75, 85, 99) !important;
}
.DocSearch-wrapper .DocSearch-Button {
margin-left: unset;
margin-left: unset;
}
@media (max-width: 640px) {
.DocSearch-wrapper .DocSearch-Button {
align-items: unset;
background: unset;
padding: unset;
height: unset;
}
.DocSearch-wrapper .DocSearch-Button {
align-items: unset;
background: unset;
padding: unset;
height: unset;
}
}
.DocSearch-wrapper .DocSearch-Button .DocSearch-Search-Icon {
@apply text-gray-600 dark:text-gray-200;
@apply text-gray-600 dark:text-gray-200;
}
.DocSearch .DocSearch-Form {
border-radius: 6px;
border-radius: 6px;
}
.DocSearch .DocSearch-Screen-Icon {
display: flex;
justify-content: center;
display: flex;
justify-content: center;
}

View File

@ -1,25 +1,25 @@
.gradient {
background: rgb(238, 174, 200);
background: linear-gradient(
45deg,
rgba(238, 174, 200, 1) 0%,
rgba(148, 187, 233, 1) 100%
);
background-size: 400%;
animation: gradient 5s ease infinite;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background: rgb(238, 174, 200);
background: linear-gradient(
45deg,
rgba(238, 174, 200, 1) 0%,
rgba(148, 187, 233, 1) 100%
);
background-size: 400%;
animation: gradient 5s ease infinite;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

View File

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

View File

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

View File

@ -1,116 +1,118 @@
#article {
--color-prettylights-syntax-comment: #6e7781;
--color-prettylights-syntax-constant: #0550ae;
--color-prettylights-syntax-entity: #8250df;
--color-prettylights-syntax-storage-modifier-import: #24292f;
--color-prettylights-syntax-entity-tag: #116329;
--color-prettylights-syntax-keyword: #cf222e;
--color-prettylights-syntax-string: #0a3069;
--color-prettylights-syntax-variable: #953800;
--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
--color-prettylights-syntax-invalid-illegal-bg: #82071e;
--color-prettylights-syntax-carriage-return-text: #f6f8fa;
--color-prettylights-syntax-carriage-return-bg: #cf222e;
--color-prettylights-syntax-string-regexp: #116329;
--color-prettylights-syntax-markup-list: #3b2300;
--color-prettylights-syntax-markup-heading: #0550ae;
--color-prettylights-syntax-markup-italic: #24292f;
--color-prettylights-syntax-markup-bold: #24292f;
--color-prettylights-syntax-markup-deleted-text: #82071e;
--color-prettylights-syntax-markup-deleted-bg: #ffebe9;
--color-prettylights-syntax-markup-inserted-text: #116329;
--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
--color-prettylights-syntax-markup-changed-text: #953800;
--color-prettylights-syntax-markup-changed-bg: #ffd8b5;
--color-prettylights-syntax-markup-ignored-text: #eaeef2;
--color-prettylights-syntax-markup-ignored-bg: #0550ae;
--color-prettylights-syntax-meta-diff-range: #8250df;
--color-prettylights-syntax-brackethighlighter-angle: #57606a;
--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
--color-prettylights-syntax-constant-other-reference-link: #0a3069;
--color-fg-default: #24292f;
--color-fg-muted: #57606a;
--color-fg-subtle: #6e7781;
--color-canvas-default: #ffffff;
--color-canvas-subtle: #f6f8fa;
--color-border-default: #d0d7de;
--color-border-muted: hsla(210, 18%, 87%, 1);
--color-neutral-muted: rgba(175, 184, 193, 0.2);
--color-accent-fg: #0969da;
--color-accent-emphasis: #0969da;
--color-attention-subtle: #fff8c5;
--color-danger-fg: #cf222e;
--color-prettylights-syntax-comment: #6e7781;
--color-prettylights-syntax-constant: #0550ae;
--color-prettylights-syntax-entity: #8250df;
--color-prettylights-syntax-storage-modifier-import: #24292f;
--color-prettylights-syntax-entity-tag: #116329;
--color-prettylights-syntax-keyword: #cf222e;
--color-prettylights-syntax-string: #0a3069;
--color-prettylights-syntax-variable: #953800;
--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
--color-prettylights-syntax-invalid-illegal-bg: #82071e;
--color-prettylights-syntax-carriage-return-text: #f6f8fa;
--color-prettylights-syntax-carriage-return-bg: #cf222e;
--color-prettylights-syntax-string-regexp: #116329;
--color-prettylights-syntax-markup-list: #3b2300;
--color-prettylights-syntax-markup-heading: #0550ae;
--color-prettylights-syntax-markup-italic: #24292f;
--color-prettylights-syntax-markup-bold: #24292f;
--color-prettylights-syntax-markup-deleted-text: #82071e;
--color-prettylights-syntax-markup-deleted-bg: #ffebe9;
--color-prettylights-syntax-markup-inserted-text: #116329;
--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
--color-prettylights-syntax-markup-changed-text: #953800;
--color-prettylights-syntax-markup-changed-bg: #ffd8b5;
--color-prettylights-syntax-markup-ignored-text: #eaeef2;
--color-prettylights-syntax-markup-ignored-bg: #0550ae;
--color-prettylights-syntax-meta-diff-range: #8250df;
--color-prettylights-syntax-brackethighlighter-angle: #57606a;
--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
--color-prettylights-syntax-constant-other-reference-link: #0a3069;
--color-fg-default: #24292f;
--color-fg-muted: #57606a;
--color-fg-subtle: #6e7781;
--color-canvas-default: #ffffff;
--color-canvas-subtle: #f6f8fa;
--color-border-default: #d0d7de;
--color-border-muted: hsla(210, 18%, 87%, 1);
--color-neutral-muted: rgba(175, 184, 193, 0.2);
--color-accent-fg: #0969da;
--color-accent-emphasis: #0969da;
--color-attention-subtle: #fff8c5;
--color-danger-fg: #cf222e;
}
.dark #article {
--color-prettylights-syntax-comment: #8b949e;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-entity: #d2a8ff;
--color-prettylights-syntax-storage-modifier-import: #c9d1d9;
--color-prettylights-syntax-entity-tag: #7ee787;
--color-prettylights-syntax-keyword: #ff7b72;
--color-prettylights-syntax-string: #a5d6ff;
--color-prettylights-syntax-variable: #ffa657;
--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
--color-prettylights-syntax-invalid-illegal-bg: #8e1519;
--color-prettylights-syntax-carriage-return-text: #f0f6fc;
--color-prettylights-syntax-carriage-return-bg: #b62324;
--color-prettylights-syntax-string-regexp: #7ee787;
--color-prettylights-syntax-markup-list: #f2cc60;
--color-prettylights-syntax-markup-heading: #1f6feb;
--color-prettylights-syntax-markup-italic: #c9d1d9;
--color-prettylights-syntax-markup-bold: #c9d1d9;
--color-prettylights-syntax-markup-deleted-text: #ffdcd7;
--color-prettylights-syntax-markup-deleted-bg: #67060c;
--color-prettylights-syntax-markup-inserted-text: #aff5b4;
--color-prettylights-syntax-markup-inserted-bg: #033a16;
--color-prettylights-syntax-markup-changed-text: #ffdfb6;
--color-prettylights-syntax-markup-changed-bg: #5a1e02;
--color-prettylights-syntax-markup-ignored-text: #c9d1d9;
--color-prettylights-syntax-markup-ignored-bg: #1158c7;
--color-prettylights-syntax-meta-diff-range: #d2a8ff;
--color-prettylights-syntax-brackethighlighter-angle: #8b949e;
--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
--color-fg-default: #c9d1d9;
--color-fg-muted: #8b949e;
--color-fg-subtle: #484f58;
--color-canvas-default: #0d1117;
--color-canvas-subtle: #161b22;
--color-border-default: #30363d;
--color-border-muted: #21262d;
--color-neutral-muted: rgba(110, 118, 129, 0.4);
--color-accent-fg: #58a6ff;
--color-accent-emphasis: #1f6feb;
--color-attention-subtle: rgba(187, 128, 9, 0.15);
--color-danger-fg: #f85149;
--color-prettylights-syntax-comment: #8b949e;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-entity: #d2a8ff;
--color-prettylights-syntax-storage-modifier-import: #c9d1d9;
--color-prettylights-syntax-entity-tag: #7ee787;
--color-prettylights-syntax-keyword: #ff7b72;
--color-prettylights-syntax-string: #a5d6ff;
--color-prettylights-syntax-variable: #ffa657;
--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
--color-prettylights-syntax-invalid-illegal-bg: #8e1519;
--color-prettylights-syntax-carriage-return-text: #f0f6fc;
--color-prettylights-syntax-carriage-return-bg: #b62324;
--color-prettylights-syntax-string-regexp: #7ee787;
--color-prettylights-syntax-markup-list: #f2cc60;
--color-prettylights-syntax-markup-heading: #1f6feb;
--color-prettylights-syntax-markup-italic: #c9d1d9;
--color-prettylights-syntax-markup-bold: #c9d1d9;
--color-prettylights-syntax-markup-deleted-text: #ffdcd7;
--color-prettylights-syntax-markup-deleted-bg: #67060c;
--color-prettylights-syntax-markup-inserted-text: #aff5b4;
--color-prettylights-syntax-markup-inserted-bg: #033a16;
--color-prettylights-syntax-markup-changed-text: #ffdfb6;
--color-prettylights-syntax-markup-changed-bg: #5a1e02;
--color-prettylights-syntax-markup-ignored-text: #c9d1d9;
--color-prettylights-syntax-markup-ignored-bg: #1158c7;
--color-prettylights-syntax-meta-diff-range: #d2a8ff;
--color-prettylights-syntax-brackethighlighter-angle: #8b949e;
--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
--color-fg-default: #c9d1d9;
--color-fg-muted: #8b949e;
--color-fg-subtle: #484f58;
--color-canvas-default: #0d1117;
--color-canvas-subtle: #161b22;
--color-border-default: #30363d;
--color-border-muted: #21262d;
--color-neutral-muted: rgba(110, 118, 129, 0.4);
--color-accent-fg: #58a6ff;
--color-accent-emphasis: #1f6feb;
--color-attention-subtle: rgba(187, 128, 9, 0.15);
--color-danger-fg: #f85149;
}
#article {
@apply text-lg leading-10;
@apply text-lg leading-10;
}
#article .toc {
padding-left: 0.8em;
@apply my-4;
padding-left: 0.8em;
@apply my-4;
}
#article .toc li {
list-style-type: none;
list-style-type: none;
}
#article h1 {
font-weight: bold;
text-align: center;
@apply text-gray-800 dark:text-gray-200;
@apply mt-8 text-5xl font-Barlow;
font-weight: bold;
text-align: center;
@apply text-gray-800 dark:text-gray-200;
@apply mt-8 text-5xl font-Barlow;
}
#article time {
display: block;
text-align: center;
@apply text-gray-400 dark:text-gray-600;
@apply mt-8 mb-20;
display: block;
text-align: center;
@apply text-gray-400 dark:text-gray-600;
@apply mt-8 mb-20;
}
#article h2,
@ -118,226 +120,251 @@ h3,
h4,
h5,
h6 {
font-weight: bold;
font-weight: bold;
}
#article h2:hover::before,
h3:hover::before,
h4:hover::before,
h5:hover::before,
h6:hover::before {
content: '#';
left: -1.7rem;
@apply absolute text-gray-400;
content: '#';
left: -1.7rem;
@apply absolute text-gray-400;
}
#article h2 {
@apply relative text-3xl;
@apply text-gray-700 dark:text-gray-200;
@apply mt-8 mb-2;
@apply relative text-3xl;
@apply text-gray-700 dark:text-gray-200;
@apply mt-8 mb-2;
}
#article h3 {
@apply relative text-2xl;
@apply mt-6 mb-2;
@apply relative text-2xl;
@apply mt-6 mb-2;
}
#article h4 {
@apply relative text-xl;
@apply mt-6 mb-2;
@apply relative text-xl;
@apply mt-6 mb-2;
}
#article h5 {
@apply relative;
@apply mt-4 mb-2;
@apply relative;
@apply mt-4 mb-2;
}
#article h6 {
@apply relative;
@apply mt-2 mb-2;
@apply relative;
@apply mt-2 mb-2;
}
#article table {
border-spacing: 0;
border-collapse: collapse;
display: block;
width: max-content;
max-width: 100%;
overflow: auto;
margin-top: 0;
margin-bottom: 16px;
border-spacing: 0;
border-collapse: collapse;
display: block;
width: max-content;
max-width: 100%;
overflow: auto;
margin-top: 0;
margin-bottom: 16px;
}
#article td,
#article th {
padding: 0;
padding: 0;
}
#article details summary {
cursor: pointer;
cursor: pointer;
}
#article table th {
font-weight: 600;
font-weight: 600;
}
#article table th,
#article table td {
padding: 6px 13px;
padding: 6px 13px;
}
#article thead tr:first-child {
@apply border-t-0;
@apply border-t-0;
}
#article table tr {
background-color: var(--color-canvas-default);
border-top: 1px solid var(--color-border-muted);
background-color: var(--color-canvas-default);
border-top: 1px solid var(--color-border-muted);
}
#article table tr:nth-child(2n) {
background-color: var(--color-canvas-subtle);
background-color: var(--color-canvas-subtle);
}
#article table img {
background-color: transparent;
background-color: transparent;
}
#article blockquote {
margin: 0;
padding: 0 1em;
color: var(--color-fg-muted);
border-left: 0.25em solid var(--color-border-default);
margin: 0;
padding: 0 1em;
color: var(--color-fg-muted);
border-left: 0.25em solid var(--color-border-default);
}
#article kbd {
display: inline-block;
padding: 3px 5px;
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
display: inline-block;
padding: 3px 5px;
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
line-height: 10px;
color: var(--color-fg-default);
vertical-align: middle;
background-color: var(--color-canvas-subtle);
border: solid 1px var(--color-neutral-muted);
border-bottom-color: var(--color-neutral-muted);
border-radius: 6px;
box-shadow: inset 0 -1px 0 var(--color-neutral-muted);
line-height: 10px;
color: var(--color-fg-default);
vertical-align: middle;
background-color: var(--color-canvas-subtle);
border: solid 1px var(--color-neutral-muted);
border-bottom-color: var(--color-neutral-muted);
border-radius: 6px;
box-shadow: inset 0 -1px 0 var(--color-neutral-muted);
}
#article hr {
box-sizing: content-box;
overflow: hidden;
background: transparent;
border-bottom: 1px solid var(--color-border-muted);
height: 0.25em;
padding: 0;
margin: 24px 0;
background-color: var(--color-border-default);
border: 0;
box-sizing: content-box;
overflow: hidden;
background: transparent;
border-bottom: 1px solid var(--color-border-muted);
height: 0.25em;
padding: 0;
margin: 24px 0;
background-color: var(--color-border-default);
border: 0;
}
#article hr::before {
display: table;
content: '';
display: table;
content: '';
}
#article hr::after {
display: table;
clear: both;
content: '';
display: table;
clear: both;
content: '';
}
#article code,
#article tt {
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: var(--color-neutral-muted);
border-radius: 6px;
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: var(--color-neutral-muted);
border-radius: 6px;
}
#article pre > code {
padding: 0;
margin: 0;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
padding: 0;
margin: 0;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
#article code,
#article kbd,
#article pre,
#article samp {
/* font-family: monospace, monospace; */
font-size: 16px;
/* font-family: monospace, monospace; */
font-size: 16px;
}
#article mark {
background-color: var(--color-attention-subtle);
color: var(--color-text-primary);
background-color: var(--color-attention-subtle);
color: var(--color-text-primary);
}
#article sub,
#article sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
#article sub {
bottom: -0.25em;
bottom: -0.25em;
}
#article sup {
top: -0.5em;
top: -0.5em;
}
#article ol li {
list-style-type: auto;
list-style-type: auto;
}
#article ul li {
list-style-type: initial;
list-style-type: initial;
}
#article ul.no-list,
#article ol.no-list {
padding: 0;
list-style-type: none;
padding: 0;
list-style-type: none;
}
#article ol[type='1'] {
list-style-type: decimal;
list-style-type: decimal;
}
#article ol[type='a'] {
list-style-type: lower-alpha;
list-style-type: lower-alpha;
}
#article ol[type='i'] {
list-style-type: lower-roman;
list-style-type: lower-roman;
}
#article div > ol:not([type]) {
list-style-type: decimal;
list-style-type: decimal;
}
#article ul,
#article ol {
margin-top: 0;
margin-bottom: 0;
padding-left: 2em;
margin-top: 0;
margin-bottom: 0;
padding-left: 2em;
}
#article ol ol,
#article ul ol {
list-style-type: lower-roman;
list-style-type: lower-roman;
}
#article ul ul ol,
#article ul ol ol,
#article ol ul ol,
#article ol ol ol {
list-style-type: lower-alpha;
list-style-type: lower-alpha;
}
#article dd {
margin-left: 0;
margin-left: 0;
}
#article .sp-layout > .sp-stack {
height: 400px;
height: 400px;
}
@media screen and (max-width: 768px) {
#article .sp-layout > .sp-stack {
height: auto;
}
#article .sp-layout > .sp-stack {
height: auto;
}
}
#article img {
border-radius: 6px;
border-radius: 6px;
}
#article .cm-editor .cm-line {
font-size: 15px;
font-family: 'JetBrains Mono', -apple-system, monospace;
font-size: 15px;
font-family: 'JetBrains Mono', -apple-system, monospace;
}