2021-02-15 07:50:28 +00:00
|
|
|
@import "../utilities/mixins"
|
|
|
|
|
2018-01-29 09:42:34 +00:00
|
|
|
$menu-item-color: $text !default
|
|
|
|
$menu-item-radius: $radius-small !default
|
|
|
|
$menu-item-hover-color: $text-strong !default
|
|
|
|
$menu-item-hover-background-color: $background !default
|
|
|
|
$menu-item-active-color: $link-invert !default
|
|
|
|
$menu-item-active-background-color: $link !default
|
|
|
|
|
|
|
|
$menu-list-border-left: 1px solid $border !default
|
2021-02-15 07:50:28 +00:00
|
|
|
$menu-list-line-height: 1.25 !default
|
|
|
|
$menu-list-link-padding: 0.5em 0.75em !default
|
|
|
|
$menu-nested-list-margin: 0.75em !default
|
|
|
|
$menu-nested-list-padding-left: 0.75em !default
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
$menu-label-color: $text-light !default
|
2021-02-15 07:50:28 +00:00
|
|
|
$menu-label-font-size: 0.75em !default
|
|
|
|
$menu-label-letter-spacing: 0.1em !default
|
|
|
|
$menu-label-spacing: 1em !default
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.menu
|
|
|
|
font-size: $size-normal
|
|
|
|
// Sizes
|
|
|
|
&.is-small
|
|
|
|
font-size: $size-small
|
|
|
|
&.is-medium
|
|
|
|
font-size: $size-medium
|
|
|
|
&.is-large
|
|
|
|
font-size: $size-large
|
|
|
|
|
|
|
|
.menu-list
|
2021-02-15 07:50:28 +00:00
|
|
|
line-height: $menu-list-line-height
|
2018-01-29 09:42:34 +00:00
|
|
|
a
|
|
|
|
border-radius: $menu-item-radius
|
|
|
|
color: $menu-item-color
|
|
|
|
display: block
|
2021-02-15 07:50:28 +00:00
|
|
|
padding: $menu-list-link-padding
|
2018-01-29 09:42:34 +00:00
|
|
|
&:hover
|
|
|
|
background-color: $menu-item-hover-background-color
|
|
|
|
color: $menu-item-hover-color
|
|
|
|
// Modifiers
|
|
|
|
&.is-active
|
|
|
|
background-color: $menu-item-active-background-color
|
|
|
|
color: $menu-item-active-color
|
|
|
|
li
|
|
|
|
ul
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-property("border", $menu-list-border-left, false)
|
|
|
|
margin: $menu-nested-list-margin
|
|
|
|
+ltr-property("padding", $menu-nested-list-padding-left, false)
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.menu-label
|
|
|
|
color: $menu-label-color
|
2021-02-15 07:50:28 +00:00
|
|
|
font-size: $menu-label-font-size
|
|
|
|
letter-spacing: $menu-label-letter-spacing
|
2018-01-29 09:42:34 +00:00
|
|
|
text-transform: uppercase
|
|
|
|
&:not(:first-child)
|
2021-02-15 07:50:28 +00:00
|
|
|
margin-top: $menu-label-spacing
|
2018-01-29 09:42:34 +00:00
|
|
|
&:not(:last-child)
|
2021-02-15 07:50:28 +00:00
|
|
|
margin-bottom: $menu-label-spacing
|