-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavbar.css
More file actions
318 lines (271 loc) · 5.5 KB
/
navbar.css
File metadata and controls
318 lines (271 loc) · 5.5 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
/* Style the top navigation bar */
.navBar {
display: flex;
align-items: center;
position: sticky;
top: 0;
background-color: white;
width: 90%;
margin-left: 5%;
margin-right: 5%;
border-radius: 20px;
z-index: 999;
}
.homeLink {
margin-left: 5px;
width: 7%;
}
.navbar a:hover {
color: black;
background-color: #ddd;
}
.logo{
width: 100%;
height: auto;
}
/* Style the navigation bar links */
.navLink {
width: 20%;
border: none;
float: left;
color: black;
text-align: center;
text-decoration: none;
font-size: 2vw;
padding: 20px 10px;
transition: color 0.3s ease;
}
.navLink:hover {
color: #1A53AE;
}
.cartLink {
width: 5%;
text-decoration: none;
position: relative;
display: inline-block;
margin-left: 2%;
margin-right: 2%;
}
.profileLink {
width: 2%;
text-decoration: none;
position: relative;
display: inline-block;
margin-left: 2%;
margin-right: 2%;
}
.profile {
width: 100%; /* Adjust width to fit the container */
height: auto; /* Maintain aspect ratio */
}
.imageSize {
width: 100%;
height: 100%;
position: relative;
display: inline-block;
}
.cart {
width: 100%;
height: 100%;
}
.circle {
width: 30%; /* Set the width and height to create a circle */
height: 30%;
border-radius: 50%; /* Makes the div a circle */
background-color: #1a53ae; /* Color of the circle */
display: flex;
align-items: center;
justify-content: center;
color: white; /* Color of the number */
font-size: 1vw; /* Size of the number */
text-decoration: none;
position: absolute;
top: 20%;
right: 15%;
z-index: 1; /* Ensure the circle stays above the image */
}
.number {
/* Styling for the number inside the circle */
color: white;
text-decoration: none;
}
.editLink {
width: 2%;
margin-right: 1%;
text-decoration: none;
position: relative;
display: inline-block;
}
.searchBox {
display: flex; /* Allow for potential icon placement next to input */
border: 1px solid black;
border-radius: 20px;
overflow: hidden;
width: 22%;
color: black;
align-items: center;
}
.searchBox input {
flex-grow: 1; /* Allow input to fill remaining space */
border: none; /* Remove default input border */
padding: 5px 10px; /* Adjust padding as needed */
background-color: transparent; /* Transparent background */
font-size: 16px; /* Adjust font size as needed */
}
.searchBox input:focus {
outline: none; /* Remove default focus outline */
border: none; /* Black border on focus */
border-radius: 20px;
}
.magnifyingGlass {
width: 8%;
margin-left: 2%;
margin-right: 2%;
}
.dots {
display: flex;
align-items: center;
justify-content: center;
background-color: white;
}
.dot {
width: 10px;
height: 10px;
background-color: #1A53AE;
border-radius: 50%;
margin: 0 5px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropbtn {
border: none;
cursor: pointer;
background-color: white;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:focus-within .dropdown-content {
display: block;
}
.searchBox {
/* Adjust styles for mobile search bar */
display: flex; /* Allow stacking image and input */
}
.search {
width: 100%;
}
.formInput {
box-sizing: border-box;
font-size: 16px;
color: black;
background-color: #B7C9E2;
transition: width 0.4s ease-in-out;
width: 100%;
padding: 12px 20px;
margin: 8px 0;
border: 2px solid #ccc;
border-radius: 4px;
}
.noDecoration {
border: none;
background-color: white;
color: red;
}
.editNavbarTable {
width: 100%;
border-collapse: collapse;
}
.editNavbarTable th,
.editNavbarTable td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
.editNavbarTable th {
background-color: #f2f2f2;
}
.editNavbarTable tr:nth-child(even) {
background-color: #f2f2f2;
}
.editNavbarTable tr:hover {
background-color: #ddd;
}
@media screen and (max-width: 500px) {
.magnifyingGlass {
width: 6%;
}
.homeLink {
margin: 0;
margin-left: 15%;
margin-right: 15%;
width: 15%;
}
.profileLink {
width: 5%;
}
.cartLink {
width: 10%;
}
.searchBox {
display: flex; /* Allow for potential icon placement next to input */
border: 1px solid black;
border-radius: 20px;
overflow: hidden;
width: 60%;
margin-top: 1%;
margin-bottom: 1%;
color: black;
align-items: center;
}
.searchBox input {
flex-grow: 1; /* Allow input to fill remaining space */
border: none; /* Remove default input border */
padding: 5px 10px; /* Adjust padding as needed */
background-color: transparent; /* Transparent background */
font-size: 16px; /* Adjust font size as needed */
}
.searchBox input:focus {
outline: none; /* Remove default focus outline */
border: none; /* Black border on focus */
border-radius: 20px;
}
.editNavbarTable {
width: 100%;
border-collapse: collapse;
}
.editNavbarTable th,
.editNavbarTable td {
border: 1px solid #ddd;
padding: 1px;
text-align: left;
}
.editNavbarTable th {
background-color: #f2f2f2;
}
.editNavbarTable tr:nth-child(even) {
background-color: #f2f2f2;
}
.editNavbarTable tr:hover {
background-color: #ddd;
}
}