-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathfaq-accordion.css
More file actions
52 lines (47 loc) · 993 Bytes
/
faq-accordion.css
File metadata and controls
52 lines (47 loc) · 993 Bytes
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
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.accordion:hover {
background-color: #ccc;
}
.accordion:after {
content: "\25BA"; /* "play" icon */
float: right;
color: #454444;
font-size: 18px;
line-height: 22px;
/* rotate "play" icon from > (right arrow) to down arrow */
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
}
.active:after {
/* rotate "play" icon from > (right arrow) to ^ (up arrow) */
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
transform: rotate(-90deg);
color: #F58723;
}
.panel {
padding: 0 18px;
background-color: #32383A;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
p {
margin: 20px;
}