-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_code.scss
70 lines (60 loc) · 1.1 KB
/
_code.scss
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
pre,
pre code {
background-color: #fff;
}
pre,
code {
font-family: $monospace-font-family;
}
code {
color: #7a7a7a;
}
pre {
padding: 1.125em;
line-height: 1.11;
overflow-x: scroll;
margin-bottom: 0.88em;
border: thin solid #f3f3f3;
border-radius: $pre-border-radius;
}
.highlight .p {
font-size: 1.125rem;
line-height: 1;
}
pre {
counter-reset: line-numbering;
white-space: pre;
overflow-x: auto;
word-break: inherit;
word-wrap: inherit;
}
pre a {
background-image: none;
}
pre a::before {
content: counter(line-numbering);
counter-increment: line-numbering;
padding-right: 1em; /* space after numbers */
width: 25px;
text-align: right;
opacity: 0.7;
display: inline-block;
color: $light-gray;
margin-right: 16px;
font-size: 13px;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
pre a:first-of-type::before {
padding-top: 10px;
}
pre a:last-of-type::before {
padding-bottom: 10px;
}
pre a:only-of-type::before {
padding: 10px;
}