2022-11-23 17:44:02 +00:00
|
|
|
@import "../utilities/mixins";
|
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-background-color: getVar("scheme-main") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$navbar-box-shadow-size: 0 2px 0 0 !default;
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-box-shadow-color: getVar("background") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$navbar-height: 3.25rem !default;
|
|
|
|
$navbar-padding-vertical: 1rem !default;
|
|
|
|
$navbar-padding-horizontal: 2rem !default;
|
|
|
|
$navbar-z: 30 !default;
|
|
|
|
$navbar-fixed-z: 30 !default;
|
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-item-color: getVar("text") !default;
|
|
|
|
$navbar-item-hover-color: getVar("link") !default;
|
|
|
|
$navbar-item-hover-background-color: getVar("scheme-main-bis") !default;
|
|
|
|
$navbar-item-active-color: getVar("scheme-invert") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$navbar-item-active-background-color: transparent !default;
|
|
|
|
$navbar-item-img-max-height: 1.75rem !default;
|
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-burger-color: getVar("navbar-item-color") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
|
|
|
|
$navbar-tab-hover-background-color: transparent !default;
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-tab-hover-border-bottom-color: getVar("link") !default;
|
|
|
|
$navbar-tab-active-color: getVar("link") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$navbar-tab-active-background-color: transparent !default;
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-tab-active-border-bottom-color: getVar("link") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$navbar-tab-active-border-bottom-style: solid !default;
|
|
|
|
$navbar-tab-active-border-bottom-width: 3px !default;
|
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-dropdown-background-color: getVar("scheme-main") !default;
|
|
|
|
$navbar-dropdown-border-top: 2px solid getVar("border") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$navbar-dropdown-offset: -4px !default;
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-dropdown-arrow: getVar("link") !default;
|
|
|
|
$navbar-dropdown-radius: getVar("radius-large") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$navbar-dropdown-z: 20 !default;
|
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-dropdown-boxed-radius: getVar("radius-large") !default;
|
2022-12-17 00:11:23 +00:00
|
|
|
$navbar-dropdown-boxed-shadow: 0 8px 8px
|
|
|
|
bulmaRgba(getVar("shadow-color-rgb"), 0.1),
|
|
|
|
0 0 0 1px bulmaRgba(getVar("shadow-color-rgb"), 0.1) !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-dropdown-item-hover-color: getVar("scheme-invert") !default;
|
|
|
|
$navbar-dropdown-item-hover-background-color: getVar("background") !default;
|
|
|
|
$navbar-dropdown-item-active-color: getVar("link") !default;
|
|
|
|
$navbar-dropdown-item-active-background-color: getVar("background") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
$navbar-divider-background-color: getVar("background") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$navbar-divider-height: 2px !default;
|
|
|
|
|
|
|
|
$navbar-bottom-box-shadow-size: 0 -2px 0 0 !default;
|
|
|
|
|
|
|
|
$navbar-breakpoint: $desktop !default;
|
|
|
|
|
|
|
|
$navbar-colors: $colors !default;
|
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
:root {
|
|
|
|
@include register-vars(
|
|
|
|
(
|
|
|
|
navbar-background-color: #{$navbar-background-color},
|
|
|
|
navbar-box-shadow-size: #{$navbar-box-shadow-size},
|
|
|
|
navbar-box-shadow-color: #{$navbar-box-shadow-color},
|
|
|
|
navbar-height: #{$navbar-height},
|
|
|
|
navbar-padding-vertical: #{$navbar-padding-vertical},
|
|
|
|
navbar-padding-horizontal: #{$navbar-padding-horizontal},
|
|
|
|
navbar-z: #{$navbar-z},
|
|
|
|
navbar-fixed-z: #{$navbar-fixed-z},
|
|
|
|
navbar-item-color: #{$navbar-item-color},
|
|
|
|
navbar-item-hover-color: #{$navbar-item-hover-color},
|
|
|
|
navbar-item-hover-background-color: #{$navbar-item-hover-background-color},
|
|
|
|
navbar-item-active-color: #{$navbar-item-active-color},
|
|
|
|
navbar-item-active-background-color: #{$navbar-item-active-background-color},
|
|
|
|
navbar-item-img-max-height: #{$navbar-item-img-max-height},
|
|
|
|
navbar-burger-color: #{$navbar-burger-color},
|
|
|
|
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-color: #{$navbar-tab-active-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-dropdown-background-color: #{$navbar-dropdown-background-color},
|
|
|
|
navbar-dropdown-border-top: #{$navbar-dropdown-border-top},
|
|
|
|
navbar-dropdown-offset: #{$navbar-dropdown-offset},
|
|
|
|
navbar-dropdown-arrow: #{$navbar-dropdown-arrow},
|
|
|
|
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-dropdown-item-hover-color: #{$navbar-dropdown-item-hover-color},
|
|
|
|
navbar-dropdown-item-hover-background-color: #{$navbar-dropdown-item-hover-background-color},
|
|
|
|
navbar-dropdown-item-active-color: #{$navbar-dropdown-item-active-color},
|
|
|
|
navbar-dropdown-item-active-background-color: #{$navbar-dropdown-item-active-background-color},
|
|
|
|
navbar-divider-background-color: #{$navbar-divider-background-color},
|
|
|
|
navbar-divider-height: #{$navbar-divider-height},
|
|
|
|
navbar-bottom-box-shadow-size: #{$navbar-bottom-box-shadow-size},
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-11-23 17:44:02 +00:00
|
|
|
@mixin navbar-fixed {
|
|
|
|
left: 0;
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
2022-12-06 00:47:43 +00:00
|
|
|
z-index: getVar("navbar-fixed-z");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-background-color");
|
|
|
|
min-height: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
position: relative;
|
2022-12-06 00:47:43 +00:00
|
|
|
z-index: getVar("navbar-z");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
|
|
|
@each $name, $pair in $navbar-colors {
|
|
|
|
$color: nth($pair, 1);
|
|
|
|
$color-invert: nth($pair, 2);
|
|
|
|
|
|
|
|
&.is-#{$name} {
|
|
|
|
background-color: $color;
|
|
|
|
color: $color-invert;
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-brand {
|
|
|
|
& > .#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
color: $color-invert;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
& > a.#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&.is-active {
|
|
|
|
background-color: bulmaDarken($color, 5%);
|
|
|
|
color: $color-invert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
&::after {
|
|
|
|
border-color: $color-invert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-burger {
|
2022-11-23 17:44:02 +00:00
|
|
|
color: $color-invert;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include from($navbar-breakpoint) {
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-start,
|
|
|
|
.#{$class-prefix}navbar-end {
|
|
|
|
& > .#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
color: $color-invert;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
& > a.#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&.is-active {
|
|
|
|
background-color: bulmaDarken($color, 5%);
|
|
|
|
color: $color-invert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
&::after {
|
|
|
|
border-color: $color-invert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item.has-dropdown:focus
|
|
|
|
.#{$class-prefix}navbar-link,
|
|
|
|
.#{$class-prefix}navbar-item.has-dropdown:hover
|
|
|
|
.#{$class-prefix}navbar-link,
|
|
|
|
.#{$class-prefix}navbar-item.has-dropdown.is-active
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
background-color: bulmaDarken($color, 5%);
|
|
|
|
color: $color-invert;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-dropdown {
|
|
|
|
a.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
&.is-active {
|
|
|
|
background-color: $color;
|
|
|
|
color: $color-invert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
& > .#{$class-prefix}container {
|
2022-11-23 17:44:02 +00:00
|
|
|
align-items: stretch;
|
|
|
|
display: flex;
|
2022-12-06 00:47:43 +00:00
|
|
|
min-height: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-shadow {
|
2022-12-06 00:47:43 +00:00
|
|
|
box-shadow: getVar("navbar-box-shadow-size")
|
|
|
|
getVar("navbar-box-shadow-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-fixed-bottom,
|
|
|
|
&.is-fixed-top {
|
|
|
|
@include navbar-fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
&.has-shadow {
|
2022-12-06 00:47:43 +00:00
|
|
|
box-shadow: getVar("navbar-bottom-box-shadow-size")
|
|
|
|
getVar("navbar-box-shadow-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-fixed-top {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
&.has-navbar-fixed-top {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding-top: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.has-navbar-fixed-bottom {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding-bottom: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-brand,
|
|
|
|
.#{$class-prefix}navbar-tabs {
|
2022-11-23 17:44:02 +00:00
|
|
|
align-items: stretch;
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
2022-12-06 00:47:43 +00:00
|
|
|
min-height: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-brand {
|
|
|
|
a.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-tabs {
|
2022-11-23 17:44:02 +00:00
|
|
|
@include overflow-touch;
|
|
|
|
|
|
|
|
max-width: 100vw;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-burger {
|
2022-11-23 17:44:02 +00:00
|
|
|
@extend %reset;
|
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
color: getVar("navbar-burger-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
@include hamburger(getVar("navbar-height"));
|
2022-11-23 17:44:02 +00:00
|
|
|
@include ltr-property("margin", auto, false);
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-menu {
|
2022-11-23 17:44:02 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-12-06 00:47:43 +00:00
|
|
|
color: getVar("navbar-item-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
display: block;
|
|
|
|
line-height: 1.5;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
position: relative;
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}icon {
|
2022-11-23 17:44:02 +00:00
|
|
|
&:only-child {
|
|
|
|
margin-left: -0.25rem;
|
|
|
|
margin-right: -0.25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
a.#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:focus-within,
|
|
|
|
&:hover,
|
|
|
|
&.is-active {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-item-hover-background-color");
|
|
|
|
color: getVar("navbar-item-hover-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
img {
|
2022-12-06 00:47:43 +00:00
|
|
|
max-height: getVar("navbar-item-img-max-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.has-dropdown {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-expanded {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-tab {
|
|
|
|
border-bottom: 1px solid transparent;
|
2022-12-06 00:47:43 +00:00
|
|
|
min-height: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
padding-bottom: calc(0.5rem - 1px);
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-tab-hover-background-color");
|
|
|
|
border-bottom-color: getVar("navbar-tab-hover-border-bottom-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-tab-active-background-color");
|
|
|
|
border-bottom-color: getVar("navbar-tab-active-border-bottom-color");
|
|
|
|
border-bottom-style: getVar("navbar-tab-active-border-bottom-style");
|
|
|
|
border-bottom-width: getVar("navbar-tab-active-border-bottom-width");
|
|
|
|
color: getVar("navbar-tab-active-color");
|
|
|
|
padding-bottom: calc(
|
|
|
|
0.5rem - #{getVar("navbar-tab-active-border-bottom-width")}
|
|
|
|
);
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-content {
|
2022-11-23 17:44:02 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-link:not(.is-arrowless) {
|
2022-11-23 17:44:02 +00:00
|
|
|
@include ltr-property("padding", 2.5em);
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
@extend %arrow;
|
2022-12-06 00:47:43 +00:00
|
|
|
border-color: getVar("navbar-dropdown-arrow");
|
2022-11-23 17:44:02 +00:00
|
|
|
margin-top: -0.375em;
|
|
|
|
@include ltr-position(1.125em);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-dropdown {
|
2022-11-23 17:44:02 +00:00
|
|
|
font-size: 0.875rem;
|
|
|
|
padding-bottom: 0.5rem;
|
|
|
|
padding-top: 0.5rem;
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
padding-left: 1.5rem;
|
|
|
|
padding-right: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-divider {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-divider-background-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
border: none;
|
|
|
|
display: none;
|
2022-12-06 00:47:43 +00:00
|
|
|
height: getVar("navbar-divider-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
margin: 0.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include until($navbar-breakpoint) {
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar > .#{$class-prefix}container {
|
2022-11-23 17:44:02 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-brand,
|
|
|
|
.#{$class-prefix}navbar-tabs {
|
|
|
|
.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-menu {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-background-color");
|
2022-12-17 00:11:23 +00:00
|
|
|
box-shadow: 0 8px 16px bulmaRgba(getVar("shadow-color-rgb"), 0.1);
|
2022-11-23 17:44:02 +00:00
|
|
|
padding: 0.5rem 0;
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fixed navbar
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar {
|
2022-11-23 17:44:02 +00:00
|
|
|
&.is-fixed-bottom-touch,
|
|
|
|
&.is-fixed-top-touch {
|
|
|
|
@include navbar-fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-fixed-bottom-touch {
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
&.has-shadow {
|
2022-12-17 00:11:23 +00:00
|
|
|
box-shadow: 0 -2px 3px bulmaRgba(getVar("shadow-color-rgb"), 0.1);
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-fixed-top-touch {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-fixed-top,
|
|
|
|
&.is-fixed-top-touch {
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-menu {
|
2022-11-23 17:44:02 +00:00
|
|
|
@include overflow-touch;
|
|
|
|
|
2022-12-06 00:47:43 +00:00
|
|
|
max-height: calc(100vh - #{getVar("navbar-height")});
|
2022-11-23 17:44:02 +00:00
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
&.has-navbar-fixed-top-touch {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding-top: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.has-navbar-fixed-bottom-touch {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding-bottom: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include from($navbar-breakpoint) {
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar,
|
|
|
|
.#{$class-prefix}navbar-menu,
|
|
|
|
.#{$class-prefix}navbar-start,
|
|
|
|
.#{$class-prefix}navbar-end {
|
2022-11-23 17:44:02 +00:00
|
|
|
align-items: stretch;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar {
|
2022-12-06 00:47:43 +00:00
|
|
|
min-height: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
|
|
|
&.is-spaced {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding: getVar("navbar-padding-vertical")
|
|
|
|
getVar("navbar-padding-horizontal");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-start,
|
|
|
|
.#{$class-prefix}navbar-end {
|
2022-11-23 17:44:02 +00:00
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
a.#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-12-06 00:47:43 +00:00
|
|
|
border-radius: getVar("radius");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-transparent {
|
2022-11-23 22:53:56 +00:00
|
|
|
a.#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&.is-active {
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item.has-dropdown {
|
2022-11-23 17:44:02 +00:00
|
|
|
&.is-active,
|
|
|
|
&.is-hoverable:focus,
|
|
|
|
&.is-hoverable:focus-within,
|
|
|
|
&.is-hoverable:hover {
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-dropdown {
|
|
|
|
a.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar(
|
|
|
|
"navbar-dropdown-item-hover-background-color"
|
|
|
|
);
|
|
|
|
color: getVar("navbar-dropdown-item-hover-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar(
|
|
|
|
"navbar-dropdown-item-active-background-color"
|
|
|
|
);
|
|
|
|
color: getVar("navbar-dropdown-item-active-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-burger {
|
2022-11-23 17:44:02 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
&.has-dropdown {
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-dropdown-up {
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-link::after {
|
2022-11-23 17:44:02 +00:00
|
|
|
transform: rotate(135deg) translate(0.25em, -0.25em);
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-dropdown {
|
2022-12-06 00:47:43 +00:00
|
|
|
border-bottom: getVar("navbar-dropdown-border-top");
|
|
|
|
border-radius: getVar("navbar-dropdown-radius")
|
|
|
|
getVar("navbar-dropdown-radius") 0 0;
|
2022-11-23 17:44:02 +00:00
|
|
|
border-top: none;
|
|
|
|
bottom: 100%;
|
2022-12-17 00:11:23 +00:00
|
|
|
box-shadow: 0 -8px 8px bulmaRgba(getVar("shadow-color-rgb"), 0.1);
|
2022-11-23 17:44:02 +00:00
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active,
|
|
|
|
&.is-hoverable:focus,
|
|
|
|
&.is-hoverable:focus-within,
|
|
|
|
&.is-hoverable:hover {
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-dropdown {
|
2022-11-23 17:44:02 +00:00
|
|
|
display: block;
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar.is-spaced &,
|
2022-11-23 17:44:02 +00:00
|
|
|
&.is-boxed {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-menu {
|
2022-11-23 17:44:02 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-start {
|
2022-11-23 17:44:02 +00:00
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
@include ltr-property("margin", auto);
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-end {
|
2022-11-23 17:44:02 +00:00
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
@include ltr-property("margin", auto, false);
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-dropdown {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-dropdown-background-color");
|
|
|
|
border-bottom-left-radius: getVar("navbar-dropdown-radius");
|
|
|
|
border-bottom-right-radius: getVar("navbar-dropdown-radius");
|
|
|
|
border-top: getVar("navbar-dropdown-border-top");
|
2022-12-17 00:11:23 +00:00
|
|
|
box-shadow: 0 8px 8px bulmaRgba(getVar("shadow-color-rgb"), 0.1);
|
2022-11-23 17:44:02 +00:00
|
|
|
display: none;
|
|
|
|
font-size: 0.875rem;
|
|
|
|
@include ltr-position(0, false);
|
|
|
|
min-width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
2022-12-06 00:47:43 +00:00
|
|
|
z-index: getVar("navbar-dropdown-z");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
padding: 0.375rem 1rem;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
a.#{$class-prefix}navbar-item {
|
2022-11-23 17:44:02 +00:00
|
|
|
@include ltr-property("padding", 3rem);
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-dropdown-item-hover-background-color");
|
|
|
|
color: getVar("navbar-dropdown-item-hover-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar(
|
|
|
|
"navbar-dropdown-item-active-background-color"
|
|
|
|
);
|
|
|
|
color: getVar("navbar-dropdown-item-active-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar.is-spaced &,
|
2022-11-23 17:44:02 +00:00
|
|
|
&.is-boxed {
|
2022-12-06 00:47:43 +00:00
|
|
|
border-radius: getVar("navbar-dropdown-boxed-radius");
|
2022-11-23 17:44:02 +00:00
|
|
|
border-top: none;
|
2022-12-06 00:47:43 +00:00
|
|
|
box-shadow: getVar("navbar-dropdown-boxed-shadow");
|
2022-11-23 17:44:02 +00:00
|
|
|
display: block;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
2022-12-06 00:47:43 +00:00
|
|
|
top: calc(100% + (#{getVar("navbar-dropdown-offset")}));
|
2022-11-23 17:44:02 +00:00
|
|
|
transform: translateY(-5px);
|
2022-12-06 00:47:43 +00:00
|
|
|
transition-duration: getVar("speed");
|
2022-11-23 17:44:02 +00:00
|
|
|
transition-property: opacity, transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-right {
|
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-divider {
|
2022-11-23 17:44:02 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar > .#{$class-prefix}container,
|
|
|
|
.#{$class-prefix}container > .#{$class-prefix}navbar {
|
|
|
|
.#{$class-prefix}navbar-brand {
|
2022-11-23 17:44:02 +00:00
|
|
|
@include ltr-property("margin", -0.75rem, false);
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-menu {
|
2022-11-23 17:44:02 +00:00
|
|
|
@include ltr-property("margin", -0.75rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fixed navbar
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar {
|
2022-11-23 17:44:02 +00:00
|
|
|
&.is-fixed-bottom-desktop,
|
|
|
|
&.is-fixed-top-desktop {
|
|
|
|
@include navbar-fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-fixed-bottom-desktop {
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
&.has-shadow {
|
2022-12-17 00:11:23 +00:00
|
|
|
box-shadow: 0 -2px 3px bulmaRgba(getVar("shadow-color-rgb"), 0.1);
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-fixed-top-desktop {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
&.has-navbar-fixed-top-desktop {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding-top: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.has-navbar-fixed-bottom-desktop {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding-bottom: getVar("navbar-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.has-spaced-navbar-fixed-top {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding-top: calc(
|
|
|
|
#{getVar("navbar-height")} + calc(#{getVar("navbar-padding-vertical")} *
|
|
|
|
2)
|
|
|
|
);
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.has-spaced-navbar-fixed-bottom {
|
2022-12-06 00:47:43 +00:00
|
|
|
padding-bottom: calc(
|
|
|
|
#{getVar("navbar-height")} + calc(#{getVar("navbar-padding-vertical")} *
|
|
|
|
2)
|
|
|
|
);
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hover/Active states
|
2022-11-23 22:53:56 +00:00
|
|
|
a.#{$class-prefix}navbar-item,
|
|
|
|
.#{$class-prefix}navbar-link {
|
2022-11-23 17:44:02 +00:00
|
|
|
&.is-active {
|
2022-12-06 00:47:43 +00:00
|
|
|
color: getVar("navbar-item-active-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active:not(:focus):not(:hover) {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-item-active-background-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-item.has-dropdown {
|
2022-11-23 17:44:02 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&.is-active {
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}navbar-link {
|
2022-12-06 00:47:43 +00:00
|
|
|
background-color: getVar("navbar-item-hover-background-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Combination
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}hero {
|
2022-11-23 17:44:02 +00:00
|
|
|
&.is-fullheight-with-navbar {
|
2022-12-06 00:47:43 +00:00
|
|
|
min-height: calc(100vh - #{getVar("navbar-height")});
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|