forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlists.less
More file actions
91 lines (79 loc) · 1.3 KB
/
lists.less
File metadata and controls
91 lines (79 loc) · 1.3 KB
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
@import (once) "variables";
@import (once) "typography";
@import (once) "utils";
.simple-list, .numeric-list {
.unstyled-list;
counter-reset:li;
padding-left:0;
margin-left: .625rem;
li {
position:relative;
padding: 4px 12px;
list-style:none;
color: @textColor;
&:before {
position: absolute;
top: 50%;
margin-top: -.8rem;
left: -10px;
color: @lightCyan;
font-size: 2rem;
vertical-align: middle;
}
}
ul {
margin: 4px .5em 0;
}
}
.simple-list {
& > li:before {
content: "\2022";
}
& > ul li:before {
content: "\00B7";
}
}
.numeric-list {
& > li {
padding: 4px 12px 4px 18px;
}
& > li:before {
content:counter(li);
counter-increment:li;
font-size: .8rem ;
color: @white;
background-color: @lightCyan;
.square(1.25rem);
border-radius: 50%;
.align-center;
margin-top: -.65rem;
}
&.square-marker {
& > li:before {
border-radius: 0;
}
}
}
.step-list {
margin: 0 0 0 2rem;
padding: 0;
list-style-type: none;
counter-reset:li;
& > li {
border-left: 1px #ccc solid;
position: relative;
padding: 0 .625rem;
margin: .625rem;
vertical-align: top;
}
& > li:before {
position: absolute;
content:counter(li);
counter-increment:li;
font-size: 2rem;
color: @grayLight;
left: 0;
top: .3125rem;
margin-left: -1.5rem;
}
}