bulma/docs/documentation/layout/section.html

60 lines
1.7 KiB
HTML
Raw Normal View History

---
2017-07-29 12:02:00 +00:00
title: Section
layout: documentation
fullwidth: true
doc-tab: layout
doc-subtab: section
2018-04-09 15:50:33 +00:00
breadcrumb:
- home
- documentation
- layout
- layout-section
---
2018-04-09 15:33:44 +00:00
{% capture section_example %}
<section class="section">
<h1 class="title">Section</h1>
<h2 class="subtitle">
A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading.
</h2>
</section>
{% endcapture %}
{% capture section_medium_example %}
<section class="section is-medium">
<h1 class="title">Medium section</h1>
<h2 class="subtitle">
A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading.
</h2>
</section>
{% endcapture %}
{% capture section_large_example %}
<section class="section is-large">
<h1 class="title">Large section</h1>
<h2 class="subtitle">
A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading.
</h2>
</section>
2018-04-09 15:33:44 +00:00
{% endcapture %}
2018-04-09 15:33:44 +00:00
<div class="content">
<p>
The <code>section</code> components are simple layout elements with responsive padding. They are best used as <strong>direct</strong> children of <code>body</code>.
</p>
2018-04-09 15:33:44 +00:00
</div>
{% include elements/snippet.html content=section_example horizontal=true fullwidth=true %}
{% include elements/anchor.html name="Sizes" %}
2018-04-09 15:33:44 +00:00
<div class="content">
<p>You can use the modifiers <code>is-medium</code> and <code>is-large</code> to change the <strong>spacing</strong>.</p>
</div>
{% include elements/snippet.html content=section_medium_example horizontal=true fullwidth=true %}
{% include elements/snippet.html content=section_large_example horizontal=true fullwidth=true %}
{% include components/variables.html %}