blob: 146b2bc5d62d7b877a5019e52b3a9eda30aef08d (
plain)
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
|
#hamburger {
display: none;
flex-direction: column;
cursor: pointer;
background: none;
border: none;
padding: 5px;
}
#hamburger span {
width: 25px;
height: 3px;
background-color: var(--fg-green);
margin: 3px 0;
transition: 0.3s;
position: relative;
}
/* MOBILE RULES */
/* @media screen and (max-width: 850px) { */
@media screen and (max-width: 650px) {
/** hamburger animation */
#hamburger {
display: flex;
}
#hamburger.active span:nth-child(1) {
transform: rotate(-45deg) translateY(10px) translateX(-3px);
width: 24px;
height: 4px;
}
#hamburger.active span:nth-child(2) {
opacity: 0;
}
#hamburger.active span:nth-child(3) {
transform: rotate(45deg) translateY(-10px) translateX(-3px);
width: 24px;
height: 4px;
}
}
|