-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_code.css
109 lines (95 loc) · 2 KB
/
_code.css
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
code,
kbd,
pre,
samp {
font-family: var(--font-family-monospace);
font-size: calc(1em * 0.9);
}
code,
kbd {
padding: 0.1rem 0.3rem;
}
code,
samp {
background-color: var(--box-background-color);
border-radius: var(--border-radius);
white-space: normal;
}
kbd {
color: var(--kbd-color);
background-color: var(--box-background-color);
border-radius: var(--border-radius);
border: 1px solid var(--box-background-color);
box-shadow: inset 0 1px 0 rgba(255 255 255 / 40%);
padding: 0.15rem 0.4rem;
}
h2 code,
h2 kbd,
h3 code,
h3 kbd,
h4 code,
h4 kbd,
h5 code,
h5 kbd {
font-size: calc(1em * 0.7);
}
pre {
position: relative;
display: block;
max-height: 800px;
margin-bottom: var(--spacer);
background-color: var(--box-background-color);
border-radius: var(--border-radius);
color: var(--code-color);
line-height: var(--line-height);
overflow: auto;
-webkit-overflow-scrolling: touch;
padding: 0;
}
pre code {
display: block;
background: none;
color: inherit;
overflow-wrap: normal;
padding: calc(var(--spacer) / 2);
white-space: pre;
word-wrap: normal;
word-break: normal;
}
pre::-webkit-scrollbar {
width: 0.35rem;
height: 0.35rem;
}
pre::-webkit-scrollbar-thumb {
background: var(--text-color-light);
border-radius: var(--border-radius);
}
pre::-webkit-scrollbar-track {
background: var(--border-color);
border-bottom-left-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
}
.expressive-code {
margin: var(--spacer) 0;
}
div.expressive-code .frame .copy {
top: 0.1rem;
right: 0.3rem;
}
div.expressive-code .frame .copy button {
width: 1.7rem;
height: 1.7rem;
background: none;
border: none;
border-radius: var(--border-radius);
opacity: 0.6 !important;
}
div.expressive-code .frame .copy button::before {
display: none;
}
div.expressive-code .frame.has-title:not(.is-terminal) .header .title {
border: 0;
border-top-right-radius: 0;
border-bottom-right-radius: var(--border-radius);
padding: 0.3rem 1rem;
}