-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuestion1Style.css
102 lines (101 loc) · 2.08 KB
/
Question1Style.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
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
100
101
102
body {
color: rgba(37, 27, 32, 1);
background: rgba(4,57,94,.1);
padding: 0 1em 1em;
font-family: 'Open Sans', sans-serif;
}
h1{
text-align:center;
}
input {
position: absolute;
opacity: 0;
z-index: -1;
}
.accordion-wrapper {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 4px -2px rgba(37, 27, 32, 1);
width: 600px;
margin:0 auto;
}
.accordion {
width: 100%;
color: white;
overflow: hidden;
margin-bottom: 16px;
}
.accordion:last-child{
margin-bottom: 0;
}
.accordion-label {
display: flex;
-webkit-box-pack: justify;
justify-content: space-between;
padding: 16px;
background: rgba(37, 27, 32, 1);
font-weight: bold;
cursor: pointer;
font-size: 20px;
}
.accordion-label:hover {
background: rgba(37, 27, 32, 1);
}
.accordion-label::before {
content: "\25B6";
width: 16px;
height: 16px;
text-align: center;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.accordion-content {
max-height: 0;
padding: 0 16px;
color: rgba(37, 27, 32, 1);
background: white;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.accordion-label::after {
content: "+";
width: 16px;
height: 16px;
text-align: center;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.accordion-content {
max-height: 0;
padding: 0 16px;
color: rgba(37, 27, 32, 1);
background: white;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.accordion-content p{
margin: 0;
color: rgba(37, 27, 32, 1);
font-size: 18px;
}
input:checked + .accordion-label {
background: rgba(37, 27, 32, 1);
}
input:checked + .accordion-label::before {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
input:checked + .accordion-label::after {
content: "-";
width: 16px;
height: 16px;
text-align: center;
-webkit-transition: all 0.3s;
transition: all 0.3s;
-webkit-transform: rotate(90deg);
transform: rotate(360deg);
}
input:checked ~ .accordion-content {
max-height: 100vh;
padding: 16px;
}