-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
lists.scss
98 lines (85 loc) · 1.82 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Base styles
// stylelint-disable selector-no-qualifying-type
// stylelint-disable selector-max-type
.markdown-body {
// Lists, Blockquotes & Such
ul,
ol {
// stylelint-disable-next-line primer/spacing
padding-left: 2em;
&.no-list {
padding: 0;
list-style-type: none;
}
}
ol[type='a'] {
list-style-type: lower-alpha;
}
ol[type='A'] {
list-style-type: upper-alpha;
}
ol[type='i'] {
list-style-type: lower-roman;
}
ol[type='I'] {
list-style-type: upper-roman;
}
ol[type='1'] {
list-style-type: decimal;
}
// Reset <ol> style to decimal (HTML default) specifically for AsciiDoc
// <div><ol> construction (doesn't affect MarkDown)
div > ol:not([type]) {
list-style-type: decimal;
}
// Did someone complain about list spacing? Encourage them
// to create the spacing with their markdown formatting.
// List behavior should be controled by the markup, not the css.
//
// For lists with padding between items, use blank
// lines between items. This will generate paragraphs with
// padding to space things out.
//
// - item
//
// - item
//
// - item
//
// For list without padding, don't use blank lines.
//
// - item
// - item
// - item
//
// Modifying the css to emulate these behaviors merely brakes
// one case in the process of solving another. Don't change
// this unless it's really really a bug.
ul ul,
ul ol,
ol ol,
ol ul {
margin-top: 0;
margin-bottom: 0;
}
li > p {
margin-top: $spacer-3;
}
li + li {
margin-top: $em-spacer-3;
}
dl {
padding: 0;
dt {
padding: 0;
margin-top: $spacer-3;
font-size: 1em;
font-style: italic;
font-weight: $font-weight-bold;
}
dd {
padding: 0 $spacer-3;
margin-bottom: $spacer-3;
}
}
}