From: IvanFrescas Date: Sun, 5 Jan 2020 13:05:39 +0000 (-0700) Subject: Fix #2739 add variables size for layout hero (#2740) X-Git-Tag: 0.8.1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fcb0b059b9e9c8ea516d3404f6e3a55b085fe56;p=thirdparty%2Fbulma.git Fix #2739 add variables size for layout hero (#2740) * Add variables size for layout hero * Add variables size for layout hero * Change variable tag to Yes on hero documentation --- diff --git a/docs/_data/variables/layout/hero.json b/docs/_data/variables/layout/hero.json new file mode 100644 index 000000000..93144f08e --- /dev/null +++ b/docs/_data/variables/layout/hero.json @@ -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" +} \ No newline at end of file diff --git a/docs/documentation/customize/concepts.html b/docs/documentation/customize/concepts.html index f85274815..9a781d9e0 100644 --- a/docs/documentation/customize/concepts.html +++ b/docs/documentation/customize/concepts.html @@ -14,7 +14,7 @@ breadcrumb:

- Bulma is highly customizable thanks to 415 Sass variables living across 28 files. + Bulma is highly customizable thanks to 419 Sass variables living across 28 files.

diff --git a/docs/documentation/layout/hero.html b/docs/documentation/layout/hero.html index 6df6a4e52..619f14f47 100644 --- a/docs/documentation/layout/hero.html +++ b/docs/documentation/layout/hero.html @@ -13,7 +13,7 @@ breadcrumb: meta: colors: true sizes: true - variables: false + variables: true ---

diff --git a/sass/layout/hero.sass b/sass/layout/hero.sass index 9b18e4f93..ea376dc93 100644 --- a/sass/layout/hero.sass +++ b/sass/layout/hero.sass @@ -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 align-items: stretch display: flex @@ -71,18 +75,15 @@ // Sizes &.is-small .hero-body - padding-bottom: 1.5rem - padding-top: 1.5rem + padding: $hero-body-padding-small &.is-medium +tablet .hero-body - padding-bottom: 9rem - padding-top: 9rem + padding: $hero-body-padding-medium &.is-large +tablet .hero-body - padding-bottom: 18rem - padding-top: 18rem + padding: $hero-body-padding-large &.is-halfheight, &.is-fullheight, &.is-fullheight-with-navbar @@ -140,4 +141,4 @@ .hero-body flex-grow: 1 flex-shrink: 0 - padding: 3rem 1.5rem + padding: $hero-body-padding