-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
71 lines (54 loc) · 976 Bytes
/
style.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
68
69
70
71
*{
box-sizing: border-box;
}
body{
background-color: blanchedalmond;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.accordio{
width: 65%;
background-color: white;
padding: 2em;
border-radius: 1.56em;
}
.accordio .accordio-title{
margin-bottom: 1em;
text-align: center;
}
.accordio .container .questions{
padding: 1em 0;
font-size: 22.4px;
cursor: pointer;
border-bottom: 1px solid black;
position: relative;
}
.accordio .container .questions::after{
content: '+';
position: absolute;
right: -5px;
}
.accordio .container .answer{
padding-top: 15px;
font-size: 22px;
line-height: 1.5;
width: 100%;
height: 0px;
overflow: hidden;
transition: .5s;
}
/* Javascript link */
.accordio .container.active .answer{
height: 120px;
}
.accordio .container.active .questions{
font-size: 18px;
transition: .5s;
}
.accordio .container.active .questions::after{
content: '-';
font-size: 30px;
transition: .5s;
}