mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Add top bottom navbar toggle
This commit is contained in:
@@ -104,6 +104,8 @@ $navbar-divider-background-color: $border !default
|
||||
+navbar-fixed
|
||||
&.is-fixed-bottom
|
||||
bottom: 0
|
||||
&.has-shadow
|
||||
box-shadow: 0 -2px 3px rgba($black, 0.1)
|
||||
&.is-fixed-top
|
||||
top: 0
|
||||
|
||||
@@ -216,6 +218,8 @@ a.navbar-item,
|
||||
+navbar-fixed
|
||||
&.is-fixed-bottom-touch
|
||||
bottom: 0
|
||||
&.has-shadow
|
||||
box-shadow: 0 -2px 3px rgba($black, 0.1)
|
||||
&.is-fixed-top-touch
|
||||
top: 0
|
||||
html.has-navbar-fixed-top-touch
|
||||
@@ -260,6 +264,16 @@ a.navbar-item,
|
||||
.navbar-item
|
||||
&.has-dropdown
|
||||
align-items: stretch
|
||||
&.has-dropdown-up
|
||||
.navbar-link::after
|
||||
transform: rotate(135deg) translate(0.25em, -0.25em)
|
||||
.navbar-dropdown
|
||||
border-bottom: $navbar-dropdown-border-top
|
||||
border-radius: $navbar-dropdown-radius $navbar-dropdown-radius 0 0
|
||||
border-top: none
|
||||
bottom: 100%
|
||||
box-shadow: 0 -8px 8px rgba($black, 0.1)
|
||||
top: auto
|
||||
&.is-active,
|
||||
&.is-hoverable:hover
|
||||
.navbar-dropdown
|
||||
@@ -336,6 +350,8 @@ a.navbar-item,
|
||||
+navbar-fixed
|
||||
&.is-fixed-bottom-desktop
|
||||
bottom: 0
|
||||
&.has-shadow
|
||||
box-shadow: 0 -2px 3px rgba($black, 0.1)
|
||||
&.is-fixed-top-desktop
|
||||
top: 0
|
||||
html.has-navbar-fixed-top-desktop
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
pointer-events: none
|
||||
position: absolute
|
||||
transform: rotate(-45deg)
|
||||
transform-origin: center
|
||||
width: 0.5em
|
||||
|
||||
=block
|
||||
|
||||
Reference in New Issue
Block a user