BUG fix: editor styles

This commit is contained in:
KUN1007 2023-12-09 15:03:50 +08:00
parent 57f1cc7178
commit 123814f3d2
2 changed files with 206 additions and 0 deletions

View file

@ -0,0 +1,205 @@
code[class*='language-'],
pre[class*='language-'] {
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
color: var(--kungalgame-pink-0);
background: var(--kungalgame-font-color-0);
font-family: Roboto Mono, monospace;
font-size: 1em;
line-height: 1.5em;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
code[class*='language-']::-moz-selection,
pre[class*='language-']::-moz-selection,
code[class*='language-'] ::-moz-selection,
pre[class*='language-'] ::-moz-selection {
background: var(--kungalgame-font-color-0);
}
code[class*='language-']::selection,
pre[class*='language-']::selection,
code[class*='language-'] ::selection,
pre[class*='language-'] ::selection {
background: var(--kungalgame-font-color-0);
}
:not(pre) > code[class*='language-'] {
white-space: normal;
border-radius: 0.2em;
padding: 0.1em;
}
pre[class*='language-'] {
overflow: auto;
position: relative;
margin: 0.5em 0;
padding: 1.25em 1em;
}
.language-css > code,
.language-sass > code,
.language-scss > code {
color: var(--kungalgame-red-2);
}
[class*='language-'] .namespace {
opacity: 0.7;
}
.token.atrule {
color: var(--kungalgame-pink-3);
}
.token.attr-name {
color: var(--kungalgame-purple-4);
}
.token.attr-value {
color: var(--kungalgame-green-4);
}
.token.attribute {
color: var(--kungalgame-green-4);
}
.token.boolean {
color: var(--kungalgame-pink-3);
}
.token.builtin {
color: var(--kungalgame-purple-4);
}
.token.cdata {
color: var(--kungalgame-blue-4);
}
.token.char {
color: var(--kungalgame-blue-4);
}
.token.class {
color: var(--kungalgame-purple-4);
}
.token.class-name {
color: var(--kungalgame-yellow-2);
}
.token.comment {
color: var(--kungalgame-font-color-0);
}
.token.constant {
color: var(--kungalgame-pink-3);
}
.token.deleted {
color: var(--kungalgame-red-4);
}
.token.doctype {
color: var(--kungalgame-font-color-0);
}
.token.entity {
color: var(--kungalgame-red-4);
}
.token.function {
color: var(--kungalgame-pink-3);
}
.token.hexcode {
color: var(--kungalgame-yellow-2);
}
.token.id {
color: var(--kungalgame-pink-3);
font-weight: bold;
}
.token.important {
color: var(--kungalgame-pink-3);
font-weight: bold;
}
.token.inserted {
color: var(--kungalgame-blue-4);
}
.token.keyword {
color: var(--kungalgame-pink-3);
}
.token.number {
color: var(--kungalgame-red-2);
}
.token.operator {
color: var(--kungalgame-blue-2);
}
.token.prolog {
color: var(--kungalgame-font-color-0);
}
.token.property {
color: var(--kungalgame-blue-4);
}
.token.pseudo-class {
color: var(--kungalgame-green-4);
}
.token.pseudo-element {
color: var(--kungalgame-green-4);
}
.token.punctuation {
color: var(--kungalgame-blue-2);
}
.token.regex {
color: var(--kungalgame-yellow-2);
}
.token.selector {
color: var(--kungalgame-red-4);
}
.token.string {
color: var(--kungalgame-green-4);
}
.token.symbol {
color: var(--kungalgame-pink-3);
}
.token.tag {
color: var(--kungalgame-red-4);
}
.token.unit {
color: var(--kungalgame-red-2);
}
.token.url {
color: var(--kungalgame-red-4);
}
.token.variable {
color: var(--kungalgame-red-4);
}

View file

@ -0,0 +1 @@
@use './code-theme.scss';