fix nav dropdown styling
This commit is contained in:
parent
c55e1f5de4
commit
a3490a37ef
1 changed files with 13 additions and 10 deletions
|
@ -23,21 +23,24 @@
|
|||
margin-left: #{20 / $base-font-size}rem;
|
||||
}
|
||||
position: relative;
|
||||
&:hover .nav__dropdown {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.nav__dropdown {
|
||||
display: none;
|
||||
position: absolute;
|
||||
flex-direction: column;
|
||||
background-color: $light-background-color;
|
||||
padding: #{10 / $base-font-size}rem;
|
||||
left: #{-10 / $base-font-size}rem;
|
||||
border: 1px solid $ide-border-color;
|
||||
@include themify() {
|
||||
background-color: map-get($theme-map, 'background-color');
|
||||
border: 1px solid map-get($theme-map, 'ide-border-color');
|
||||
}
|
||||
@extend %hidden-element;
|
||||
& li + li {
|
||||
margin-top: #{10 / $base-font-size}rem;
|
||||
}
|
||||
width: #{140 / $base-font-size}rem;
|
||||
.nav__item:hover & {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
flex-direction: column;
|
||||
padding: #{10 / $base-font-size}rem;
|
||||
left: #{-10 / $base-font-size}rem;
|
||||
height: auto;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue