mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Add hero parts
This commit is contained in:
@@ -1,8 +1,24 @@
|
|||||||
|
.hero-content
|
||||||
|
padding: 40px 20px
|
||||||
|
+desktop
|
||||||
|
padding: 40px 0
|
||||||
|
|
||||||
|
.hero-buttons
|
||||||
|
margin-top: 20px
|
||||||
|
+mobile
|
||||||
|
.button
|
||||||
|
display: block
|
||||||
|
&:not(:last-child)
|
||||||
|
margin-bottom: 10px
|
||||||
|
+tablet
|
||||||
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
.button:not(:last-child)
|
||||||
|
margin-right: 20px
|
||||||
|
|
||||||
.hero
|
.hero
|
||||||
background: white
|
background: white
|
||||||
text-align: center
|
text-align: center
|
||||||
& > .container
|
|
||||||
padding: 40px 20px
|
|
||||||
a
|
a
|
||||||
color: inherit
|
color: inherit
|
||||||
.header
|
.header
|
||||||
@@ -19,9 +35,6 @@
|
|||||||
a
|
a
|
||||||
border: none
|
border: none
|
||||||
padding: 6px 12px
|
padding: 6px 12px
|
||||||
+desktop
|
|
||||||
& > .container
|
|
||||||
padding: 40px 0
|
|
||||||
&.is-alt
|
&.is-alt
|
||||||
background: $background
|
background: $background
|
||||||
color: $text-light
|
color: $text-light
|
||||||
@@ -98,15 +111,9 @@
|
|||||||
&.is-boxed
|
&.is-boxed
|
||||||
a
|
a
|
||||||
padding: 12px 16px
|
padding: 12px 16px
|
||||||
&.is-fullheight
|
|
||||||
align-items: center
|
|
||||||
display: flex
|
|
||||||
height: 100vh
|
|
||||||
.tabs
|
|
||||||
white-space: normal
|
|
||||||
&.is-medium
|
&.is-medium
|
||||||
+tablet
|
+tablet
|
||||||
& > .container
|
.hero-content
|
||||||
padding: 120px 20px
|
padding: 120px 20px
|
||||||
.title
|
.title
|
||||||
font-size: 40px
|
font-size: 40px
|
||||||
@@ -115,29 +122,27 @@
|
|||||||
.tabs
|
.tabs
|
||||||
font-size: 16px
|
font-size: 16px
|
||||||
+desktop
|
+desktop
|
||||||
& > .container
|
.hero-content
|
||||||
padding: 120px 0
|
padding: 120px 0
|
||||||
&.is-large
|
&.is-large
|
||||||
+tablet
|
+tablet
|
||||||
& > .container
|
.hero-content
|
||||||
padding: 240px 20px
|
padding: 240px 20px
|
||||||
+desktop
|
+desktop
|
||||||
& > .container
|
.hero-content
|
||||||
padding: 240px 0
|
padding: 240px 0
|
||||||
|
&.is-fullheight
|
||||||
|
align-items: stretch
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
height: 100vh
|
||||||
|
justify-content: space-between
|
||||||
|
.hero-content
|
||||||
|
display: flex
|
||||||
|
flex: 1
|
||||||
|
flex-direction: column
|
||||||
|
justify-content: center
|
||||||
&.is-left
|
&.is-left
|
||||||
text-align: left
|
text-align: left
|
||||||
&.is-right
|
&.is-right
|
||||||
text-align: right
|
text-align: right
|
||||||
|
|
||||||
.hero-buttons
|
|
||||||
margin-top: 20px
|
|
||||||
+mobile
|
|
||||||
.button
|
|
||||||
display: block
|
|
||||||
&:not(:last-child)
|
|
||||||
margin-bottom: 10px
|
|
||||||
+tablet
|
|
||||||
display: flex
|
|
||||||
justify-content: center
|
|
||||||
.button:not(:last-child)
|
|
||||||
margin-right: 20px
|
|
||||||
|
|||||||
Reference in New Issue
Block a user