forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccordion.less
More file actions
64 lines (55 loc) · 1.29 KB
/
Copy pathaccordion.less
File metadata and controls
64 lines (55 loc) · 1.29 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
.accordion {
& > .accordion-frame {
.border;
margin-bottom: 2px;
& > .heading {
display: block;
text-decoration: none;
background-color: @grayLighter;
padding: 10px 20px;
width: 100%;
position: relative;
color: @dark;
[class*="icon-"] {
margin-right: 10px;
}
}
& > .content {
padding: 10px;
}
}
& > .accordion-frame {
& > .content {
display: none;
}
&:first-child {
& > .content {
//display: block;
}
}
}
}
.accordion {
&.with-marker {
.heading {
&:before {
position: absolute;
display: block;
left: 5px;
top: 12px;
content: '';
width: 0;
height: 0;
border-left: 7px solid transparent;
border-top: 7px solid transparent;
border-bottom: 7px solid black;
}
&.collapsed {
&:before {
.rotate(-45deg);
margin-left: -4px;
}
}
}
}
}