-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathnavbar.css
More file actions
131 lines (102 loc) · 1.88 KB
/
Copy pathnavbar.css
File metadata and controls
131 lines (102 loc) · 1.88 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
nav {
display: flex;
justify-content: space-around;
align-items: center;
padding-block: 1.5rem;
z-index: 9999;
position: fixed;
top: 0;
width: 100%;
background-color: #FFF9F9;
}
nav .nav__menu {
display: flex;
align-items: center;
gap: 2rem;
}
nav .nav__menu li a {
font-size: 1rem;
}
nav .nav__menu li a:hover {
color: #f54749;
border-bottom: 2px solid #f54749;
}
.signUp-btn {
cursor: pointer;
}
.hamburger {
display: none;
margin-inline-end: 2rem;
cursor: pointer
}
.hamburger .bar {
width: 30px;
height: 2px;
margin-top: 5px;
background-color: #000;
transition: transform 100ms ease-in-out;
}
.hamburger .bar:nth-child(2) {
transform: translateX(7px)
}
.hamburger .bar:nth-child(3) {
transform: translateX(14px)
}
nav .nav__menu.active {
transform: translateY(0);
}
.hamburger.active .bar:nth-child(2) {
opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
transform: translateY(6px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
transform: translateY(-10px) rotate(-45deg);
}
ul {
list-style: none;
}
a {
color: #000;
text-decoration: none;
font-size: 15px;
}
a.active {
color: #F54749;
}
@media screen and (max-width: 1024px) {
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 2rem;
border-bottom: none;
}
nav .Logo {
margin: 0;
float: none;
}
nav .hamburger {
display: inline-block;
position: absolute;
right: 0;
margin-inline-end: 2.5rem;
z-index: 10;
}
nav .nav__menu {
display: grid;
width: 100%;
height: auto;
padding-block: 2rem;
border-radius: 10px;
text-align: center;
background-color: inherit;
transform: translateY(-550%);
transition: transform 500ms ease;
z-index: 2;
position: absolute;
right: 0rem;
top: 3rem;
}
}