Add level, Finish nav, Fix hero

This commit is contained in:
Jeremy Thomas 2016-05-08 01:35:43 +01:00
parent 368ab78c38
commit 75183ea5c1
8 changed files with 105 additions and 23 deletions

View File

@ -4,6 +4,11 @@
* Added: `.modal-card` * Added: `.modal-card`
* Added: display responsive utilites * Added: display responsive utilites
* Added: `.nav-center`
* Added: `.tabs ul` left center right
* Changed: `.navbar` renamed to `.level`
* Changed: `.header` renamed to `.nav`
* Fixed: `.hero` layout
## 0.0.25 ## 0.0.25

View File

@ -3,12 +3,12 @@
@import "card" @import "card"
@import "grid" @import "grid"
@import "highlight" @import "highlight"
@import "level"
@import "media" @import "media"
@import "menu" @import "menu"
@import "message" @import "message"
@import "modal" @import "modal"
@import "nav" @import "nav"
@import "navbar"
@import "pagination" @import "pagination"
@import "panel" @import "panel"
@import "tabs" @import "tabs"

View 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

View File

@ -11,12 +11,9 @@
display: flex display: flex
min-height: $nav-height min-height: $nav-height
width: 100% width: 100%
+tablet // Modifiers
& > .container &.has-shadow
& > .nav-left box-shadow: 0 2px 3px rgba($black, 0.1)
margin-left: -10px
& > .nav-right
margin-left: -10px
.nav-toggle .nav-toggle
@extend .hamburger @extend .hamburger
@ -54,10 +51,22 @@ a.nav-item
// Modifiers // Modifiers
&.is-active &.is-active
color: $link-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 .nav-tab
align-items: center align-items: center
border-bottom: 1px solid transparent border: 1px solid transparent
color: $text color: $text
display: block display: block
height: $nav-height height: $nav-height
@ -85,7 +94,6 @@ a.nav-item
.nav-item .nav-item
border-top: 1px solid rgba($border, 0.5) border-top: 1px solid rgba($border, 0.5)
padding: 10px padding: 10px
// Modifiers
&.is-active &.is-active
display: block display: block
@ -93,12 +101,20 @@ a.nav-item
align-items: stretch align-items: stretch
display: flex display: flex
flex: 1 flex: 1
justify-content: flex-start
overflow: hidden overflow: hidden
overflow-x: auto overflow-x: auto
white-space: nowrap white-space: nowrap
.nav-right .nav-center
align-items: stretch align-items: stretch
display: flex
justify-content: center
.nav-right
// Responsiveness // Responsiveness
+tablet +tablet
align-items: stretch
display: flex display: flex
flex: 1
justify-content: flex-end

View File

@ -69,7 +69,7 @@
a a
background: $white background: $white
border-color: $border border-color: $border
border-bottom-color: transparent border-bottom-color: transparent !important
&.is-fullwidth &.is-fullwidth
li li
flex: 1 flex: 1

View File

@ -1,6 +1,9 @@
.content .content
@extend .block @extend .block
// Inline // Inline
a
&:visited
color: $link-visited
li + li li + li
margin-top: 0.25em margin-top: 0.25em
// Block // Block

View File

@ -55,11 +55,8 @@
justify-content: space-between justify-content: space-between
.nav .nav
background: none background: none
& > .container box-shadow: 0 1px 0 rgba($border, 0.3)
box-shadow: 0 1px 0 rgba($border, 0.3)
.tabs .tabs
a
border: none
ul ul
border-bottom: none border-bottom: none
// Colors // Colors
@ -80,8 +77,10 @@
strong strong
color: $color-invert color: $color-invert
.nav .nav
& > .container box-shadow: 0 1px 0 rgba($color-invert, 0.2)
box-shadow: 0 1px 0 rgba($color-invert, 0.2) .nav-menu
+mobile
background: $color
a.nav-item, a.nav-item,
.nav-item a:not(.button) .nav-item a:not(.button)
color: rgba($color-invert, 0.5) color: rgba($color-invert, 0.5)
@ -107,6 +106,7 @@
&, &,
&:hover &:hover
background: $color-invert background: $color-invert
border-color: $color-invert
color: $color color: $color
// Modifiers // Modifiers
&.is-bold &.is-bold
@ -140,9 +140,11 @@
&.is-fullheight &.is-fullheight
min-height: 100vh min-height: 100vh
.hero-body .hero-body
align-items: stretch align-items: center
display: flex display: flex
flex-direction: column & > .container
justify-content: center align-items: stretch
padding-bottom: 240px display: flex
padding-top: 240px flex: 1
flex-direction: column
justify-content: center

View File

@ -1,6 +1,5 @@
@charset "utf-8" @charset "utf-8"
@import "header"
@import "hero" @import "hero"
@import "section" @import "section"
@import "footer" @import "footer"