-
Notifications
You must be signed in to change notification settings - Fork 885
Expand file tree
/
Copy pathhighlight.scss
More file actions
49 lines (41 loc) · 970 Bytes
/
highlight.scss
File metadata and controls
49 lines (41 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Licensed to the .NET Foundation under one or more agreements.
* The .NET Foundation licenses this file to you under the MIT license.
*/
@use "sass:meta";
@use "highlight.js/scss/vs";
@use "bootstrap/scss/bootstrap";
@include bootstrap.color-mode(dark) {
/* stylelint-disable-next-line no-invalid-position-at-import-rule */
@include meta.load-css("highlight.js/scss/vs2015");
}
/* default code block style before hljs loads */
pre code {
background-color: #f5f5f5;
color: #000;
display: block;
overflow-x: auto;
padding: 1em;
}
@include bootstrap.color-mode(dark) {
pre code {
background: #1E1E1E;
color: #DCDCDC;
}
}
.hljs {
background-color: #f5f5f5;
@media print {
overflow-x: hidden;
text-wrap: pretty;
}
}
/* For code snippet line highlight */
pre > code .line-highlight {
background-color: yellow;
}
@include bootstrap.color-mode(dark) {
pre > code .line-highlight {
background-color: #4a4a00;
}
}