forked from uzairansari11/Apna-E-Cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dropdown.css
112 lines (94 loc) · 1.88 KB
/
dropdown.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
.dropdown_cat {
background-color: #003380;
font-family: sans-serif;
width: 100%;
/* margin-top: -5%; */
position: absolute;
top: 0;
z-index: 10;
}
.drop {
background-color: #003380;
position: static;
}
.drop ul {
list-style: none;
background-color: #003380;
/* border: solid rgb(10, 193, 225); */
}
.drop ul li a {
text-decoration: none;
color: white;
margin-left: 5px;
}
.drop ul li a:hover {
cursor: pointer;
transition: 10s;
}
.dropdown_cat {
margin: auto;
box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;
top: 20%;
}
.dropdown_cat ul {
display: flex;
width: 90%;
height: 50px;
justify-content: space-between;
align-items: center;
}
.sub_menu {
display: none;
background-color: #003380;
margin-top: 1%;
/* border: solid yellowgreen; */
}
.drop > ul > li:hover .sub_menu {
display: grid;
grid-template-columns: repeat(6, 0.8fr);
position: absolute;
z-index: 10;
left: 7%;
width: 80%;
box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em,
rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em,
rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}
.sub_menu ul li a {
line-height: 25px;
}
.sub_menu ul li a:hover,
.sub_menu ul li a b:hover {
color: orangered;
}
.drop > ul > li:hover .sub_menu ul {
display: block;
padding: 20px;
background-color: #003380;
height: auto;
}
.drop > ul > li:hover .sub_menu ul:nth-child(2n) {
background-color: #003380;
}
#signin:hover {
cursor: pointer;
}
/* -------------------------------------------------------------Responsive------------------------------------------------------------- */
@media screen and (max-width: 1080px) {
#head {
display: none;
}
.category {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
#body {
margin-top: 1%;
}
nav {
position: static;
}
.drop > ul > li:hover .sub_menu {
grid-template-columns: repeat(3, 1fr);
}
}