forked from arghadipmanna101/Flipkart_Clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategorylist.css
100 lines (87 loc) · 1.82 KB
/
categorylist.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body {
background-color: rgb(255, 255, 255);
}
.categorylist-wrapper {
width: 100%;
overflow-x: scroll;
position: absolute;
top: 8vh;
right: 0;
z-index: 500;
}
.categorylist-wrapper::-webkit-scrollbar {
display: none;
}
.categories {
display: flex;
align-items: flex-start;
justify-content: space-between;
background-color: rgb(255, 253, 253);
position: relative;
padding: 0;
padding: 0 4%;
width: 100%;
min-width: 1000px;
box-shadow: 0 0 10px rgb(87, 110, 172);
}
.categories > li {
display: inline-block;
padding: 20px 15px;
cursor: pointer;
}
.categories > li > ul {
display: none;
position: fixed;
background-color: rgb(201, 224, 252) !important;
padding: 15px;
gap: 15px 5px;
flex-wrap: wrap;
width: 90vw;
height: max-content;
max-height: 100vh;
padding: 0 10%;
top: 20vh; /* Adjust this value to move the subcategory menu down */
left: 70px;
font-size: 14px;
overflow: hidden;
z-index: 500;
}
.categories > li:hover > ul {
display: flex;
justify-content: left;
align-items: stretch;
}
.categories > li:hover {
background-color: #bac8f6;
transition: all 0.5s;
border-radius: 20px;
}
.categories > li:hover > ul > li {
margin: 15px 0;
flex: 1 1 200px;
list-style-type: none;
}
.categories > li:hover > ul > li li {
list-style-type: none;
margin: 15px 0;
color: rgb(88, 116, 194);
}
.categories > li:hover > ul li li:hover {
color: rgb(112, 112, 166);
}
.categories a {
text-decoration: none;
color: black;
}
.categories > li > a > img {
width: 40px;
height: 40px;
margin-right: 10px;
vertical-align: middle;
}