-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.css
145 lines (125 loc) · 2.22 KB
/
menu.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
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
/* General Styles */
html {
scroll-behavior: smooth;
}
body {
font-family: "Poppins", sans-serif;
margin: 0;
padding: 0;
background: #dddddd;
}
/* Header */
header {
background: linear-gradient(75deg, #d10d3e, #bfba1a);
color: black;
text-align: center;
padding: 20px;
position: relative;
}
header h1 {
margin: 0;
font-size: 2.5em;
}
/* Cart Button */
.cart-container {
position: absolute;
top: 5%;
right: 10px;
font-size: 13px;
}
.cart-container a {
text-decoration: none;
color: white;
font-weight: bold;
padding: 10px;
background-color: #313131;
border-radius: 5px;
transition: background-color 0.3s;
}
.cart-container a:hover {
background-color: #ee850d;
}
/* Navigation Bar */
nav {
background-color: #333;
padding: 10px 20px;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
/* Flexbox for Desktop */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: auto;
}
/* Logo */
.navbar h1 {
color: white;
margin: 0;
font-size: 1.8em;
}
/* Desktop Menu */
.navbar ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
.navbar ul li {
margin: 0 15px;
}
.navbar a {
color: white;
text-decoration: none;
padding: 14px 20px;
font-weight: 600;
transition: background 0.3s;
}
.navbar a:hover {
background-color: #ff7e5f;
border-radius: 5px;
}
/* Mobile Menu (CSS Only) */
#menu-toggle {
display: none;
}
.menu-icon {
display: none;
font-size: 28px;
cursor: pointer;
color: white;
}
/* Responsive Navbar */
@media (max-width: 768px) {
.menu-icon {
display: block;
}
.navbar ul {
display: none;
flex-direction: column;
position: absolute;
top: 60px;
left: 0;
width: 100%;
background: #333;
padding: 0;
}
/* CSS-Only Toggle */
#menu-toggle:checked + .navbar ul {
display: flex;
}
.navbar ul li {
width: 100%;
text-align: center;
border-bottom: 1px solid #444;
padding: 10px;
}
.navbar a {
display: block;
padding: 15px;
}
}