yufan.me/themes/spectre/dist/styles/prism.css

157 lines
2.6 KiB
CSS
Raw Normal View History

2024-06-14 02:15:18 +08:00
pre.line-numbers {
position: relative;
padding-left: 3.8em!important;
counter-reset: linenumber
}
pre.line-numbers>code {
position: relative
}
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 0;
font-size: 100%;
left: -3.8em;
width: 3em;
letter-spacing: -1px;
border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
.line-numbers-rows>span {
pointer-events: none;
display: block;
counter-increment: linenumber
}
.line-numbers-rows>span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: .8em;
text-align: right
}
code[class*=language-],
pre[class*=language-] {
color: #657b83;
font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-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,
code[class*=language-]::-moz-selection,
pre[class*=language-] ::-moz-selection,
pre[class*=language-]::-moz-selection {
background: #073642
}
code[class*=language-] ::selection,
code[class*=language-]::selection,
pre[class*=language-] ::selection,
pre[class*=language-]::selection {
background: #073642
}
pre[class*=language-] {
padding: 1em;
margin: .5em 0;
overflow: auto;
border-radius: .3em
}
:not(pre)>code[class*=language-],
pre[class*=language-] {
background-color: #fdf6e3
}
:not(pre)>code[class*=language-] {
padding: .1em;
border-radius: .3em
}
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
color: #93a1a1
}
.token.punctuation {
color: #586e75
}
.namespace {
opacity: .7
}
.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
color: #268bd2
}
.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string,
.token.url {
color: #2aa198
}
.token.entity {
color: #657b83;
background: #eee8d5
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #859900
}
.token.function {
color: #b58900
}
.token.important,
.token.regex,
.token.variable {
color: #cb4b16
}
.token.bold,
.token.important {
font-weight: 700
}
.token.italic {
font-style: italic
}
.token.entity {
cursor: help
}