mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Fix hero docs
This commit is contained in:
parent
b6977cfff8
commit
581d2d70a5
@ -30,4 +30,6 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{% include global/fortyfour.html %}
|
{% unless page.hide_fortyfour %}
|
||||||
|
{% include global/fortyfour.html %}
|
||||||
|
{% endunless %}
|
||||||
|
@ -9,6 +9,7 @@ svg
|
|||||||
img
|
img
|
||||||
border-radius: $radius
|
border-radius: $radius
|
||||||
display: block
|
display: block
|
||||||
|
max-height: none !important
|
||||||
&:hover
|
&:hover
|
||||||
&::after
|
&::after
|
||||||
+overlay
|
+overlay
|
||||||
|
@ -24,8 +24,6 @@ $main-spacing: 3rem
|
|||||||
$intro-width: 1080px
|
$intro-width: 1080px
|
||||||
$sidebar-width: 14rem
|
$sidebar-width: 14rem
|
||||||
|
|
||||||
$navbar-item-img-max-height: none
|
|
||||||
|
|
||||||
@import "../bulma"
|
@import "../bulma"
|
||||||
|
|
||||||
%center
|
%center
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2,6 +2,7 @@
|
|||||||
title: Hero
|
title: Hero
|
||||||
layout: documentation
|
layout: documentation
|
||||||
hide_categories: true
|
hide_categories: true
|
||||||
|
hide_fortyfour: true
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
doc-subtab: hero
|
doc-subtab: hero
|
||||||
breadcrumb:
|
breadcrumb:
|
||||||
@ -9,8 +10,34 @@ breadcrumb:
|
|||||||
- documentation
|
- documentation
|
||||||
- layout
|
- layout
|
||||||
- layout-hero
|
- layout-hero
|
||||||
|
meta:
|
||||||
|
colors: true
|
||||||
|
sizes: true
|
||||||
|
variables: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<p>
|
||||||
|
The hero component allows you to add a <strong>full width banner</strong> to your webpage, which can optionally cover the full height of the page as well.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The basic requirement of this component are:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>hero</code> as the main container
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>hero-body</code> as a direct child, in which you can put all your content
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
For the <a href="#full-height-hero">full height hero</a> to work, you will also need a <code>hero-head</code> and a <code>hero-foot</code>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% include layout/main-close.html show_categories=true %}
|
{% include layout/main-close.html show_categories=true %}
|
||||||
|
|
||||||
<section class="section is-fullwidth">
|
<section class="section is-fullwidth">
|
||||||
@ -48,7 +75,7 @@ breadcrumb:
|
|||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h3 class="title">Colors</h3>
|
{% include elements/anchor.html name="Colors" %}
|
||||||
<h4 class="subtitle">
|
<h4 class="subtitle">
|
||||||
As with buttons, you can choose one of the <strong>7 different colors</strong>:
|
As with buttons, you can choose one of the <strong>7 different colors</strong>:
|
||||||
</h4>
|
</h4>
|
||||||
@ -179,10 +206,7 @@ breadcrumb:
|
|||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h3 class="title">
|
{% include elements/anchor.html name="Gradients" %}
|
||||||
Gradients
|
|
||||||
<span class="tag is-warning">Experimental</span>
|
|
||||||
</h3>
|
|
||||||
<h4 class="subtitle">
|
<h4 class="subtitle">
|
||||||
By adding the <code>is-bold</code> modifier, you can generate a subtle <strong>gradient</strong>
|
By adding the <code>is-bold</code> modifier, you can generate a subtle <strong>gradient</strong>
|
||||||
</h4>
|
</h4>
|
||||||
@ -306,7 +330,7 @@ breadcrumb:
|
|||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h3 class="title">Sizes</h3>
|
{% include elements/anchor.html name="Sizes" %}
|
||||||
<h4 class="subtitle">
|
<h4 class="subtitle">
|
||||||
You can have even more imposing banners by using one of <strong>3 different sizes</strong>
|
You can have even more imposing banners by using one of <strong>3 different sizes</strong>
|
||||||
</h4>
|
</h4>
|
||||||
@ -407,7 +431,7 @@ breadcrumb:
|
|||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h3 class="title">Full height hero</h3>
|
{% include elements/anchor.html name="Full height hero" %}
|
||||||
<h4 class="subtitle">And vertically centered</h4>
|
<h4 class="subtitle">And vertically centered</h4>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>You can split the hero in <strong>3 vertical parts</strong>:</p>
|
<p>You can split the hero in <strong>3 vertical parts</strong>:</p>
|
||||||
@ -654,3 +678,5 @@ breadcrumb:
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% include layout/main-open.html %}
|
{% include layout/main-open.html %}
|
||||||
|
|
||||||
|
{% include elements/variables.html type='component' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user