| 1 |
@import "../utilities/mixins" |
| 2 |
|
| 3 |
$menu-item-color: $text !default |
| 4 |
$menu-item-radius: $radius-small !default |
| 5 |
$menu-item-hover-color: $text-strong !default |
| 6 |
$menu-item-hover-background-color: $background !default |
| 7 |
$menu-item-active-color: $link-invert !default |
| 8 |
$menu-item-active-background-color: $link !default |
| 9 |
|
| 10 |
$menu-list-border-left: 1px solid $border !default |
| 11 |
$menu-list-line-height: 1.25 !default |
| 12 |
$menu-list-link-padding: 0.5em 0.75em !default |
| 13 |
$menu-nested-list-margin: 0.75em !default |
| 14 |
$menu-nested-list-padding-left: 0.75em !default |
| 15 |
|
| 16 |
$menu-label-color: $text-light !default |
| 17 |
$menu-label-font-size: 0.75em !default |
| 18 |
$menu-label-letter-spacing: 0.1em !default |
| 19 |
$menu-label-spacing: 1em !default |
| 20 |
|
| 21 |
.menu |
| 22 |
font-size: $size-normal |
| 23 |
// Sizes |
| 24 |
&.is-small |
| 25 |
font-size: $size-small |
| 26 |
&.is-medium |
| 27 |
font-size: $size-medium |
| 28 |
&.is-large |
| 29 |
font-size: $size-large |
| 30 |
|
| 31 |
.menu-list |
| 32 |
line-height: $menu-list-line-height |
| 33 |
a |
| 34 |
border-radius: $menu-item-radius |
| 35 |
color: $menu-item-color |
| 36 |
display: block |
| 37 |
padding: $menu-list-link-padding |
| 38 |
&:hover |
| 39 |
background-color: $menu-item-hover-background-color |
| 40 |
color: $menu-item-hover-color |
| 41 |
// Modifiers |
| 42 |
&.is-active |
| 43 |
background-color: $menu-item-active-background-color |
| 44 |
color: $menu-item-active-color |
| 45 |
li |
| 46 |
ul |
| 47 |
+ltr-property("border", $menu-list-border-left, false) |
| 48 |
margin: $menu-nested-list-margin |
| 49 |
+ltr-property("padding", $menu-nested-list-padding-left, false) |
| 50 |
|
| 51 |
.menu-label |
| 52 |
color: $menu-label-color |
| 53 |
font-size: $menu-label-font-size |
| 54 |
letter-spacing: $menu-label-letter-spacing |
| 55 |
text-transform: uppercase |
| 56 |
&:not(:first-child) |
| 57 |
margin-top: $menu-label-spacing |
| 58 |
&:not(:last-child) |
| 59 |
margin-bottom: $menu-label-spacing |