2022-06-21 13:50:51 +00:00
|
|
|
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,
|
|
|
|
.token.important {
|
2022-06-21 15:14:59 +00:00
|
|
|
color: $accent !important;
|
2022-06-21 13:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.tag-id,
|
|
|
|
.token.atrule-id,
|
|
|
|
.token.operator,
|
|
|
|
.token.unit,
|
|
|
|
.token.placeholder,
|
|
|
|
.token.variable,
|
|
|
|
.token.tag,
|
|
|
|
.token.attr-name,
|
|
|
|
.token.namespace,
|
|
|
|
.token.deleted,
|
|
|
|
.token.property,
|
|
|
|
.token.class-name,
|
|
|
|
.token.constant,
|
|
|
|
.token.symbol {
|
2022-06-21 15:14:59 +00:00
|
|
|
color: opacify($accent, .7) !important;
|
2022-06-21 13:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.property,
|
|
|
|
.token.function,
|
|
|
|
.token.function-name,
|
|
|
|
.token.deleted,
|
|
|
|
code.language-javascript,
|
|
|
|
code.language-html,
|
|
|
|
.command-line-prompt > span:before {
|
2022-06-21 15:14:59 +00:00
|
|
|
color: mix($accent, #999, .9) !important;
|
2022-06-21 13:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.selector,
|
|
|
|
.token.tag,
|
|
|
|
.token.punctuation {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.comment,
|
|
|
|
.token.prolog,
|
|
|
|
.token.doctype,
|
|
|
|
.token.cdata {
|
|
|
|
color: rgba(255, 255, 255, .3) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.namespace {
|
|
|
|
opacity: .7 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre[data-line] {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre[class*="language-"] {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-highlight {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2022-06-21 15:14:59 +00:00
|
|
|
background: opacify(mix($accent, #999, 90%), .08);
|
2022-06-21 13:50:51 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.code-toolbar {
|
2022-06-21 15:14:59 +00:00
|
|
|
$code-margin: 40px;
|
2022-06-21 13:50:51 +00:00
|
|
|
position: relative;
|
2022-06-21 15:14:59 +00:00
|
|
|
margin: $code-margin 0;
|
2022-06-21 13:50:51 +00:00
|
|
|
padding: 20px;
|
|
|
|
border: 1px solid rgba(255, 255, 255, .1);
|
|
|
|
|
|
|
|
+ .code-toolbar,
|
|
|
|
+ .highlight,
|
|
|
|
+ .highlight .code-toolbar {
|
|
|
|
border-top: 0;
|
2022-06-21 15:14:59 +00:00
|
|
|
margin-top: calc(-1 * $code-margin);
|
2022-06-21 13:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre, code {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
display: block;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .toolbar {
|
|
|
|
button {
|
|
|
|
font-size: .8em !important;
|
|
|
|
background: hsla(0,0%,87.8%,.2) !important;
|
|
|
|
color: #bbb !important;
|
|
|
|
box-shadow: 0 2px 0 0 rgba(0,0,0,.2) !important;
|
|
|
|
border-radius: 0 !important;
|
|
|
|
margin: 6px !important;
|
|
|
|
padding: 10px !important;
|
|
|
|
user-select:none
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|