2020-08-22 09:19:21 +00:00
|
|
|
$menu-font-size: var(--size-normal, #{$size-normal}) !default
|
2017-07-26 20:06:52 +00:00
|
|
|
|
2020-08-22 09:19:21 +00:00
|
|
|
$menu-item-color: var(--text, #{$text}) !default
|
|
|
|
$menu-item-radius: var(--radius-small, #{$radius-small}) !default
|
|
|
|
$menu-item-hover-color: var(--text-strong, #{$text-strong}) !default
|
|
|
|
$menu-item-hover-background-color: var(--background, #{$background}) !default
|
|
|
|
$menu-item-active-color: var(--link-invert, #{$link-invert}) !default
|
|
|
|
$menu-item-active-background-color: var(--link, #{$link}) !default
|
|
|
|
|
|
|
|
$menu-list-border-left: 1px solid var(--border, #{$border}) !default
|
2019-05-17 12:50:39 +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
|
2017-07-26 20:06:52 +00:00
|
|
|
|
2020-08-22 09:19:21 +00:00
|
|
|
$menu-label-color: var(--text-light, #{$text-light}) !default
|
2019-05-17 12:50:39 +00:00
|
|
|
$menu-label-font-size: 0.75em !default
|
|
|
|
$menu-label-letter-spacing: 0.1em !default
|
|
|
|
$menu-label-spacing: 1em !default
|
2017-07-26 20:06:52 +00:00
|
|
|
|
2016-10-30 19:20:51 +00:00
|
|
|
.menu
|
2020-08-22 09:19:21 +00:00
|
|
|
--menu-font-size: #{$content-font-size}
|
|
|
|
--menu-list-line-height: #{$menu-list-line-height}
|
|
|
|
--menu-item-radius: #{$menu-item-radius}
|
|
|
|
--menu-item-color: #{$menu-item-color}
|
|
|
|
--menu-list-link-padding: #{$menu-list-link-padding}
|
|
|
|
--menu-item-hover-background-color: #{$menu-item-hover-background-color}
|
|
|
|
--menu-item-hover-color: #{$menu-item-hover-color}
|
|
|
|
--menu-item-active-background-color: #{$menu-item-active-background-color}
|
|
|
|
--menu-item-active-color: #{$menu-item-active-color}
|
|
|
|
--menu-list-border-left: #{$menu-list-border-left}
|
|
|
|
--menu-nested-list-padding-left: #{$menu-nested-list-padding-left}
|
|
|
|
--menu-nested-list-margin: #{$menu-nested-list-margin}
|
|
|
|
--menu-label-color: #{$menu-label-color}
|
|
|
|
--menu-label-font-size: #{$menu-label-font-size}
|
|
|
|
--menu-label-letter-spacing: #{$menu-label-letter-spacing}
|
|
|
|
--menu-label-spacing: #{$menu-label-spacing}
|
|
|
|
--menu-label-spacing: #{$menu-label-spacing}
|
|
|
|
|
|
|
|
font-size: var(--menu-font-size)
|
2017-07-28 20:05:15 +00:00
|
|
|
// Sizes
|
|
|
|
&.is-small
|
2020-08-22 09:19:21 +00:00
|
|
|
--menu-font-size: var(--size-small, #{$size-small})
|
2017-07-28 20:05:15 +00:00
|
|
|
&.is-medium
|
2020-08-22 09:19:21 +00:00
|
|
|
--menu-font-size: var(--size-medium, #{$size-medium})
|
2017-07-28 20:05:15 +00:00
|
|
|
&.is-large
|
2020-08-22 09:19:21 +00:00
|
|
|
--menu-font-size: var(--size-large, #{$size-large})
|
2016-01-24 00:03:43 +00:00
|
|
|
|
|
|
|
.menu-list
|
2020-08-22 09:19:21 +00:00
|
|
|
line-height: var(--menu-list-line-height)
|
2016-01-24 00:03:43 +00:00
|
|
|
a
|
2020-08-22 09:19:21 +00:00
|
|
|
border-radius: var(--menu-item-radius)
|
|
|
|
color: var(--menu-item-color)
|
2016-03-25 13:38:40 +00:00
|
|
|
display: block
|
2020-08-22 09:19:21 +00:00
|
|
|
padding: var(--menu-list-link-padding)
|
2016-01-24 00:03:43 +00:00
|
|
|
&:hover
|
2020-08-22 09:19:21 +00:00
|
|
|
background-color: var(--menu-item-hover-background-color)
|
|
|
|
color: var(--menu-item-hover-color)
|
2016-04-10 15:27:27 +00:00
|
|
|
// Modifiers
|
2016-01-31 11:04:28 +00:00
|
|
|
&.is-active
|
2020-08-22 09:19:21 +00:00
|
|
|
background-color: var(--menu-item-active-background-color)
|
|
|
|
color: var(--menu-item-active-color)
|
2016-04-10 15:27:27 +00:00
|
|
|
li
|
|
|
|
ul
|
2020-08-22 09:19:21 +00:00
|
|
|
+ltr-property("border", var(--menu-list-border-left), false)
|
|
|
|
margin: var(--menu-nested-list-margin)
|
|
|
|
+ltr-property("padding", var(--menu-nested-list-padding-left), false)
|
2016-01-31 11:04:28 +00:00
|
|
|
|
2016-03-25 13:38:40 +00:00
|
|
|
.menu-label
|
2020-08-22 09:19:21 +00:00
|
|
|
color: var(--menu-label-color)
|
|
|
|
font-size: var(--menu-label-font-size)
|
|
|
|
letter-spacing: var(--menu-label-letter-spacing)
|
2016-03-25 13:38:40 +00:00
|
|
|
text-transform: uppercase
|
|
|
|
&:not(:first-child)
|
2020-08-22 09:19:21 +00:00
|
|
|
margin-top: var(--menu-label-spacing)
|
2016-10-30 19:20:51 +00:00
|
|
|
&:not(:last-child)
|
2020-08-22 09:19:21 +00:00
|
|
|
margin-bottom: var(--menu-label-spacing)
|