-
Notifications
You must be signed in to change notification settings - Fork 67
/
h5p-accordion.css
67 lines (65 loc) · 1.51 KB
/
h5p-accordion.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
.h5p-no-frame > .h5p-accordion {
border: 1px solid #eee;
}
.h5p-accordion .h5p-panel-title {
margin: 0;
color: #111111;
position: relative;
font-size: 1.25em;
text-decoration: none;
-webkit-transition: color 200ms ease 0s;
-moz-transition: color 200ms ease 0s;
transition: color 200ms ease 0s;
border-top: 1px solid #eeeeee;
display: flex;
justify-content: flex-start;
}
.h5p-accordion .h5p-panel-button {
width: 100%;
height: 100%;
display: inline-flex;
padding: 0.8em 0.8em 0.8em 2.25em;
/* Disable default button styling */
background: none;
color: inherit;
border: none;
font: inherit;
cursor: pointer;
outline: none;
text-align: left;
}
.h5p-accordion .h5p-panel-title:hover,
.h5p-accordion .h5p-panel-title:focus-within,
.h5p-accordion .h5p-panel-title:active {
color: #222266;
}
.h5p-accordion .h5p-panel-title:first-of-type {
border-top: 0;
}
.h5p-accordion .h5p-panel-focused {
outline: auto;
}
.h5p-accordion .h5p-panel-button:before {
font-family: 'H5PFontAwesome4';
content: "\f105";
position: absolute;
left: 0.95em;
-webkit-transition: all 200ms ease 0s;
-moz-transition: all 200ms ease 0s;
transition: all 200ms ease 0s;
}
.h5p-accordion .h5p-panel-expanded {
color: #000000;
}
.h5p-accordion .h5p-panel-expanded .h5p-panel-button:before {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.h5p-accordion .h5p-panel-content {
display: none;
padding: 0 1em;
word-break: break-word;
}
.h5p-accordion .h5p-panel-content p {
margin-top: 0;
}