forked from arghadipmanna101/Flipkart_Clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
376 lines (324 loc) · 6 KB
/
index.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
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
/* General styles */
body {
background-color: #F1F2F4;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 14px;
color: #000;
margin: 0;
padding: 0;
}
/* Navbar styles */
#searchbar {
padding: 4px;
border-radius: 15px;
background-color: #e7eefb;
margin-left: 15px;
}
#input_data {
width: 100%;
padding: 6px;
border: none;
background-color: transparent;
}
#input_data:focus {
outline: none !important;
border: none;
}
.flex-grow {
flex-grow: 1;
}
.navbar-nav {
display: flex;
justify-content: space-between;
margin-right: 50px;
gap: 30px;
}
.navtab {
display: flex;
align-items: center;
}
.navbar-brand img {
width: 160px;
height: 40px;
}
.navbar-nav .nav-link img {
margin-right: 8px;
}
#category-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 20px;
margin-bottom: 20px;
margin-left: 20px;
margin-right: 20px;
}
.category {
width: 100%;
height: 100%;
object-fit: cover;
}
.category h3 {
font-size: 18px;
color: #333333;
}
.details .info{
line-height: 16px;
font-size: 12px;
}
.details .info h1{
font-size: 16px;
margin-bottom: 10px;
}
.details .info h2{
font-size: 14px;
margin-bottom: 10px;
}
.details{
padding: 30px;
color: #878787;
background-color: #f5f5f5;
}
footer {
background-color: rgb(28, 27, 27);
padding: 15px 35px;
}
.foot-top {
display: flex;
border-bottom: 1px solid rgb(85, 78, 78);
flex-wrap: wrap;
}
.foot-left, .foot-right {
display: flex;
justify-content: space-between;
gap: 30px;
padding: 25px;
flex: 1 1 500px;
flex-wrap: wrap;
}
.foot-left h5, .foot-right h5 {
font-size: 12px;
font-weight: 600;
color: #9b9898;
}
.foot-left .about li, .foot-right .part, .foot-right .office, .social ul li {
list-style: none;
}
.foot-left .about li a, .social ul li a, .foot-down ul li a {
font-size: 12px;
color: white;
font-weight: 600;
text-decoration: none;
}
.social ul {
display: flex;
gap: 10px;
}
.foot-right {
border-left: 1px solid rgb(85, 78, 78);
padding-left: 30px;
}
.foot-down {
padding: 10px 40px;
display: flex;
margin-top: 20px;
font-size: 12px;
justify-content: space-between;
font-weight: 600;
flex-wrap: wrap;
}
.foot-down > div{
flex: 1 1 300px;
}
.foot-down ul {
display: flex;
gap: 200px;
}
.payment-icons img {
height: 15px;
}
/* Tablets and below */
@media (max-width: 768px) {
footer {
padding: 15px;
}
.foot-top {
flex-direction: column;
}
.foot-left, .foot-right {
flex: 1 1 auto;
padding: 15px;
justify-content: flex-start;
}
.foot-right {
border-left: none;
padding-left: 0;
}
.foot-down {
flex-direction: column;
align-items: center;
gap: 10px;
}
.foot-down ul {
flex-direction: column;
gap: 10px;
}
.payment-icons {
display: flex;
justify-content: center;
}
}
@media (max-width: 480px) {
.foot-left, .foot-right {
flex-direction: column;
}
.social ul {
justify-content: center;
}
.foot-down ul {
justify-content: center;
}
}
/* Footer styles
/* footer {
background-color: black;
color: white;
padding-top: 18px;
padding-bottom: 18px;
}
.footer-top,
.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
}
.footer-section {
margin-bottom: 20px;
}
.footer-section h3 {
margin-bottom: 10px;
}
.footer-section ul {
list-style-type: none;
}
.social-icons a {
margin-right: 10px;
color: white;
}
.payment-icons img {
width: 50px;
margin-right: 10px;
} */
/* Dropdown menu styles */
/* .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: 9;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
@media (max-width: 768px) {
footer {
padding-top: 12px;
padding-bottom: 12px;
}
.footer-top,
.footer-bottom {
flex-direction: row;
align-items: flex-start;
}
.footer-section {
margin-bottom: 12px;
}
.footer-section h3 {
margin-bottom: 8px;
}
.footer-section ul {
list-style-type: none;
}
.footer-section .social-icons{
list-style-type: none;
display: flex;
flex-direction: column;
}
} */
#phones {
display: flex;
flex-direction: column;
height: 996;
width: 300;
padding: 4px;
margin: 8px;
}
#box {
display: flex;
gap: 55px;
margin: 20px;
}
#box img{
height: 143;
width: 143;
}
.box-1,
.box-2,
.box-3,
.box-4,
.box-5,
.box-6,
.box-7 ,.box-8{
display: flex;
flex-direction: column;
height: 168;
width: 220;
margin: 26px 0px;
padding: 8px;
border-radius: 4px;
border: 1px solid black;
gap: 10px;
}
/* new phone section ended */
#img-box{
display: flex;
height: 175;
padding: 20px;
margin: 15px;
gap: 49px;
}
/* BACK TO TOP */
html {
scroll-behavior: smooth;
}
.back-to-top {
position: sticky;
bottom: 2rem;
right: 2rem;
display: inline-flex;
align-items: center;
justify-content: center;
background-color: rgba(255, 180, 0, 0.5); /* Orange with low opacity */
border-radius: 0.5rem;
padding: 0.5rem;
text-decoration: none;
transition: 0.2s ease-out;
}
.back-to-top span {
color: #fff;
font-size: 3rem;
transition: 0.2s ease-out;
}
.back-to-top:hover {
background-color: rgba(255, 200, 0, 0.7); /* Slightly darker shade of orange with low opacity */
}
.back-to-top:hover span {
transform: translateY(-4px);
}