mirror of
https://github.com/jgthms/bulma
synced 2026-03-21 20:54:30 -07:00
* Add variables size for layout hero * Add variables size for layout hero * Change variable tag to Yes on hero documentation
This commit is contained in:
committed by
Jeremy Thomas
parent
5944dcad67
commit
5fcb0b059b
31
docs/_data/variables/layout/hero.json
Normal file
31
docs/_data/variables/layout/hero.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"by_name": {
|
||||||
|
"$hero-body-padding": {
|
||||||
|
"name": "$hero-body-padding",
|
||||||
|
"value": "3rem 1.5rem",
|
||||||
|
"type": "size"
|
||||||
|
},
|
||||||
|
"$hero-body-padding-small": {
|
||||||
|
"name": "$hero-body-padding-small",
|
||||||
|
"value": "1.5rem",
|
||||||
|
"type": "size"
|
||||||
|
},
|
||||||
|
"$hero-body-padding-medium": {
|
||||||
|
"name": "$hero-body-padding-medium",
|
||||||
|
"value": "9rem 1.5rem",
|
||||||
|
"type": "size"
|
||||||
|
},
|
||||||
|
"$hero-body-padding-large": {
|
||||||
|
"name": "$hero-body-padding-large",
|
||||||
|
"value": "18rem 1.5rem",
|
||||||
|
"type": "size"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"list": [
|
||||||
|
"$hero-body-padding",
|
||||||
|
"$hero-body-padding-small",
|
||||||
|
"$hero-body-padding-medium",
|
||||||
|
"$hero-body-padding-large"
|
||||||
|
],
|
||||||
|
"file_path": "layout/hero.sass"
|
||||||
|
}
|
||||||
@@ -14,7 +14,7 @@ breadcrumb:
|
|||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>
|
<p>
|
||||||
Bulma is highly customizable thanks to <strong>415 Sass variables</strong> living across <strong>28 files</strong>.
|
Bulma is highly customizable thanks to <strong>419 Sass variables</strong> living across <strong>28 files</strong>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ breadcrumb:
|
|||||||
meta:
|
meta:
|
||||||
colors: true
|
colors: true
|
||||||
sizes: true
|
sizes: true
|
||||||
variables: false
|
variables: true
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
// Main container
|
$hero-body-padding: 3rem 1.5rem !default
|
||||||
|
$hero-body-padding-small: 1.5rem !default
|
||||||
|
$hero-body-padding-medium: 9rem 1.5rem !default
|
||||||
|
$hero-body-padding-large: 18rem 1.5rem !default
|
||||||
|
|
||||||
|
// Main container
|
||||||
.hero
|
.hero
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
display: flex
|
display: flex
|
||||||
@@ -71,18 +75,15 @@
|
|||||||
// Sizes
|
// Sizes
|
||||||
&.is-small
|
&.is-small
|
||||||
.hero-body
|
.hero-body
|
||||||
padding-bottom: 1.5rem
|
padding: $hero-body-padding-small
|
||||||
padding-top: 1.5rem
|
|
||||||
&.is-medium
|
&.is-medium
|
||||||
+tablet
|
+tablet
|
||||||
.hero-body
|
.hero-body
|
||||||
padding-bottom: 9rem
|
padding: $hero-body-padding-medium
|
||||||
padding-top: 9rem
|
|
||||||
&.is-large
|
&.is-large
|
||||||
+tablet
|
+tablet
|
||||||
.hero-body
|
.hero-body
|
||||||
padding-bottom: 18rem
|
padding: $hero-body-padding-large
|
||||||
padding-top: 18rem
|
|
||||||
&.is-halfheight,
|
&.is-halfheight,
|
||||||
&.is-fullheight,
|
&.is-fullheight,
|
||||||
&.is-fullheight-with-navbar
|
&.is-fullheight-with-navbar
|
||||||
@@ -140,4 +141,4 @@
|
|||||||
.hero-body
|
.hero-body
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
padding: 3rem 1.5rem
|
padding: $hero-body-padding
|
||||||
|
|||||||
Reference in New Issue
Block a user