Fix hero docs

This commit is contained in:
Jeremy Thomas 2018-04-18 17:00:00 +01:00
parent b6977cfff8
commit 581d2d70a5
5 changed files with 207 additions and 586 deletions

View File

@ -30,4 +30,6 @@
{% endfor %}
</nav>
{% include global/fortyfour.html %}
{% unless page.hide_fortyfour %}
{% include global/fortyfour.html %}
{% endunless %}

View File

@ -9,6 +9,7 @@ svg
img
border-radius: $radius
display: block
max-height: none !important
&:hover
&::after
+overlay

View File

@ -24,8 +24,6 @@ $main-spacing: 3rem
$intro-width: 1080px
$sidebar-width: 14rem
$navbar-item-img-max-height: none
@import "../bulma"
%center

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
title: Hero
layout: documentation
hide_categories: true
hide_fortyfour: true
doc-tab: layout
doc-subtab: hero
breadcrumb:
@ -9,8 +10,34 @@ breadcrumb:
- documentation
- layout
- 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 %}
<section class="section is-fullwidth">
@ -48,7 +75,7 @@ breadcrumb:
<section class="section">
<div class="container">
<h3 class="title">Colors</h3>
{% include elements/anchor.html name="Colors" %}
<h4 class="subtitle">
As with buttons, you can choose one of the <strong>7 different colors</strong>:
</h4>
@ -179,10 +206,7 @@ breadcrumb:
<section class="section">
<div class="container">
<h3 class="title">
Gradients
<span class="tag is-warning">Experimental</span>
</h3>
{% include elements/anchor.html name="Gradients" %}
<h4 class="subtitle">
By adding the <code>is-bold</code> modifier, you can generate a subtle <strong>gradient</strong>
</h4>
@ -306,7 +330,7 @@ breadcrumb:
<section class="section">
<div class="container">
<h3 class="title">Sizes</h3>
{% include elements/anchor.html name="Sizes" %}
<h4 class="subtitle">
You can have even more imposing banners by using one of <strong>3 different sizes</strong>
</h4>
@ -407,7 +431,7 @@ breadcrumb:
<section class="section">
<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>
<div class="content">
<p>You can split the hero in <strong>3 vertical parts</strong>:</p>
@ -654,3 +678,5 @@ breadcrumb:
</section>
{% include layout/main-open.html %}
{% include elements/variables.html type='component' %}