-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnavigation.css
52 lines (44 loc) · 919 Bytes
/
navigation.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
.navigation {
--position: translateX(calc(-100% - 13px));
@media (orientation: portrait) {
&:focus-within {
--position: translateX(-8px);
}
}
& .menu {
display: flex;
gap: 12px;
transition-duration: 200ms;
@media (orientation: portrait) {
background-color: #2b3a55;
width: 320px;
max-width: 90vw;
flex-direction: column;
gap: 0;
position: fixed;
top: 0;
bottom: 0;
box-shadow: 0 5px 5px black;
transform: var(--position);
& a {
padding: 8px 16px;
&.active {
background-color: #3e6d9c;
}
}
}
}
& .menu-btn {
display: none;
font-family: inherit;
border-radius: 0;
border: 2px solid #e0e0e0;
padding: 4px 8px;
height: 32px;
background: unset;
color: #e0e0e0;
@media (orientation: portrait) {
display: block;
}
}
}