mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-16 03:39:00 +08:00
217 lines
2.8 KiB
SCSS
217 lines
2.8 KiB
SCSS
|
$codeBg: $colorBlack;
|
||
|
|
||
|
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: 'Fira Code', monospace;
|
||
|
font-size: 1em;
|
||
|
line-height: 1.8;
|
||
|
tab-size: 2;
|
||
|
}
|
||
|
|
||
|
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: #eee;
|
||
|
background: $codeBg;
|
||
|
border-radius: 0.2em;
|
||
|
padding: 0.1em;
|
||
|
}
|
||
|
|
||
|
pre > code[class*="language-"] {
|
||
|
background: none;
|
||
|
}
|
||
|
|
||
|
pre[class*="language-"] {
|
||
|
overflow: auto;
|
||
|
position: relative;
|
||
|
color: #eee;
|
||
|
background: $codeBg;
|
||
|
border-radius: 0;
|
||
|
margin: 0.5em 0;
|
||
|
padding: 1.25em 1em;
|
||
|
border-radius: 12px;
|
||
|
}
|
||
|
|
||
|
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: #a5e844;
|
||
|
}
|
||
|
|
||
|
.token.attribute {
|
||
|
color: #a5e844;
|
||
|
}
|
||
|
|
||
|
.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.comment {
|
||
|
color: #616161;
|
||
|
}
|
||
|
|
||
|
.token.constant {
|
||
|
color: #c792ea;
|
||
|
}
|
||
|
|
||
|
.token.deleted {
|
||
|
color: #ff6666;
|
||
|
}
|
||
|
|
||
|
.token.doctype {
|
||
|
color: #616161;
|
||
|
}
|
||
|
|
||
|
.token.entity {
|
||
|
color: #ff6666;
|
||
|
}
|
||
|
|
||
|
.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;
|
||
|
}
|
||
|
|
||
|
.token.number {
|
||
|
color: #fd9170;
|
||
|
}
|
||
|
|
||
|
.token.operator {
|
||
|
color: #89ddff;
|
||
|
}
|
||
|
|
||
|
.token.prolog {
|
||
|
color: #616161;
|
||
|
}
|
||
|
|
||
|
.token.property {
|
||
|
color: #80cbc4;
|
||
|
}
|
||
|
|
||
|
.token.pseudo-class {
|
||
|
color: #a5e844;
|
||
|
}
|
||
|
|
||
|
.token.pseudo-element {
|
||
|
color: #a5e844;
|
||
|
}
|
||
|
|
||
|
.token.punctuation {
|
||
|
color: #89ddff;
|
||
|
}
|
||
|
|
||
|
.token.regex {
|
||
|
color: #f2ff00;
|
||
|
}
|
||
|
|
||
|
.token.selector {
|
||
|
color: #ff6666;
|
||
|
}
|
||
|
|
||
|
.token.string {
|
||
|
color: #a5e844;
|
||
|
}
|
||
|
|
||
|
.token.symbol {
|
||
|
color: #c792ea;
|
||
|
}
|
||
|
|
||
|
.token.tag {
|
||
|
color: #ff6666;
|
||
|
}
|
||
|
|
||
|
.token.unit {
|
||
|
color: #fd9170;
|
||
|
}
|
||
|
|
||
|
.token.url {
|
||
|
color: #ff6666;
|
||
|
}
|
||
|
|
||
|
.token.variable {
|
||
|
color: #ff6666;
|
||
|
}
|