2016-09-11 11:00:49 +00:00
|
|
|
---
|
2017-07-29 12:02:00 +00:00
|
|
|
title: Section
|
2024-03-21 16:11:54 +00:00
|
|
|
layout: docs
|
|
|
|
theme: library
|
2021-01-27 23:30:42 +00:00
|
|
|
fullwidth: true
|
2016-09-11 11:00:49 +00:00
|
|
|
doc-tab: layout
|
|
|
|
doc-subtab: section
|
2018-04-09 15:50:33 +00:00
|
|
|
breadcrumb:
|
2024-03-21 16:11:54 +00:00
|
|
|
- home
|
|
|
|
- documentation
|
|
|
|
- layout
|
|
|
|
- layout-section
|
2024-09-18 13:46:10 +00:00
|
|
|
meta:
|
|
|
|
variables: true
|
2016-09-11 11:00:49 +00:00
|
|
|
---
|
2018-04-09 15:33:44 +00:00
|
|
|
{% capture section_example %}
|
2021-01-27 23:30:42 +00:00
|
|
|
<section class="section">
|
|
|
|
<h1 class="title">Section</h1>
|
|
|
|
<h2 class="subtitle">
|
2024-03-21 16:11:54 +00:00
|
|
|
A simple container to divide your page into <strong>sections</strong>, like
|
|
|
|
the one you're currently reading.
|
2021-01-27 23:30:42 +00:00
|
|
|
</h2>
|
|
|
|
</section>
|
|
|
|
{% endcapture %}
|
|
|
|
{% capture section_medium_example %}
|
|
|
|
<section class="section is-medium">
|
|
|
|
<h1 class="title">Medium section</h1>
|
|
|
|
<h2 class="subtitle">
|
2024-03-21 16:11:54 +00:00
|
|
|
A simple container to divide your page into <strong>sections</strong>, like
|
|
|
|
the one you're currently reading.
|
2021-01-27 23:30:42 +00:00
|
|
|
</h2>
|
|
|
|
</section>
|
|
|
|
{% endcapture %}
|
|
|
|
{% capture section_large_example %}
|
|
|
|
<section class="section is-large">
|
|
|
|
<h1 class="title">Large section</h1>
|
|
|
|
<h2 class="subtitle">
|
2024-03-21 16:11:54 +00:00
|
|
|
A simple container to divide your page into <strong>sections</strong>, like
|
|
|
|
the one you're currently reading.
|
2021-01-27 23:30:42 +00:00
|
|
|
</h2>
|
|
|
|
</section>
|
2018-04-09 15:33:44 +00:00
|
|
|
{% endcapture %}
|
2016-09-11 11:00:49 +00:00
|
|
|
|
2018-04-09 15:33:44 +00:00
|
|
|
<div class="content">
|
2021-01-27 23:30:42 +00:00
|
|
|
<p>
|
2024-03-21 16:11:54 +00:00
|
|
|
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>.
|
2021-01-27 23:30:42 +00:00
|
|
|
</p>
|
2018-04-09 15:33:44 +00:00
|
|
|
</div>
|
|
|
|
|
2024-03-21 16:11:54 +00:00
|
|
|
{%
|
|
|
|
include docs/elements/snippet.html content=section_example horizontal=true
|
|
|
|
fullwidth=true
|
|
|
|
%}
|
|
|
|
{% include docs/elements/anchor.html name="Sizes" %}
|
2016-09-11 11:00:49 +00:00
|
|
|
|
2018-04-09 15:33:44 +00:00
|
|
|
<div class="content">
|
2024-03-21 16:11:54 +00:00
|
|
|
<p>
|
|
|
|
You can use the modifiers <code>is-medium</code> and <code>is-large</code> to change the <strong>spacing</strong>.
|
|
|
|
</p>
|
2018-04-09 15:33:44 +00:00
|
|
|
</div>
|
2017-10-02 18:23:35 +00:00
|
|
|
|
2024-03-21 16:11:54 +00:00
|
|
|
{%
|
|
|
|
include docs/elements/snippet.html content=section_medium_example
|
|
|
|
horizontal=true fullwidth=true
|
|
|
|
%}
|
|
|
|
{%
|
|
|
|
include docs/elements/snippet.html
|
|
|
|
content=section_large_example horizontal=true fullwidth=true
|
|
|
|
%}
|