mirror of
https://github.com/jgthms/bulma
synced 2026-03-20 20:24:30 -07:00
Add level, Finish nav, Fix hero
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
@import "card"
|
||||
@import "grid"
|
||||
@import "highlight"
|
||||
@import "level"
|
||||
@import "media"
|
||||
@import "menu"
|
||||
@import "message"
|
||||
@import "modal"
|
||||
@import "nav"
|
||||
@import "navbar"
|
||||
@import "pagination"
|
||||
@import "panel"
|
||||
@import "tabs"
|
||||
|
||||
57
sass/components/level.sass
Normal file
57
sass/components/level.sass
Normal file
@@ -0,0 +1,57 @@
|
||||
.level-item
|
||||
.title,
|
||||
.subtitle
|
||||
margin-bottom: 0
|
||||
// Responsiveness
|
||||
+mobile
|
||||
&:not(:last-child)
|
||||
margin-bottom: 10px
|
||||
|
||||
.level-left,
|
||||
.level-right
|
||||
.level-item
|
||||
&:not(:last-child)
|
||||
margin-right: 10px
|
||||
// Modifiers
|
||||
&.is-flexible
|
||||
flex: 1
|
||||
|
||||
.level-left
|
||||
// Responsiveness
|
||||
+mobile
|
||||
& + .level-right
|
||||
margin-top: 20px
|
||||
+tablet
|
||||
align-items: center
|
||||
display: flex
|
||||
|
||||
.level-right
|
||||
// Responsiveness
|
||||
+tablet
|
||||
align-items: center
|
||||
display: flex
|
||||
justify-content: flex-end
|
||||
|
||||
.level
|
||||
@extend .block
|
||||
align-items: center
|
||||
justify-content: space-between
|
||||
code
|
||||
border-radius: $radius
|
||||
img
|
||||
display: inline-block
|
||||
vertical-align: top
|
||||
// Modifiers
|
||||
&.is-mobile
|
||||
display: flex
|
||||
& > .level-item
|
||||
&:not(:last-child)
|
||||
margin-bottom: 0
|
||||
&:not(.is-narrow)
|
||||
flex: 1
|
||||
// Responsiveness
|
||||
+tablet
|
||||
display: flex
|
||||
& > .level-item
|
||||
&:not(.is-narrow)
|
||||
flex: 1
|
||||
@@ -11,12 +11,9 @@
|
||||
display: flex
|
||||
min-height: $nav-height
|
||||
width: 100%
|
||||
+tablet
|
||||
& > .container
|
||||
& > .nav-left
|
||||
margin-left: -10px
|
||||
& > .nav-right
|
||||
margin-left: -10px
|
||||
// Modifiers
|
||||
&.has-shadow
|
||||
box-shadow: 0 2px 3px rgba($black, 0.1)
|
||||
|
||||
.nav-toggle
|
||||
@extend .hamburger
|
||||
@@ -54,10 +51,22 @@ a.nav-item
|
||||
// Modifiers
|
||||
&.is-active
|
||||
color: $link-active
|
||||
&.is-tab
|
||||
border-bottom: 1px solid transparent
|
||||
border-top: 1px solid transparent
|
||||
padding-left: 12px
|
||||
padding-right: 12px
|
||||
&:hover
|
||||
border-bottom: 1px solid $link
|
||||
border-top: 1px solid transparent
|
||||
&.is-active
|
||||
border-bottom: 3px solid $link
|
||||
border-top: 3px solid transparent
|
||||
color: $link
|
||||
|
||||
.nav-tab
|
||||
align-items: center
|
||||
border-bottom: 1px solid transparent
|
||||
border: 1px solid transparent
|
||||
color: $text
|
||||
display: block
|
||||
height: $nav-height
|
||||
@@ -85,7 +94,6 @@ a.nav-item
|
||||
.nav-item
|
||||
border-top: 1px solid rgba($border, 0.5)
|
||||
padding: 10px
|
||||
// Modifiers
|
||||
&.is-active
|
||||
display: block
|
||||
|
||||
@@ -93,12 +101,20 @@ a.nav-item
|
||||
align-items: stretch
|
||||
display: flex
|
||||
flex: 1
|
||||
justify-content: flex-start
|
||||
overflow: hidden
|
||||
overflow-x: auto
|
||||
white-space: nowrap
|
||||
|
||||
.nav-right
|
||||
.nav-center
|
||||
align-items: stretch
|
||||
display: flex
|
||||
justify-content: center
|
||||
|
||||
.nav-right
|
||||
// Responsiveness
|
||||
+tablet
|
||||
align-items: stretch
|
||||
display: flex
|
||||
flex: 1
|
||||
justify-content: flex-end
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
a
|
||||
background: $white
|
||||
border-color: $border
|
||||
border-bottom-color: transparent
|
||||
border-bottom-color: transparent !important
|
||||
&.is-fullwidth
|
||||
li
|
||||
flex: 1
|
||||
|
||||
Reference in New Issue
Block a user