forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlists.scss
77 lines (66 loc) · 1.32 KB
/
lists.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
71
72
73
74
75
76
77
/* Numbered procedures (step 1, step 2, ...)
------------------------------------------------------------------------------*/
.markdown-body ol {
counter-reset: li;
list-style: none;
position: relative;
padding-bottom: 10px;
padding-left: 0;
}
.markdown-body ol > li {
padding: 15px 0 15px 55px;
position: relative;
margin-bottom: 5px;
border-top: 3px solid var(--color-auto-gray-2);
}
.markdown-body ol > li:before {
content: counter(li);
counter-increment: li;
position: absolute;
top: 10px;
left: 0;
height: 100%;
width: 30px;
padding: 0 10px 0 0;
color: var(--color-auto-gray-4);
font-size: 22px;
font-weight: bold;
line-height: 35px;
text-align: right;
}
.markdown-body ol > li > p {
margin: 0;
}
.markdown-body ol > li > p:first-child {
margin-top: 0;
}
.markdown-body ol > li:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.markdown-body ol > li {
padding: $spacer-2 0 $spacer-2 $spacer-7;
border: 0;
&:before {
top: 2px;
font-size: $spacer-3;
width: $spacer-4;
}
p:not(:first-child) {
margin-top: 15px;
}
.extended-markdown {
margin-top: 15px;
}
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 15px;
margin-bottom: 15px;
}