forked from themeix/ghost-dynamic-dropdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghost-dropdown.css
46 lines (41 loc) · 932 Bytes
/
ghost-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
li.menu-item-has-children {
position: relative;
padding-right: 20px!important;
display: inline-block;
}
.menu-item-has-children svg {
position: absolute;
right: -6px;
top: 56%;
transform: translate(-0%, -50%) scale(1);
}
ul.ghost-submenu {
background: #fff;
color: #000;
padding: 10px 20px;
border-radius: 5px;
width: 200px;
max-width: 200px;
position: absolute;
visibility: hidden;
z-index: 1;
opacity: 0;
top: 30px;
transition: 0.3s;
box-shadow: 0 1px 5px 0 rgb(0 0 0 / 14%);
left: 0;
}
li.menu-item-has-children:hover ul.ghost-submenu {
visibility: visible!important;
opacity: 1!important;
top: 45px!important;
}
ul.ghost-submenu li {
list-style: none;
}
ul li {
opacity: 0;
}
li.nav-item.menu-item-has-children.menu-item-has-megamenu ul.ghost-submenu {
width: 100vh;
}