-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
260 lines (216 loc) · 5.13 KB
/
style.css
File metadata and controls
260 lines (216 loc) · 5.13 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
/* Reset some basic elements for consistency */
body, h1, h2, h3, p, ul {
margin: 0;
padding: 0;
list-style: none;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: #333;
background-color: #f4f4f4;
padding: 20px;
}
header {
background-color: #007BFF;
color: #ffffff;
text-align: center;
padding: 20px 0;
}
header h1 {
margin-bottom: 10px;
}
nav ul, nav li {
padding: 10px 0;
display: inline;
margin: 0 15px;
}
nav a {
color: #ffffff;
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease, text-decoration 0.3s ease; /* Updated for transition */
}
nav a:hover,
nav a:focus { /* Enhanced for clarity */
color: #0b0b0b;
text-decoration: underline; /* Additional hover effect */
}
main {
background-color: #ffffff;
padding: 20px;
margin-top: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
main img {
max-width: 100%;
height: auto;
display: block;
margin-bottom: 20px;
}
/* Products Grid Layout */
.products {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
gap: 20px;
}
.products li {
flex: 1;
min-width: calc(50% - 20px);
max-width: calc(50% - 20px);
display: flex;
align-items: center;
border: 1px solid #ddd;
padding: 10px;
margin-bottom: 20px;
border-radius: 8px;
background-color: #f9f9f9;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: box-shadow 0.3s ease, transform 0.3s ease; /* Added for transition */
}
.products li:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Enhanced shadow */
transform: translateY(-5px); /* Lifting effect */
}
.products img {
width: 100px;
height: 100px;
object-fit: cover;
margin-right: 20px;
border-radius: 5px;
transition: transform 0.3s ease, border-color 0.3s ease; /* Added for transition */
}
.products li:hover img {
transform: scale(1.1); /* Scaling effect */
}
.products h3, .products p {
flex: 1;
margin-right: 10px;
}
.products a {
padding: 10px 15px;
background-color: #0056b3;
color: #ffffff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s ease, transform 0.3s ease; /* Updated for transition */
}
.products a:hover {
background-color: #ffe100;
transform: scale(1.2); /* Scaling effect */
}
/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
.products li {
min-width: calc(25% - 20px);
max-width: calc(25% - 20px);
}
}
/* Adjustments for smaller screens */
@media (max-width: 767px) {
.products li {
min-width: calc(50% - 20px);
max-width: calc(50% - 20px);
}
.products li {
flex-direction: column;
align-items: start;
}
.products img {
margin-bottom: 10px;
}
.products a {
width: 100%;
text-align: center;
}
}
footer {
text-align: center;
margin-top: 20px;
}
footer p {
color: #666;
}
/* Responsive adjustments for header and navigation */
@media (max-width: 600px) {
header h1, nav ul, nav li {
text-align: center;
margin: 0;
}
nav li {
display: block;
margin: 10px 0;
}
}
/* Style for the cart items */
#cart-items {
margin: 20px 0;
padding: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
#cart-items li {
padding: 10px;
border-bottom: 1px solid #eee; /* Add a subtle line between items */
}
#cart-items li:last-child {
border-bottom: none; /* Remove bottom border for the last item */
}
/* Style for the Clear Cart button */
#clear-cart {
display: block; /* Make the button span the entire line */
width: 100%;
padding: 10px 0;
background-color: #007BFF;
color: #ffffff;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease; /* Smooth background color transition */
}
#clear-cart:hover {
background-color: #0056b3;
}
/* Add some space around the Clear Cart button for better layout */
#clear-cart {
margin-top: 20px;
}
.welcome-section {
text-align: center;
padding: 20px;
background-color: #f9f9f9;
border-radius: 8px;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.welcome-section h2 {
color: #007BFF;
}
.welcome-section p {
color: #333;
margin: 20px 0;
}
/* Welcome Section Styles */
.welcome-section {
text-align: center;
margin: 20px 0;
}
.discover-now-btn {
display: inline-block;
background-color: #007BFF;
color: #ffffff;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s ease;
}
.discover-now-btn:hover {
background-color: #0056b3;
}
/* © 2024 The Chips Shop. All rights reserved. serikalidevelopmentsolutions@2024 */