bulma/sass/components/navbar.sass

485 lines
15 KiB
Sass
Raw Normal View History

2020-08-22 09:32:55 +00:00
$navbar-background-color: var(--scheme-main, #{$scheme-main}) !default
2018-04-11 00:38:07 +00:00
$navbar-box-shadow-size: 0 2px 0 0 !default
2020-08-22 09:32:55 +00:00
$navbar-box-shadow-color: var(--background, #{$background}) !default
2017-06-30 22:47:22 +00:00
$navbar-height: 3.25rem !default
2018-04-11 11:12:55 +00:00
$navbar-padding-vertical: 1rem !default
$navbar-padding-horizontal: 2rem !default
2018-04-09 09:35:44 +00:00
$navbar-z: 30 !default
2017-10-24 09:31:45 +00:00
$navbar-fixed-z: 30 !default
2020-08-15 15:47:59 +00:00
$navbar-shadow-color: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.1) !default
2017-06-30 22:47:22 +00:00
2020-08-22 09:32:55 +00:00
$navbar-item-color: var(--text, #{$text}) !default
$navbar-item-hover-color: var(--link, #{$link}) !default
$navbar-item-hover-background-color: var(--scheme-main-bis, #{$scheme-main-bis}) !default
$navbar-item-active-color: var(--scheme-invert, #{$scheme-invert}) !default
2017-07-28 20:05:15 +00:00
$navbar-item-active-background-color: transparent !default
2017-08-07 18:55:21 +00:00
$navbar-item-img-max-height: 1.75rem !default
2017-07-28 20:05:15 +00:00
2020-08-22 09:32:55 +00:00
$navbar-burger-color: var(--navbar-item-color, #{$navbar-item-color}) !default
2017-07-28 20:05:15 +00:00
$navbar-tab-hover-background-color: transparent !default
2020-08-22 09:32:55 +00:00
$navbar-tab-hover-border-bottom-color: var(--link, #{$link}) !default
$navbar-tab-active-color: var(--link, #{$link}) !default
2017-07-28 20:05:15 +00:00
$navbar-tab-active-background-color: transparent !default
2020-08-22 09:32:55 +00:00
$navbar-tab-active-border-bottom-color: var(--link, #{$link}) !default
2017-07-28 20:05:15 +00:00
$navbar-tab-active-border-bottom-style: solid !default
$navbar-tab-active-border-bottom-width: 3px !default
2020-08-22 09:32:55 +00:00
$navbar-dropdown-background-color: var(--scheme-main, #{$scheme-main}) !default
2018-04-11 00:38:07 +00:00
$navbar-dropdown-border-top: 2px solid $border !default
2017-06-30 22:47:22 +00:00
$navbar-dropdown-offset: -4px !default
2020-08-22 09:32:55 +00:00
$navbar-dropdown-arrow: var(--link, #{$link}) !default
$navbar-dropdown-radius: var(--radius-large, #{$radius-large}) !default
2017-07-02 15:52:20 +00:00
$navbar-dropdown-z: 20 !default
2017-06-30 21:34:13 +00:00
2020-08-22 09:32:55 +00:00
$navbar-dropdown-boxed-radius: var(--radius-large, #{$radius-large}) !default
2020-08-15 15:47:59 +00:00
$navbar-dropdown-boxed-shadow-color: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.1) !default
$navbar-dropdown-boxed-shadow-color-bis: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.1) !default
$navbar-dropdown-boxed-shadow: 0 8px 8px $navbar-dropdown-boxed-shadow-color, 0 0 0 1px $navbar-dropdown-boxed-shadow-color-bis !default
2017-07-28 20:05:15 +00:00
2020-08-22 09:32:55 +00:00
$navbar-dropdown-item-hover-color: var(--scheme-invert, #{$scheme-invert}) !default
$navbar-dropdown-item-hover-background-color: var(--background, #{$background}) !default
$navbar-dropdown-item-active-color: var(--link, #{$link}) !default
$navbar-dropdown-item-active-background-color: var(--background, #{$background}) !default
2017-06-30 22:47:22 +00:00
2020-08-22 09:32:55 +00:00
$navbar-divider-background-color: var(--background, #{$background}) !default
2018-04-10 21:38:00 +00:00
$navbar-divider-height: 2px !default
2017-06-30 21:34:13 +00:00
2018-04-18 16:03:53 +00:00
$navbar-bottom-box-shadow-size: 0 -2px 0 0 !default
$navbar-breakpoint: $desktop !default
$navbar-colors: $colors !default
2017-10-24 09:31:45 +00:00
=navbar-fixed
left: 0
position: fixed
right: 0
2020-08-22 09:32:55 +00:00
z-index: var(--navbar-fixed-z)
2017-10-24 09:31:45 +00:00
2017-06-30 21:34:13 +00:00
.navbar
2020-08-22 09:32:55 +00:00
--navbar-fixed-z: #{$navbar-fixed-z}
--navbar-shadow-color: #{$navbar-shadow-color}
--navbar-background-color: #{$navbar-background-color}
--navbar-box-shadow-size: #{$navbar-box-shadow-size}
--navbar-box-shadow-color: #{$navbar-box-shadow-color}
--navbar-bottom-box-shadow-size: #{$navbar-bottom-box-shadow-size}
--navbar-height: #{$navbar-height}
--navbar-padding-vertical: #{$navbar-padding-vertical}
--navbar-padding-horizontal: #{$navbar-padding-horizontal}
--navbar-z: #{$navbar-z}
--navbar-burger-color: #{$navbar-burger-color}
--navbar-item-color: #{$navbar-item-color}
--navbar-item-hover-background-color: #{$navbar-item-hover-background-color}
--navbar-item-hover-color: #{$navbar-item-hover-color}
--navbar-item-img-max-height: #{$navbar-item-img-max-height}
--navbar-tab-hover-background-color: #{$navbar-tab-hover-background-color}
--navbar-tab-hover-border-bottom-color: #{$navbar-tab-hover-border-bottom-color}
--navbar-tab-active-background-color: #{$navbar-tab-active-background-color}
--navbar-tab-active-border-bottom-color: #{$navbar-tab-active-border-bottom-color}
--navbar-tab-active-border-bottom-style: #{$navbar-tab-active-border-bottom-style}
--navbar-tab-active-border-bottom-width: #{$navbar-tab-active-border-bottom-width}
--navbar-tab-active-color: #{$navbar-tab-active-color}
--navbar-dropdown-arrow: #{$navbar-dropdown-arrow}
--navbar-divider-background-color: #{$navbar-divider-background-color}
--navbar-divider-height: #{$navbar-divider-height}
--navbar-dropdown-item-hover-background-color: #{$navbar-dropdown-item-hover-background-color}
--navbar-dropdown-item-hover-color: #{$navbar-dropdown-item-hover-color}
--navbar-dropdown-item-active-background-color: #{$navbar-dropdown-item-active-background-color}
--navbar-dropdown-item-active-color: #{$navbar-dropdown-item-active-color}
--navbar-dropdown-border-top: #{$navbar-dropdown-border-top}
--navbar-dropdown-background-color: #{$navbar-dropdown-background-color}
--navbar-dropdown-radius: #{$navbar-dropdown-radius}
--navbar-dropdown-z: #{$navbar-dropdown-z}
--navbar-dropdown-boxed-radius: #{$navbar-dropdown-boxed-radius}
--navbar-dropdown-boxed-shadow: #{$navbar-dropdown-boxed-shadow}
--navbar-item-active-color: #{$navbar-item-active-color}
--navbar-item-active-background-color: #{$navbar-item-active-background-color}
background-color: var(--navbar-background-color)
min-height: var(--navbar-height)
2017-06-30 21:34:13 +00:00
position: relative
2020-08-22 09:32:55 +00:00
z-index: var(--navbar-z)
@each $name, $pair in $navbar-colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
background-color: $color
color: $color-invert
2017-09-10 16:16:12 +00:00
.navbar-brand
& > .navbar-item,
.navbar-link
color: $color-invert
& > a.navbar-item,
.navbar-link
&:focus,
2017-09-10 16:16:12 +00:00
&:hover,
&.is-active
2020-03-16 02:29:44 +00:00
background-color: bulmaDarken($color, 5%)
2017-09-10 16:16:12 +00:00
color: $color-invert
.navbar-link
&::after
border-color: $color-invert
.navbar-burger
color: $color-invert
+from($navbar-breakpoint)
2017-09-09 21:56:54 +00:00
.navbar-start,
.navbar-end
& > .navbar-item,
2017-09-10 16:04:54 +00:00
.navbar-link
2017-09-09 21:56:54 +00:00
color: $color-invert
& > a.navbar-item,
2017-09-10 16:04:54 +00:00
.navbar-link
&:focus,
2017-09-09 21:56:54 +00:00
&:hover,
&.is-active
2020-03-16 02:29:44 +00:00
background-color: bulmaDarken($color, 5%)
2017-09-09 21:56:54 +00:00
color: $color-invert
.navbar-link
&::after
border-color: $color-invert
.navbar-item.has-dropdown:focus .navbar-link,
.navbar-item.has-dropdown:hover .navbar-link,
.navbar-item.has-dropdown.is-active .navbar-link
2020-03-16 02:29:44 +00:00
background-color: bulmaDarken($color, 5%)
color: $color-invert
2017-09-09 21:56:54 +00:00
.navbar-dropdown
a.navbar-item
&.is-active
2017-09-10 16:16:12 +00:00
background-color: $color
color: $color-invert
2017-07-16 18:44:28 +00:00
& > .container
align-items: stretch
display: flex
2020-08-22 09:32:55 +00:00
min-height: var(--navbar-height)
2017-07-16 18:44:28 +00:00
width: 100%
&.has-shadow
2020-08-22 09:32:55 +00:00
box-shadow: var(--navbar-box-shadow-size) var(--navbar-box-shadow-color)
2017-10-24 09:31:45 +00:00
&.is-fixed-bottom,
&.is-fixed-top
+navbar-fixed
&.is-fixed-bottom
bottom: 0
2017-10-24 11:23:31 +00:00
&.has-shadow
2020-08-22 09:32:55 +00:00
box-shadow: var(--navbar-bottom-box-shadow-size) var(--navbar-box-shadow-color)
2017-10-24 09:31:45 +00:00
&.is-fixed-top
top: 0
2018-04-09 00:12:55 +00:00
html,
body
&.has-navbar-fixed-top
2020-08-22 09:32:55 +00:00
padding-top: var(--navbar-height)
2018-04-09 00:12:55 +00:00
&.has-navbar-fixed-bottom
2020-08-22 09:32:55 +00:00
padding-bottom: var(--navbar-height)
2017-06-30 21:34:13 +00:00
2017-09-05 13:09:31 +00:00
.navbar-brand,
.navbar-tabs
2017-06-30 21:34:13 +00:00
align-items: stretch
display: flex
2017-07-30 17:22:13 +00:00
flex-shrink: 0
2020-08-22 09:32:55 +00:00
min-height: var(--navbar-height)
2017-09-05 13:09:31 +00:00
2018-04-10 21:38:00 +00:00
.navbar-brand
a.navbar-item
&:focus,
2018-04-10 21:38:00 +00:00
&:hover
background-color: transparent
2017-09-05 13:09:31 +00:00
.navbar-tabs
+overflow-touch
max-width: 100vw
2017-07-16 18:44:28 +00:00
overflow-x: auto
overflow-y: hidden
2017-06-30 21:34:13 +00:00
.navbar-burger
2020-08-22 09:32:55 +00:00
color: var(--navbar-burger-color)
2018-06-07 12:27:55 +00:00
+hamburger($navbar-height)
2020-05-17 18:04:42 +00:00
+ltr-property("margin", auto, false)
2017-06-30 21:34:13 +00:00
2017-06-30 22:47:22 +00:00
.navbar-menu
display: none
2017-06-30 21:34:13 +00:00
.navbar-item,
.navbar-link
2020-08-22 09:32:55 +00:00
color: var(--navbar-item-color)
2017-06-30 22:16:22 +00:00
display: block
2017-06-30 21:34:13 +00:00
line-height: 1.5
2018-04-09 00:12:55 +00:00
padding: 0.5rem 0.75rem
2017-06-30 21:34:13 +00:00
position: relative
2018-04-11 08:43:27 +00:00
.icon
&:only-child
margin-left: -0.25rem
margin-right: -0.25rem
2017-06-30 21:34:13 +00:00
2017-07-02 22:39:08 +00:00
a.navbar-item,
2018-04-09 00:12:55 +00:00
.navbar-link
cursor: pointer
&:focus,
&:focus-within,
2017-07-02 22:39:08 +00:00
&:hover,
&.is-active
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-item-hover-background-color)
color: var(--navbar-item-hover-color)
2017-06-30 21:34:13 +00:00
.navbar-item
flex-grow: 0
flex-shrink: 0
img
2020-08-22 09:32:55 +00:00
max-height: var(--navbar-item-img-max-height)
2017-06-30 21:34:13 +00:00
&.has-dropdown
padding: 0
&.is-expanded
flex-grow: 1
flex-shrink: 1
2017-07-16 18:44:28 +00:00
&.is-tab
border-bottom: 1px solid transparent
2020-08-22 09:32:55 +00:00
min-height: var(--navbar-height)
2017-07-16 18:44:28 +00:00
padding-bottom: calc(0.5rem - 1px)
&:focus,
2017-07-16 18:44:28 +00:00
&:hover
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-tab-hover-background-color)
border-bottom-color: var(--navbar-tab-hover-border-bottom-color)
2017-07-16 18:44:28 +00:00
&.is-active
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-tab-active-background-color)
border-bottom-color: var(--navbar-tab-active-border-bottom-color)
border-bottom-style: var(--navbar-tab-active-border-bottom-style)
border-bottom-width: var(--navbar-tab-active-border-bottom-width)
color: var(--navbar-tab-active-color)
padding-bottom: calc(0.5rem - #{var(--navbar-tab-active-border-bottom-width)})
2017-06-30 21:34:13 +00:00
.navbar-content
flex-grow: 1
flex-shrink: 1
.navbar-link:not(.is-arrowless)
2020-05-17 18:38:47 +00:00
+ltr-property("padding", 2.5em)
2018-04-08 17:48:47 +00:00
&::after
2018-09-04 13:24:50 +00:00
@extend %arrow
2020-08-22 09:32:55 +00:00
border-color: var(--navbar-dropdown-arrow)
2018-04-11 09:02:37 +00:00
margin-top: -0.375em
2020-05-17 18:38:47 +00:00
+ltr-position(1.125em)
2017-06-30 21:34:13 +00:00
.navbar-dropdown
font-size: 0.875rem
2017-06-30 22:16:22 +00:00
padding-bottom: 0.5rem
padding-top: 0.5rem
2017-06-30 21:34:13 +00:00
.navbar-item
2017-06-30 22:16:22 +00:00
padding-left: 1.5rem
padding-right: 1.5rem
2017-06-30 21:34:13 +00:00
.navbar-divider
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-divider-background-color)
2017-06-30 21:34:13 +00:00
border: none
2017-06-30 22:16:22 +00:00
display: none
2020-08-22 09:32:55 +00:00
height: var(--navbar-divider-height)
2017-06-30 22:16:22 +00:00
margin: 0.5rem 0
2017-06-30 21:34:13 +00:00
+until($navbar-breakpoint)
.navbar > .container
display: block
2017-09-05 13:09:31 +00:00
.navbar-brand,
.navbar-tabs
2017-06-30 22:16:22 +00:00
.navbar-item
align-items: center
display: flex
2018-04-08 17:48:47 +00:00
.navbar-link
&::after
display: none
2017-06-30 21:34:13 +00:00
.navbar-menu
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-background-color)
box-shadow: 0 8px 16px var(--navbar-shadow-color)
2017-06-30 21:34:13 +00:00
padding: 0.5rem 0
2017-06-30 22:47:22 +00:00
&.is-active
display: block
2017-10-24 09:31:45 +00:00
// Fixed navbar
.navbar
&.is-fixed-bottom-touch,
&.is-fixed-top-touch
+navbar-fixed
&.is-fixed-bottom-touch
bottom: 0
2017-10-24 11:23:31 +00:00
&.has-shadow
2020-08-22 09:32:55 +00:00
box-shadow: 0 -2px 3px var(--navbar-shadow-color)
2017-10-24 09:31:45 +00:00
&.is-fixed-top-touch
top: 0
2017-10-26 18:47:48 +00:00
&.is-fixed-top,
&.is-fixed-top-touch
.navbar-menu
+overflow-touch
2020-08-22 09:32:55 +00:00
max-height: calc(100vh - #{var(--navbar-height)})
2017-10-26 18:47:48 +00:00
overflow: auto
2018-04-11 11:12:55 +00:00
html,
body
&.has-navbar-fixed-top-touch
2020-08-22 09:32:55 +00:00
padding-top: var(--navbar-height)
2018-04-11 11:12:55 +00:00
&.has-navbar-fixed-bottom-touch
2020-08-22 09:32:55 +00:00
padding-bottom: var(--navbar-height)
2017-06-30 21:34:13 +00:00
+from($navbar-breakpoint)
2017-06-30 21:34:13 +00:00
.navbar,
.navbar-menu,
.navbar-start,
.navbar-end
2018-04-11 00:38:07 +00:00
align-items: stretch
2017-06-30 21:34:13 +00:00
display: flex
2017-06-30 22:16:22 +00:00
.navbar
2020-08-22 09:32:55 +00:00
min-height: var(--navbar-height)
2018-04-11 00:38:07 +00:00
&.is-spaced
2020-08-22 09:32:55 +00:00
padding: var(--navbar-padding-vertical) var(--navbar-padding-horizontal)
2018-04-11 00:38:07 +00:00
.navbar-start,
.navbar-end
align-items: center
a.navbar-item,
.navbar-link
2020-08-22 09:32:55 +00:00
border-radius: var(--radius, #{$radius})
2017-07-01 17:30:39 +00:00
&.is-transparent
2017-07-02 21:07:30 +00:00
a.navbar-item,
2018-04-09 00:12:55 +00:00
.navbar-link
&:focus,
2017-07-02 21:07:30 +00:00
&:hover,
&.is-active
2017-10-09 11:27:08 +00:00
background-color: transparent !important
2017-07-02 22:20:04 +00:00
.navbar-item.has-dropdown
2017-07-02 21:07:30 +00:00
&.is-active,
&.is-hoverable:focus,
&.is-hoverable:focus-within,
2017-07-02 21:07:30 +00:00
&.is-hoverable:hover
.navbar-link
2017-10-09 11:27:08 +00:00
background-color: transparent !important
2017-07-02 22:20:04 +00:00
.navbar-dropdown
a.navbar-item
&:focus,
2017-07-02 22:20:04 +00:00
&:hover
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-dropdown-item-hover-background-color)
color: var(--navbar-dropdown-item-hover-color)
2017-07-02 22:20:04 +00:00
&.is-active
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-dropdown-item-active-background-color)
color: var(--navbar-dropdown-item-active-color)
2017-06-30 21:34:13 +00:00
.navbar-burger
display: none
2017-06-30 22:16:22 +00:00
.navbar-item,
.navbar-link
align-items: center
display: flex
.navbar-item
&.has-dropdown
align-items: stretch
2017-10-24 11:23:31 +00:00
&.has-dropdown-up
.navbar-link::after
transform: rotate(135deg) translate(0.25em, -0.25em)
.navbar-dropdown
2020-08-22 09:32:55 +00:00
border-bottom: var(--navbar-dropdown-border-top)
border-radius: var(--navbar-dropdown-radius) var(--navbar-dropdown-radius) 0 0
2017-10-24 11:23:31 +00:00
border-top: none
bottom: 100%
2020-08-22 09:32:55 +00:00
box-shadow: 0 -8px 8px var(--navbar-shadow-color)
2017-10-24 11:23:31 +00:00
top: auto
2017-06-30 22:47:22 +00:00
&.is-active,
&.is-hoverable:focus,
&.is-hoverable:focus-within,
2017-06-30 22:47:22 +00:00
&.is-hoverable:hover
2017-07-02 21:07:30 +00:00
.navbar-dropdown
display: block
2018-04-11 00:38:07 +00:00
.navbar.is-spaced &,
2017-07-02 21:07:30 +00:00
&.is-boxed
opacity: 1
pointer-events: auto
transform: translateY(0)
2017-06-30 21:34:13 +00:00
.navbar-menu
flex-grow: 1
flex-shrink: 0
.navbar-start
justify-content: flex-start
2020-05-17 18:04:42 +00:00
+ltr-property("margin", auto)
2017-06-30 21:34:13 +00:00
.navbar-end
justify-content: flex-end
2020-05-17 18:04:42 +00:00
+ltr-property("margin", auto, false)
2017-06-30 22:16:22 +00:00
.navbar-dropdown
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-dropdown-background-color)
border-bottom-left-radius: var(--navbar-dropdown-radius)
border-bottom-right-radius: var(--navbar-dropdown-radius)
border-top: var(--navbar-dropdown-border-top)
box-shadow: 0 8px 8px var(--navbar-shadow-color)
2017-06-30 22:16:22 +00:00
display: none
font-size: 0.875rem
2020-05-17 18:38:47 +00:00
+ltr-position(0, false)
2017-06-30 22:16:22 +00:00
min-width: 100%
position: absolute
2017-07-01 17:30:39 +00:00
top: 100%
2020-08-22 09:32:55 +00:00
z-index: var(--navbar-dropdown-z)
2017-06-30 22:16:22 +00:00
.navbar-item
padding: 0.375rem 1rem
white-space: nowrap
2017-07-02 15:52:20 +00:00
a.navbar-item
2020-05-17 18:38:47 +00:00
+ltr-property("padding", 3rem)
&:focus,
2017-07-02 22:20:04 +00:00
&:hover
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-dropdown-item-hover-background-color)
color: var(--navbar-dropdown-item-hover-color)
2017-07-02 22:20:04 +00:00
&.is-active
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-dropdown-item-active-background-color)
color: var(--navbar-dropdown-item-active-color)
2018-04-11 00:38:07 +00:00
.navbar.is-spaced &,
2017-07-01 17:30:39 +00:00
&.is-boxed
2020-08-22 09:32:55 +00:00
border-radius: var(--navbar-dropdown-boxed-radius)
2017-07-01 17:30:39 +00:00
border-top: none
2020-08-22 09:32:55 +00:00
box-shadow: var(--navbar-dropdown-boxed-shadow)
2017-07-01 17:30:39 +00:00
display: block
opacity: 0
pointer-events: none
top: calc(100% + (#{$navbar-dropdown-offset}))
transform: translateY(-5px)
2020-08-22 09:32:55 +00:00
transition-duration: var(--speed, #{$speed})
2017-07-01 17:30:39 +00:00
transition-property: opacity, transform
2017-08-02 22:52:36 +00:00
&.is-right
left: auto
right: 0
2017-06-30 22:16:22 +00:00
.navbar-divider
display: block
2017-10-24 09:31:45 +00:00
.navbar > .container,
2017-06-30 22:16:22 +00:00
.container > .navbar
2017-09-05 13:09:31 +00:00
.navbar-brand
2020-05-17 18:04:42 +00:00
+ltr-property("margin", -.75rem, false)
2017-09-05 13:09:31 +00:00
.navbar-menu
2020-05-17 18:04:42 +00:00
+ltr-property("margin", -.75rem)
2017-10-24 09:31:45 +00:00
// Fixed navbar
.navbar
&.is-fixed-bottom-desktop,
&.is-fixed-top-desktop
+navbar-fixed
&.is-fixed-bottom-desktop
bottom: 0
2017-10-24 11:23:31 +00:00
&.has-shadow
2020-08-22 09:32:55 +00:00
box-shadow: 0 -2px 3px var(--navbar-shadow-color)
2017-10-24 09:31:45 +00:00
&.is-fixed-top-desktop
top: 0
2018-04-11 11:12:55 +00:00
html,
body
&.has-navbar-fixed-top-desktop
2020-08-22 09:32:55 +00:00
padding-top: var(--navbar-height)
2018-04-11 11:12:55 +00:00
&.has-navbar-fixed-bottom-desktop
2020-08-22 09:32:55 +00:00
padding-bottom: var(--navbar-height)
2018-04-11 11:12:55 +00:00
&.has-spaced-navbar-fixed-top
2020-08-22 09:32:55 +00:00
padding-top: calc(#{var(--navbar-height)} + calc(#{var(--navbar-padding-vertical)} * 2))
2018-04-11 11:12:55 +00:00
&.has-spaced-navbar-fixed-bottom
2020-08-22 09:32:55 +00:00
padding-bottom: calc(#{var(--navbar-height)} + calc(#{var(--navbar-padding-vertical)} * 2))
2017-07-02 22:39:08 +00:00
// Hover/Active states
a.navbar-item,
2018-04-09 00:12:55 +00:00
.navbar-link
2017-07-02 22:39:08 +00:00
&.is-active
2020-08-22 09:32:55 +00:00
color: var(--navbar-item-active-color)
&.is-active:not(:focus):not(:hover)
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-item-active-background-color)
2017-07-02 22:39:08 +00:00
.navbar-item.has-dropdown
&:focus,
2017-07-02 22:39:08 +00:00
&:hover,
&.is-active
.navbar-link
2020-08-22 09:32:55 +00:00
background-color: var(--navbar-item-hover-background-color)
2018-10-31 18:19:43 +00:00
// Combination
.hero
&.is-fullheight-with-navbar
2020-08-22 09:32:55 +00:00
min-height: calc(100vh - #{var(--navbar-height)})