diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index a880791..dc9748c 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -38,3 +38,4 @@ const { title, description, permalink } = Astro.props; + diff --git a/src/styles/highlight.css b/src/styles/highlight.css new file mode 100644 index 0000000..6ba8b0b --- /dev/null +++ b/src/styles/highlight.css @@ -0,0 +1,219 @@ +code[class*="language-"], pre[class*="language-"] { + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + hyphens: none; + color: inherit; + text-shadow: none; + /* font-family: Roboto Mono, monospace; */ + font-size: 1em; + line-height: 1.5em; + tab-size: 4; +} + +code[class*="language-"]::-moz-selection, pre[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection, +pre[class*="language-"] ::-moz-selection { + text-shadow: none; + opacity: 1; + color: #eee; + background: #363636; +} + +code[class*="language-"]::selection, pre[class*="language-"]::selection, +code[class*="language-"] ::selection, +pre[class*="language-"] ::selection { + text-shadow: none; + opacity: 1; + color: #eee; + background: #363636; +} + +@media print { + code[class*="language-"], pre[class*="language-"] { + text-shadow: none !important; + } +} + +:not(pre) > code[class*="language-"] { + white-space: normal; + color: #c3cee3; + background: #263238; + border-radius: 0.2em; + padding: 0.1em; +} + +pre > code[class*="language-"] { + background: none; +} + +pre[class*="language-"] { + overflow: auto; + position: relative; + color: #c3cee3; + background: #263238; + border-radius: 0; + margin: 0.5em 0; + padding: 1.25em 1em; +} + +pre[class*="language-"].language-css > code, pre[class*="language-"].language-sass > code, pre[class*="language-"].language-scss > code { + color: #fd9170; +} + +[class*="language-"] .namespace { + opacity: 0.7; +} + +.token.atrule { + color: #c792ea; +} + +.token.attr-name { + color: #ffcb6b; +} + +.token.attr-value { + color: #c3e88d; +} + +.token.attribute { + color: #c3e88d; +} + +.token.boolean { + color: #c792ea; +} + +.token.builtin { + color: #ffcb6b; +} + +.token.cdata { + color: #80cbc4; +} + +.token.char { + color: #80cbc4; +} + +.token.class { + color: #ffcb6b; +} + +.token.class-name { + color: #f2ff00; +} + +.token.color { + color: #f2ff00; +} + +.token.comment { + color: #546e7a; +} + +.token.constant { + color: #c792ea; +} + +.token.deleted { + color: #f07178; +} + +.token.doctype { + color: #546e7a; +} + +.token.entity { + color: #f07178; +} + +.token.function { + color: #c792ea; +} + +.token.hexcode { + color: #f2ff00; +} + +.token.id { + color: #c792ea; + font-weight: bold; +} + +.token.important { + color: #c792ea; + font-weight: bold; +} + +.token.inserted { + color: #80cbc4; +} + +.token.keyword { + color: #c792ea; + font-style: italic; +} + +.token.number { + color: #fd9170; +} + +.token.operator { + color: #89ddff; +} + +.token.prolog { + color: #546e7a; +} + +.token.property { + color: #80cbc4; +} + +.token.pseudo-class { + color: #c3e88d; +} + +.token.pseudo-element { + color: #c3e88d; +} + +.token.punctuation { + color: #89ddff; +} + +.token.regex { + color: #f2ff00; +} + +.token.selector { + color: #f07178; +} + +.token.string { + color: #c3e88d; +} + +.token.symbol { + color: #c792ea; +} + +.token.tag { + color: #f07178; +} + +.token.unit { + color: #f07178; +} + +.token.url { + color: #fd9170; +} + +.token.variable { + color: #f07178; +}