-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
74 lines (63 loc) · 1.17 KB
/
styles.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
.accordion li{
list-style: none;
max-height: auto;
width: 80%;
margin: 20px;
padding: 10px;
border-radius: 8px;
box-shadow: 6px 6px 10px -1px rgba(0, 0, 0, 0.15),
-6px -6px 10px -1px rgba(255, 255, 255, 0.15);
}
.accordion li label{
font-size: 188px
font-weight: 500;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
display: flex;
}
.exptitle{
width:100%;
justify-content: space-between;
display: flex;
align-items: center;
}
.right{
display: inline-block;
text-align: right;
}
.left{
text-align: left;
display: inline-block;
}
label::before{
content: "+";
margin-right: 10px;
font-size: 24px;
font-weight: 600;
}
input[type="radio"]{
display: none;
}
.accordion .content{
max-height: 0px;
overflow: hidden;
transition: max-height 0.5s, padding 0.5s;
}
.accordion input[type="radio"]:checked + label + .content{
max-height: 400px;
overflow: scroll;
padding: 10px 10px 20px;
}
.accordion input[type="radio"]:checked + label::before{
content: "-";
}
@media screen and (max-width: 600px) {
.accordion li{
width: 90vw;
margin-left: calc(-45vw + 45%);
}
.right{
display: none;
}
}