-
Notifications
You must be signed in to change notification settings - Fork 0
/
_list.scss
98 lines (82 loc) · 1.46 KB
/
_list.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
///
/// Massively by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* List */
ol {
list-style: decimal;
margin: 0 0 _size(element-margin) 0;
padding-left: 1.25rem;
li {
padding-left: 0.25rem;
}
}
ul {
list-style: disc;
margin: 0 0 _size(element-margin) 0;
padding-left: 1rem;
li {
padding-left: 0.5rem;
}
&.divided {
list-style: none;
padding-left: 0;
li {
border-top: solid 1px;
padding: 0.5rem 0;
&:first-child {
border-top: 0;
padding-top: 0;
}
}
}
}
dl {
margin: 0 0 _size(element-margin) 0;
dt {
display: block;
font-weight: _font(weight-bold);
margin: 0 0 (_size(element-margin) * 0.5) 0;
}
dd {
margin-left: _size(element-margin);
}
}
@mixin color-list($p: null) {
ul {
&.divided {
li {
border-top-color: _palette($p, border);
}
}
&.icons {
li {
a.icon {
&:hover {
&:before {
color: _palette($p, accent);
}
}
}
}
&.alt {
li {
.icon {
&:before {
box-shadow: inset 0 0 0 2px _palette($p, border);
}
}
a.icon {
&:hover {
&:before {
box-shadow: inset 0 0 0 2px _palette($p, accent);
}
}
}
}
}
}
}
}
@include color-list;