mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-12-05 03:03:55 +03:00
101 lines
1.7 KiB
CSS
101 lines
1.7 KiB
CSS
code.language-css,
|
|
code.language-scss,
|
|
.token.boolean,
|
|
.token.string,
|
|
.token.entity,
|
|
.token.url,
|
|
.language-css .token.string,
|
|
.language-scss .token.string,
|
|
.style .token.string,
|
|
.token.attr-value,
|
|
.token.keyword,
|
|
.token.control,
|
|
.token.directive,
|
|
.token.statement,
|
|
.token.regex,
|
|
.token.atrule,
|
|
.token.number,
|
|
.token.inserted {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.token.tag-id,
|
|
.token.atrule-id,
|
|
.token.operator,
|
|
.token.unit,
|
|
.token.placeholder,
|
|
.token.variable,
|
|
.token.attr-name {
|
|
color: color-mod(var(--accent) a(70%));
|
|
}
|
|
|
|
.token.property,
|
|
.token.function,
|
|
.token.deleted,
|
|
code.language-javascript,
|
|
code.language-html,
|
|
.command-line-prompt > span:before {
|
|
color: color-mod(var(--accent) blend(#999 90%));
|
|
}
|
|
|
|
.token.selector,
|
|
.token.tag,
|
|
.token.punctuation {
|
|
color: white;
|
|
}
|
|
|
|
.token.comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
color: rgba(255, 255, 255, .3);
|
|
}
|
|
|
|
.token.namespace {
|
|
opacity: .7;
|
|
}
|
|
|
|
pre[data-line] {
|
|
position: relative;
|
|
}
|
|
|
|
.line-highlight {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: color-mod(var(--accent) blend(#999 90%) a(8%));
|
|
pointer-events: none;
|
|
line-height: inherit;
|
|
white-space: pre;
|
|
}
|
|
|
|
.line-highlight:before,
|
|
.line-highlight[data-end]:after {
|
|
content: attr(data-start);
|
|
position: absolute;
|
|
/* top: .4em; */
|
|
left: .6em;
|
|
min-width: 1em;
|
|
padding: 0 .5em;
|
|
background-color: hsla(24, 20%, 50%, .4);
|
|
color: hsl(24, 20%, 95%);
|
|
font: bold 65%/1.5 sans-serif;
|
|
text-align: center;
|
|
vertical-align: .3em;
|
|
border-radius: 999px;
|
|
text-shadow: none;
|
|
box-shadow: 0 1px white;
|
|
}
|
|
|
|
.line-highlight[data-end]:after {
|
|
content: attr(data-end);
|
|
top: auto;
|
|
bottom: .4em;
|
|
}
|
|
|
|
.line-numbers .line-highlight:before,
|
|
.line-numbers .line-highlight:after {
|
|
content: none;
|
|
}
|