blob: cbf116659e5183ed3e36202eabf1397cfce34e8c (
plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
.sum {margin: .2rem 0}
.s95 {font-size: .95em}
.s90 {font-size: .90em}
.s85 {font-size: .85em}
.s80 {font-size: .80em}
.s75 {font-size: .75em}
.s70 {font-size: .70em}
.hpad {padding: 0 .2rem}
.rpad {padding-right: .2rem}
.si {
font-size: 1.5em
}
pre code[data-lang]::before {
color: var(--f1);
text-transform: uppercase;
content: ' [' attr(data-lang) '] ' "
";
}
// code copy wrapper
.ccw {
position: relative;
}
.ccw:hover {
.cc {
opacity: 1;
}
}
// code copy button
.cc {
opacity: 0;
z-index: 9;
position: absolute;
right: 9px;
top: 9px;
font-size: .8rem;
}
// Mark Override, this is used for Zola's linenos and hl_lines
:root:not(.light) code table {
mark {
filter: brightness(120%);
}
}
// Table Override, this is used for Zola's linenos and hl_lines
code table {
font-size: .8rem;
margin: 0;
td, th, tr {
padding: 0;
border-bottom: none;
}
tbody tr td:first-child {
text-align: center;
user-select: none;
min-width: 60px;
}
tbody tr:nth-child(even), thead tr {
background-color: unset;
}
// Highlighted text
mark {
display: block;
background-color: var(--c2);
color: unset;
padding: 0;
}
}
|