diff options
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/highlight.css | 133 | ||||
| -rw-r--r-- | assets/css/main.css | 14 |
2 files changed, 146 insertions, 1 deletions
diff --git a/assets/css/highlight.css b/assets/css/highlight.css new file mode 100644 index 0000000..26571a8 --- /dev/null +++ b/assets/css/highlight.css @@ -0,0 +1,133 @@ +/* + * Laserwave Theme originally by Jared Jones for Visual Studio Code + * https://github.com/Jaredk3nt/laserwave + * + * Ported for PrismJS by Simon Jespersen [https://github.com/simjes] + */ + +code[class*="language-"], +pre[class*="language-"] { + background: #27212e; + color: #ffffff; + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; /* this is the default */ + /* The following properties are standard, please leave them as they are */ + font-size: 1em; + 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; + /* The following properties are also standard */ + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} + +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection, +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection { + background: #eb64b927; + color: inherit; +} + +code[class*="language-"]::selection, +code[class*="language-"] ::selection, +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection { + background: #eb64b927; + color: inherit; +} + +/* Properties specific to code blocks */ +pre[class*="language-"] { + padding: 1em; /* this is standard */ + margin: 0.5em 0; /* this is the default */ + overflow: auto; /* this is standard */ + border-radius: 0.5em; +} + +/* Properties specific to inline code */ +:not(pre) > code[class*="language-"] { + padding: 0.2em 0.3em; + border-radius: 0.5rem; + white-space: normal; /* this is standard */ +} + +.token.comment, +.token.prolog, +.token.cdata { + color: #91889b; +} + +.token.punctuation { + color: #7b6995; +} + +.token.builtin, +.token.constant, +.token.boolean { + color: #ffe261; +} + +.token.number { + color: #b381c5; +} + +.token.important, +.token.atrule, +.token.property, +.token.keyword { + color: #40b4c4; +} + +.token.doctype, +.token.operator, +.token.inserted, +.token.tag, +.token.class-name, +.token.symbol { + color: #74dfc4; +} + +.token.attr-name, +.token.function, +.token.deleted, +.token.selector { + color: #eb64b9; +} + +.token.attr-value, +.token.regex, +.token.char, +.token.string { + color: #b4dce7; +} + +.token.entity, +.token.url, +.token.variable { + color: #ffffff; +} + +/* The following rules are pretty similar across themes, but feel free to adjust them */ +.token.bold { + font-weight: bold; +} + +.token.italic { + font-style: italic; +} + +.token.entity { + cursor: help; +} + +.token.namespace { + opacity: 0.7; +}
\ No newline at end of file diff --git a/assets/css/main.css b/assets/css/main.css index 8b96b59..a51da84 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -127,13 +127,25 @@ main { margin-inline: auto; } -code { +code:not([class*="language-"]) { background-color: var(--code); color: var(--code-text); padding: 0.2rem; border-radius: 0; clip-path: polygon(0% 0,0% calc(100% - 0.4rem), 0.4rem 100%,100% 100%, 100% 0%); } +pre[class*="language-"] { + position: relative; + padding: 1.5rem 1rem; + overflow-x: auto; + border-radius: 0; + clip-path: polygon(0% 0,0% calc(100% - 0.4rem), 0.4rem 100%,100% 100%, 100% 0%); + font-family: "JetBrains Mono", monospace; +} +pre[class*="language-"] * { + font-family: "JetBrains Mono", monospace; +} + footer { max-width: 80ch; margin-inline: auto; |
