-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
42 lines (40 loc) · 876 Bytes
/
main.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
@import 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
.accordion-container {
margin: 10px auto;
max-width: 800px;
}
.accordion-header {
font-size: 18px;
font-weight: bold;
}
.accordion-text {
font-size: 16px;
border-top: 1px solid #ccc;
color: black;
position: relative;
padding: 8px;
cursor: pointer;
font-weight: bold;
}
.accordion-text::before {
font-family: 'FontAwesome';
content: "\f078";
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
color: black;
transition: all 0.3s ease-out;
}
.accordion-text.open::before {
transform: rotate(180deg);
top: 10%;
right: 4px;
}
.accordion-content {
max-height: 0;
overflow: hidden;
text-align: justify;
transition: max-height 0.3s ease-out;
margin: 0 10px 10px;
}