mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Update header item, Fix card width, Add github banner
This commit is contained in:
parent
6ddce502c5
commit
d2e7bafb83
@ -30,6 +30,7 @@
|
|||||||
.card
|
.card
|
||||||
background: white
|
background: white
|
||||||
box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
|
box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
|
||||||
|
max-width: 100%
|
||||||
position: relative
|
position: relative
|
||||||
width: 300px
|
width: 300px
|
||||||
.media:not(:last-child)
|
.media:not(:last-child)
|
||||||
|
@ -2,16 +2,17 @@
|
|||||||
+clearfix
|
+clearfix
|
||||||
background: white
|
background: white
|
||||||
box-shadow: 0 1px 2px rgba(black, 0.1)
|
box-shadow: 0 1px 2px rgba(black, 0.1)
|
||||||
|
display: flex
|
||||||
height: $header-height
|
height: $header-height
|
||||||
line-height: 24px
|
line-height: 24px
|
||||||
position: relative
|
position: relative
|
||||||
text-align: center
|
text-align: center
|
||||||
z-index: 2
|
z-index: 2
|
||||||
.container
|
.container
|
||||||
align-items: center
|
align-items: stretch
|
||||||
box-shadow: 0 1px 0 rgba($border, 0.3)
|
box-shadow: 0 1px 0 rgba($border, 0.3)
|
||||||
display: flex
|
display: flex
|
||||||
height: $header-height
|
width: 100%
|
||||||
|
|
||||||
.header-toggle
|
.header-toggle
|
||||||
@extend .hamburger
|
@extend .hamburger
|
||||||
@ -21,8 +22,11 @@
|
|||||||
// Elements
|
// Elements
|
||||||
|
|
||||||
.header-item
|
.header-item
|
||||||
display: block
|
align-items: center
|
||||||
padding: 0 10px
|
display: flex
|
||||||
|
padding: 10px
|
||||||
|
img
|
||||||
|
max-height: 24px
|
||||||
a
|
a
|
||||||
color: $text
|
color: $text
|
||||||
&:hover
|
&:hover
|
||||||
@ -41,6 +45,7 @@
|
|||||||
color: $link-hover
|
color: $link-hover
|
||||||
|
|
||||||
.header-tab
|
.header-tab
|
||||||
|
align-items: center
|
||||||
border-bottom: 1px solid transparent
|
border-bottom: 1px solid transparent
|
||||||
color: $text
|
color: $text
|
||||||
display: block
|
display: block
|
||||||
@ -53,36 +58,28 @@
|
|||||||
border-bottom: 3px solid $link
|
border-bottom: 3px solid $link
|
||||||
color: $link
|
color: $link
|
||||||
|
|
||||||
.header-logo
|
|
||||||
align-items: center
|
|
||||||
display: flex
|
|
||||||
img
|
|
||||||
max-height: 24px
|
|
||||||
+touch
|
|
||||||
padding: 0 10px
|
|
||||||
+tablet
|
|
||||||
padding-right: 10px
|
|
||||||
|
|
||||||
// Containers
|
// Containers
|
||||||
|
|
||||||
.header-left
|
.header-left
|
||||||
align-items: center
|
align-items: stretch
|
||||||
display: flex
|
display: flex
|
||||||
flex: 1
|
flex: 1
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
overflow-x: auto
|
overflow-x: auto
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
|
+desktop
|
||||||
|
.header-item:first-child
|
||||||
|
padding-left: 0
|
||||||
|
|
||||||
.header-center
|
.header-center
|
||||||
align-items: center
|
align-items: stretch
|
||||||
display: flex
|
display: flex
|
||||||
height: $header-height
|
|
||||||
left: 50%
|
left: 50%
|
||||||
position: absolute
|
position: absolute
|
||||||
transform: translateX(-50%)
|
transform: translateX(-50%)
|
||||||
|
|
||||||
.header-right
|
.header-right
|
||||||
align-items: center
|
align-items: stretch
|
||||||
+tablet
|
+tablet
|
||||||
display: flex
|
display: flex
|
||||||
+desktop
|
+desktop
|
||||||
@ -92,7 +89,6 @@
|
|||||||
.header-full
|
.header-full
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
display: flex
|
display: flex
|
||||||
height: $header-height
|
|
||||||
justify-content: center
|
justify-content: center
|
||||||
text-align: center
|
text-align: center
|
||||||
width: 100%
|
width: 100%
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
color: $color-invert
|
color: $color-invert
|
||||||
.title
|
.title
|
||||||
color: $color-invert
|
color: $color-invert
|
||||||
|
a,
|
||||||
strong
|
strong
|
||||||
color: inherit
|
color: inherit
|
||||||
.subtitle
|
.subtitle
|
||||||
|
BIN
images/bulma-banner.png
Normal file
BIN
images/bulma-banner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Loading…
Reference in New Issue
Block a user