Add and use $navbar-breakpoint variable; Fixes #1042 (#2109)

* Add a navbar-breakpoint variable (as yet unused)

* Replace hard-coded +touch, +desktop with $navbar-breakpoint variable 

Using the fine +until and +from mixins, respectively.
This commit is contained in:
Benjamin Melançon 2018-10-02 01:40:16 -04:00 committed by Jeremy Thomas
parent dc64c44d2f
commit 785b3a0635

View File

@ -44,6 +44,8 @@ $navbar-divider-height: 2px !default
$navbar-bottom-box-shadow-size: 0 -2px 0 0 !default
$navbar-breakpoint: $desktop !default
=navbar-fixed
left: 0
position: fixed
@ -74,7 +76,7 @@ $navbar-bottom-box-shadow-size: 0 -2px 0 0 !default
.navbar-link
&::after
border-color: $color-invert
+desktop
+from($navbar-breakpoint)
.navbar-start,
.navbar-end
& > .navbar-item,
@ -221,7 +223,7 @@ a.navbar-item,
height: $navbar-divider-height
margin: 0.5rem 0
+touch
+until($navbar-breakpoint)
.navbar > .container
display: block
.navbar-brand,
@ -262,7 +264,7 @@ a.navbar-item,
&.has-navbar-fixed-bottom-touch
padding-bottom: $navbar-height
+desktop
+from($navbar-breakpoint)
.navbar,
.navbar-menu,
.navbar-start,