-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
66 lines (54 loc) · 939 Bytes
/
index.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
.burger-menu {
display: flex;
flex-direction: column;
justify-content: center;
gap: 0.3rem;
height: 1.1rem;
width: 1.1rem;
}
.line {
display: block;
height: 0.5rem;
width: 100%;
border-radius: 0.1rem;
transition: transform 0.3s ease-in-out;
}
.line-1 {
transform-origin: top;
}
.line-3 {
transform-origin: bottom;
}
.burger-menu.active .line-1 {
transform: translateY(0.5rem) rotate(49deg);
}
.burger-menu.active .line-2 {
opacity: 0;
}
.burger-menu.active .line-3 {
transform: translateY(-0.5rem) rotate(-49deg);
}
menu {
display: none;
}
menu.active{
display: block;
width: calc(100vh*0.25);
}
menu li{
list-style: none;
padding: 0.4rem;
border-bottom: 1px solid #6c6c6c;
}
button {
background-color: transparent;
border: none;
cursor: pointer;
padding: 0;
}
.burger-menu > .line{
background-color: #6c6c6c;
}
.burger-menu:hover > .line{
background-color: #215878;
}