-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
75 lines (75 loc) · 1.43 KB
/
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
72
73
74
75
* {
margin: 0;
padding: 0;
}
body {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
background: #ead7d7;
}
ul {
list-style: none;
}
a {
text-decoration: none;
}
.accordion-menu {
width: 100%;
max-width: 350px;
margin: 1rem auto;
background: #6f95bc;
border-radius: 4px;
}
.accordion-menu li.active .dropdownHeader {
color: #ffffff;
background: #163e67;
}
.accordion-menu li.active .dropdownHeader .fa-chevron-down {
transform: rotate(180deg);
}
.accordion-menu li:last-child .dropdownHeader {
border-bottom: 0;
}
.dropdownHeader {
cursor: pointer;
display: block;
padding: 12px;
font-size: 18px;
border-bottom: 1px solid #ead7d7;
color: #ffffff;
position: relative;
transition: all 0.4s ease-out;
display: flex;
align-items: center;
height:2rem ;
column-gap: 1rem;
}
.dropdownHeader .fa-chevron-down {
position: absolute;
right: 12px;
}
.submenuItems {
display: none;
background: #80a7ce;
transition: 3s ease-in-out;
animation: anime 0.4s ease-in;
font-family: monospace;
font-size: 1rem;
}
@keyframes anime {
0%{transform:translateY(-100%);opacity: 0;}
98%{opacity: 0.2;}
100%{transform: translateY(0); opacity: 1;}
}
.submenuItems li {
border-bottom: 1px solid #b6b6b6;
}
.submenuItems a {
display: block;
color:#163e67;
padding: 12px 12px 12px 45px;
transition: all 1s ease-out;
}
.submenuItems a:hover {
background-color: #2e5073;
color:#fff
}