Merge pull request #6880 from opf/fix/too-big-header-items-on-hover

[Fix] Top menu elements are too big on hover
pull/6883/head
Henriette Dinger 6 years ago committed by GitHub
commit 1f033c484b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      app/assets/stylesheets/layout/_top_menu.sass

@ -29,6 +29,13 @@
$hamburger-right: -3px
$hamburger-width: 50px
%top-menu-hover-styles
@include varprop(background, header-item-bg-hover-color)
@include varprop(color, header-item-font-hover-color)
@include varprop(border-bottom-width, header-border-bottom-width)
@include varprop(border-bottom-color, header-border-bottom-color)
border-bottom-style: solid
#logo
width: 230px
@include varprop(height, header-height)
@ -82,8 +89,7 @@ $hamburger-width: 50px
padding: 0 15px
> a:hover
@include varprop(background, header-item-bg-hover-color)
@include varprop(color, header-item-font-hover-color)
@extend %top-menu-hover-styles
> ul
min-width: 270px
@ -192,8 +198,7 @@ $hamburger-width: 50px
.top-menu-search.-collapsed &
display: block
&:hover
@include varprop(background, header-item-bg-hover-color)
@include varprop(color, header-item-font-hover-color)
@extend %top-menu-hover-styles
input.top-menu-search--input
margin: 0
@ -314,8 +319,7 @@ input.top-menu-search--input
display: none
&:hover
@include varprop(background, header-item-bg-hover-color)
@include varprop(color, header-item-font-hover-color)
@extend %top-menu-hover-styles
@media only screen and (max-width: 18.75rem)
#logo

Loading…
Cancel
Save