blob: 1449a3dc3443c4752ceb62696f5e8b4ca8a2eb88 (
plain)
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
|
.menu-item {
display: block;
height: 100%;
min-height: 2em;
margin: 0 1em;
position: relative;
&:hover {
border-bottom: 2px solid $theme-color;
.menu-item-link {
color: $theme-color;
}
}
.menu-item-link {
display: flex;
align-items: center;
height: 100%;
}
.submenu {
visibility: hidden;
position: absolute;
min-width: 100%;
transition: 0.2s 1s;
list-style: none;
padding: 0;
background: #fff;
white-space: nowrap;
border: 1px solid #ddd;
border-bottom: none;
transition: 0.2s 0.2s; /* delay of seconds on hover off */
z-index: 99;
.submenu-item {
border-bottom: 1px solid #ddd;
&:hover {
background-color: #f5f5f5;
a {
color: $theme-color;
}
}
a {
padding: 12px;
}
}
}
&:hover .submenu {
visibility: visible;
transition-delay: 0s; /* react immediately on hover */
}
}
|