tiptap/docs/src/layouts/App/prism.scss
2020-04-18 17:54:00 +02:00

225 lines
3.2 KiB
SCSS

$codeBg: rgba($colorBlack, 0.9);
$codeSelection: #363636;
$codeText: #eee;
$codeGrey: #616161;
$codeRed: #ff6666;
$codeOrange: #fd9170;
$colorYellow: #ffcb6b;
$codeGreen: #b9ea80;
$codeBlue: #89ddff;
$codeTeal: #80cbc4;
$codePurple: #c792ea;
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: 'JetBrainsMono', 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: $codeText;
background: $codeSelection;
}
code[class*="language-"]::selection, pre[class*="language-"]::selection,
code[class*="language-"] ::selection,
pre[class*="language-"] ::selection {
text-shadow: none;
opacity: 1;
color: $codeText;
background: $codeSelection;
}
@media print {
code[class*="language-"], pre[class*="language-"] {
text-shadow: none !important;
}
}
:not(pre) > code[class*="language-"] {
white-space: normal;
color: $codeText;
background: $codeBg;
border-radius: 0.2em;
padding: 0.1em;
}
pre > code[class*="language-"] {
background: none;
}
pre[class*="language-"] {
overflow: auto;
position: relative;
color: $codeText;
background: $codeBg;
padding: 1.2rem 1.5rem;
border-radius: 0.5rem;
}
pre[class*="language-"].language-css > code, pre[class*="language-"].language-sass > code, pre[class*="language-"].language-scss > code {
color: $codeOrange;
}
[class*="language-"] .namespace {
opacity: 0.7;
}
.token.atrule {
color: $codePurple;
}
.token.attr-name {
color: $colorYellow;
}
.token.attr-value {
color: $codeGreen;
}
.token.attribute {
color: $codeGreen;
}
.token.boolean {
color: $codePurple;
}
.token.builtin {
color: $colorYellow;
}
.token.cdata {
color: $codeTeal;
}
.token.char {
color: $codeTeal;
}
.token.class {
color: $colorYellow;
}
.token.class-name {
color: $colorYellow;
}
.token.comment {
color: $codeGrey;
}
.token.constant {
color: $codePurple;
}
.token.deleted {
color: $codeRed;
}
.token.doctype {
color: $codeGrey;
}
.token.entity {
color: $codeRed;
}
.token.function {
color: $codePurple;
}
.token.hexcode {
color: $colorYellow;
}
.token.id {
color: $codePurple;
font-weight: bold;
}
.token.important {
color: $codePurple;
font-weight: bold;
}
.token.inserted {
color: $codeTeal;
}
.token.keyword {
color: $codePurple;
}
.token.number {
color: $codeOrange;
}
.token.operator {
color: $codeBlue;
}
.token.prolog {
color: $codeGrey;
}
.token.property {
color: $codeTeal;
}
.token.pseudo-class {
color: $codeGreen;
}
.token.pseudo-element {
color: $codeGreen;
}
.token.punctuation {
color: $codeBlue;
}
.token.regex {
color: $colorYellow;
}
.token.selector {
color: $codeRed;
}
.token.string {
color: $codeGreen;
}
.token.symbol {
color: $codePurple;
}
.token.tag {
color: $codeRed;
}
.token.unit {
color: $codeOrange;
}
.token.url {
color: $codeRed;
}
.token.variable {
color: $codeRed;
}