-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.css
110 lines (92 loc) · 2.28 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
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
103
104
105
106
107
108
109
110
@import url('https://fonts.googleapis.com/css?family=Muli:400,700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Muli', sans-serif;
}
body{
background: #1f938a;
}
.wrapper{
width: 500px;
margin: 80px auto 0;
}
.wrapper .accordion_wrap .accordion_header{
width: 100%;
height: 50px;
background: #fff;
padding: 15px;
color: #39a098;
font-weight: 700;
border-bottom: 2px solid #39a098;
position: relative;
cursor: pointer;
}
.wrapper .accordion_wrap:first-child .accordion_header{
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.wrapper .accordion_wrap:last-child .accordion_header{
border-bottom: 2px solid transparent;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}
.wrapper .accordion_wrap:last-child .accordion_header:hover{
border-bottom: 2px solid transparent;
}
.wrapper .accordion_wrap .accordion_header:before,
.wrapper .accordion_wrap .accordion_header:after{
content: "";
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 15px;
width: 20px;
height: 2px;
background: #39a098;
}
.wrapper .accordion_wrap .accordion_header:hover{
color: #01645d;
border-color: #01645d;
}
.wrapper .accordion_wrap .accordion_header:hover:before,
.wrapper .accordion_wrap .accordion_header:hover:after{
background: #01645d;
}
.wrapper .accordion_wrap .accordion_header:after{
transform: rotate(-90deg);
transition: all 0.5s ease;
}
.wrapper .accordion_wrap .accordion_body{
width: 100%;
height: 0px;
transition: all 0.5s ease;
background: #39a098;
overflow: hidden;
}
.wrapper .accordion_wrap .accordion_body p{
padding: 15px;
font-size: 15px;
line-height: 22px;
color: #fff;
}
.wrapper .accordion_wrap .accordion_header.active{
color: #01645d;
border-color: #01645d;
}
.wrapper .accordion_wrap:last-child .accordion_header.active{
border-bottom: 2px solid #01645d;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.wrapper .accordion_wrap .accordion_header.active:before,
.wrapper .accordion_wrap .accordion_header.active:after{
background: #01645d;
}
.wrapper .accordion_wrap .accordion_header.active:after{
transform: rotate(0deg);
}
.wrapper .accordion_wrap .accordion_header.active + .accordion_body{
height: 180px;
}