-
Notifications
You must be signed in to change notification settings - Fork 37
/
List.css
68 lines (56 loc) · 1.14 KB
/
List.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
.list {
margin-bottom: 1rem;
font-size: var(--font-size-medium);
&.marginBottom0 {
margin-bottom: 0;
}
}
/**
* Is empty message
*/
.isEmptyMessage {
font-size: var(--font-size-medium);
color: var(--color-text-p2);
}
/**
* List style
* Easily change list style by changing the listStyle-prop (defaults to: default)
*/
/**
* Default
*/
.listStyleDefault {
padding: 0;
& li {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--gutter-static-one-third) 0;
border-radius: var(--radius);
margin-bottom: var(--gutter-static-one-third);
}
}
/**
* Bullets
*/
ul.listStyleBullets,
ul.listStyleBullets ul {
list-style-type: disc;
padding-left: var(--gutter-static);
& ul {
margin-top: var(--gutter-static-one-third);
list-style-type: circle;
margin-bottom: var(--gutter-static-two-thirds);
}
& li {
margin-bottom: var(--gutter-static-one-third);
}
}
[dir="rtl"] ul.listStyleBullets,
[dir="rtl"] ul.listStyleBullets ul {
padding-left: 0;
padding-right: var(--gutter-static);
}
.listStyleDefault:nth-child(odd) {
background-color: var(--color-fill);
}