-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patha11yAccordion.less
99 lines (90 loc) · 2.39 KB
/
a11yAccordion.less
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
99
@borderColor: #206BA4;
@shadowColor: #888;
@borderRadius: 7px;
.a11yAccordion-theme(@background, @text, @link) {
background-color: @background;
color: @text;
a, a:visited {
color: @link;
}
}
.a11y-AT() {
left: -900px;
top: -900px;
position: absolute;
}
.a11yAccordion-centralPos() {
margin-left: auto;
margin-right: auto;
width: 80%;
}
.a11yAccordion {
.a11yAccordionSearchDiv {
.a11yAccordion-centralPos();
text-align:right;
.a11yAccordionSearch {
background-image: url('../imgs/search.png');
background-repeat: no-repeat;
background-size: auto 80%;
background-position: 1% 15%;
padding-left: 1.4em;
border-radius: 1em;
-moz-border-radius: 1em;
-webkit-border-radius: 1em;
}
}
.a11yAccordionItem, .a11yAccordionNoResultsItem {
.a11yAccordion-centralPos();
border-color: @borderColor;
border-style: solid;
border-width: 1px;
border-radius: @borderRadius;
margin-top: 1em;
list-style-type: none;
.a11yAccordionItemHeader {
cursor:pointer;
border-radius: @borderRadius;
padding: 1.5em;
overflow: auto;
.a11yAccordionItemHeaderLink {
float: right;
.a11yAccordionItemHeaderLinkHiddenLabel {
.a11y-AT();
}
.a11yAccordion-triangle {
width: 0;
height: 0;
margin-left: 5px;
margin-top: 5px;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid;
float: right;
-moz-transition: -moz-transform .3s;
-webkit-transition: -webkit-transform .3s;
-o-transition: -o-transform .3s;
transition: transform .3s;
&.toggle {
-moz-transform: rotate(-180deg);
-o-transform: rotate(-180deg);
-webkit-transform: rotate(-180deg);
transform: rotate(-180deg);
}
}
}
}
.a11yAccordionHideArea {
padding: 1.5em;
border-top-style: solid;
border-top-width: 1px;
border-top-color: @borderColor;
&.visiblea11yAccordionItem {
-moz-box-shadow: inset 0 0 0.7em 1px @shadowColor;
-webkit-box-shadow: inset 0 0 0.7em 1px @shadowColor;
box-shadow: inset 0 0 0.7em 1px @shadowColor;
}
}
}
}
@import "a11yAccordion-dark.less";
@import "a11yAccordion-light.less";