tiptap/docs/src/layouts/App/prism.scss

225 lines
3.2 KiB
SCSS
Raw Normal View History

2020-04-18 23:42:32 +08:00
$codeBg: rgba($colorBlack, 0.9);
2020-04-18 18:59:17 +08:00
$codeSelection: #363636;
$codeText: #eee;
$codeGrey: #616161;
$codeRed: #ff6666;
$codeOrange: #fd9170;
2020-04-18 19:04:02 +08:00
$colorYellow: #ffcb6b;
$codeGreen: #b9ea80;
2020-04-18 18:59:17 +08:00
$codeBlue: #89ddff;
$codeTeal: #80cbc4;
$codePurple: #c792ea;
2020-04-18 05:35:07 +08:00
code[class*="language-"], pre[class*="language-"] {
2020-04-18 23:42:32 +08:00
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
hyphens: none;
color: inherit;
text-shadow: none;
font-family: 'JetBrainsMono', monospace;
font-size: 1em;
line-height: 1.8;
tab-size: 2;
2020-04-18 05:35:07 +08:00
}
code[class*="language-"]::-moz-selection, pre[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection,
pre[class*="language-"] ::-moz-selection {
2020-04-18 23:42:32 +08:00
text-shadow: none;
opacity: 1;
color: $codeText;
background: $codeSelection;
2020-04-18 05:35:07 +08:00
}
code[class*="language-"]::selection, pre[class*="language-"]::selection,
code[class*="language-"] ::selection,
pre[class*="language-"] ::selection {
2020-04-18 23:42:32 +08:00
text-shadow: none;
opacity: 1;
color: $codeText;
background: $codeSelection;
2020-04-18 05:35:07 +08:00
}
@media print {
2020-04-18 23:42:32 +08:00
code[class*="language-"], pre[class*="language-"] {
text-shadow: none !important;
}
2020-04-18 05:35:07 +08:00
}
:not(pre) > code[class*="language-"] {
2020-04-18 23:42:32 +08:00
white-space: normal;
color: $codeText;
background: $codeBg;
border-radius: 0.2em;
padding: 0.1em;
2020-04-18 05:35:07 +08:00
}
pre > code[class*="language-"] {
2020-04-18 23:42:32 +08:00
background: none;
2020-04-18 05:35:07 +08:00
}
pre[class*="language-"] {
2020-04-18 23:42:32 +08:00
overflow: auto;
position: relative;
color: $codeText;
background: $codeBg;
padding: 1.2rem 1.5rem;
border-radius: 0.5rem;
2020-04-18 05:35:07 +08:00
}
pre[class*="language-"].language-css > code, pre[class*="language-"].language-sass > code, pre[class*="language-"].language-scss > code {
2020-04-18 23:42:32 +08:00
color: $codeOrange;
2020-04-18 05:35:07 +08:00
}
[class*="language-"] .namespace {
2020-04-18 23:42:32 +08:00
opacity: 0.7;
2020-04-18 05:35:07 +08:00
}
.token.atrule {
2020-04-18 23:42:32 +08:00
color: $codePurple;
2020-04-18 05:35:07 +08:00
}
.token.attr-name {
2020-04-18 23:42:32 +08:00
color: $colorYellow;
2020-04-18 05:35:07 +08:00
}
.token.attr-value {
2020-04-18 23:42:32 +08:00
color: $codeGreen;
2020-04-18 05:35:07 +08:00
}
.token.attribute {
2020-04-18 23:42:32 +08:00
color: $codeGreen;
2020-04-18 05:35:07 +08:00
}
.token.boolean {
2020-04-18 23:42:32 +08:00
color: $codePurple;
2020-04-18 05:35:07 +08:00
}
.token.builtin {
2020-04-18 23:42:32 +08:00
color: $colorYellow;
2020-04-18 05:35:07 +08:00
}
.token.cdata {
2020-04-18 23:42:32 +08:00
color: $codeTeal;
2020-04-18 05:35:07 +08:00
}
.token.char {
2020-04-18 23:42:32 +08:00
color: $codeTeal;
2020-04-18 05:35:07 +08:00
}
.token.class {
2020-04-18 23:42:32 +08:00
color: $colorYellow;
2020-04-18 05:35:07 +08:00
}
.token.class-name {
2020-04-18 23:42:32 +08:00
color: $colorYellow;
2020-04-18 05:35:07 +08:00
}
.token.comment {
2020-04-18 23:42:32 +08:00
color: $codeGrey;
2020-04-18 05:35:07 +08:00
}
.token.constant {
2020-04-18 23:42:32 +08:00
color: $codePurple;
2020-04-18 05:35:07 +08:00
}
.token.deleted {
2020-04-18 23:42:32 +08:00
color: $codeRed;
2020-04-18 05:35:07 +08:00
}
.token.doctype {
2020-04-18 23:42:32 +08:00
color: $codeGrey;
2020-04-18 05:35:07 +08:00
}
.token.entity {
2020-04-18 23:42:32 +08:00
color: $codeRed;
2020-04-18 05:35:07 +08:00
}
.token.function {
2020-04-18 23:42:32 +08:00
color: $codePurple;
2020-04-18 05:35:07 +08:00
}
.token.hexcode {
2020-04-18 23:42:32 +08:00
color: $colorYellow;
2020-04-18 05:35:07 +08:00
}
.token.id {
2020-04-18 23:42:32 +08:00
color: $codePurple;
font-weight: bold;
2020-04-18 05:35:07 +08:00
}
.token.important {
2020-04-18 23:42:32 +08:00
color: $codePurple;
font-weight: bold;
2020-04-18 05:35:07 +08:00
}
.token.inserted {
2020-04-18 23:42:32 +08:00
color: $codeTeal;
2020-04-18 05:35:07 +08:00
}
.token.keyword {
2020-04-18 23:42:32 +08:00
color: $codePurple;
2020-04-18 05:35:07 +08:00
}
.token.number {
2020-04-18 23:42:32 +08:00
color: $codeOrange;
2020-04-18 05:35:07 +08:00
}
.token.operator {
2020-04-18 23:42:32 +08:00
color: $codeBlue;
2020-04-18 05:35:07 +08:00
}
.token.prolog {
2020-04-18 23:42:32 +08:00
color: $codeGrey;
2020-04-18 05:35:07 +08:00
}
.token.property {
2020-04-18 23:42:32 +08:00
color: $codeTeal;
2020-04-18 05:35:07 +08:00
}
.token.pseudo-class {
2020-04-18 23:42:32 +08:00
color: $codeGreen;
2020-04-18 05:35:07 +08:00
}
.token.pseudo-element {
2020-04-18 23:42:32 +08:00
color: $codeGreen;
2020-04-18 05:35:07 +08:00
}
.token.punctuation {
2020-04-18 23:42:32 +08:00
color: $codeBlue;
2020-04-18 05:35:07 +08:00
}
.token.regex {
2020-04-18 23:42:32 +08:00
color: $colorYellow;
2020-04-18 05:35:07 +08:00
}
.token.selector {
2020-04-18 23:42:32 +08:00
color: $codeRed;
2020-04-18 05:35:07 +08:00
}
.token.string {
2020-04-18 23:42:32 +08:00
color: $codeGreen;
2020-04-18 05:35:07 +08:00
}
.token.symbol {
2020-04-18 23:42:32 +08:00
color: $codePurple;
2020-04-18 05:35:07 +08:00
}
.token.tag {
2020-04-18 23:42:32 +08:00
color: $codeRed;
2020-04-18 05:35:07 +08:00
}
.token.unit {
2020-04-18 23:42:32 +08:00
color: $codeOrange;
2020-04-18 05:35:07 +08:00
}
.token.url {
2020-04-18 23:42:32 +08:00
color: $codeRed;
2020-04-18 05:35:07 +08:00
}
.token.variable {
2020-04-18 23:42:32 +08:00
color: $codeRed;
2020-04-18 05:35:07 +08:00
}