-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav.css
119 lines (102 loc) · 1.96 KB
/
nav.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
111
112
113
114
115
116
117
118
119
.nav-links a,
nav {
transition: all .3s ease;
}
nav {
position: fixed;
width: 100%;
height: var(--nav-height);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 1%;
z-index: 1000;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
nav.hidden {
transform: translateY(-100%);
}
.logo {
font-size: clamp(2rem,4vw,3rem);
font-weight: 700;
color: var(--primary-color);
text-transform: uppercase;
}
.nav-links {
display: flex;
gap: clamp(1rem,2vw,2rem);
}
.nav-links a {
color: #000;
text-decoration: none;
font-size: clamp(1rem,1.5vw,1.2rem);
font-weight: 500;
padding: .5rem 1rem;
border-radius: 25px;
}
.nav-links a:hover {
color: var(--primary-color);
}
.menu-toggle,
.mobile-menu {
position: fixed;
transition: all .3s ease;
}
.menu-toggle {
top: 1.5%;
right: 1.5%;
width: 50px;
height: 50px;
background: rgba(10,10,10,.9);
border-radius: 50%;
display: none;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 1001;
opacity: 0;
transform: scale(.8);
}
.menu-toggle.visible {
display: flex;
opacity: 1;
transform: scale(1);
}
.menu-toggle i {
color: var(--primary-color);
font-size: 1.5rem;
}
.menu-toggle:hover {
transform: scale(1.05);
}
.mobile-menu {
top: 0;
right: -100%;
width: 100%;
height: 100vh;
background: rgba(10,10,10,.95);
padding: 80px 40px;
z-index: 1000;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.mobile-menu.active {
right: 0;
}
.mobile-menu a {
display: flex;
justify-content: center;
align-items: center;
}
.mobile-menu a {
color: #fff;
text-decoration: none;
font-size: 1.2rem;
padding: 35px;
border-bottom: 1px solid rgba(255,255,255,.1);
transition: all .3s ease;
}
.mobile-menu a:hover {
color: var(--primary-color);
}