mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
* 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:
parent
dc64c44d2f
commit
785b3a0635
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user