section.html 843 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. title: Section
  3. layout: documentation
  4. doc-tab: layout
  5. doc-subtab: section
  6. breadcrumb:
  7. - home
  8. - documentation
  9. - layout
  10. - layout-section
  11. ---
  12. {% capture section_example %}
  13. <body>
  14. <section class="section">
  15. <div class="container">
  16. <h1 class="title">Section</h1>
  17. <h2 class="subtitle">
  18. A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading
  19. </h2>
  20. </div>
  21. </section>
  22. </body>
  23. {% endcapture %}
  24. <div class="content">
  25. <p>Use sections as <strong>direct</strong> children of <code>body</code>.</p>
  26. </div>
  27. {% highlight html %}{{ section_example }}{% endhighlight %}
  28. <div class="content">
  29. <p>You can use the modifiers <code>is-medium</code> and <code>is-large</code> to change the <strong>spacing</strong>.</p>
  30. </div>
  31. {% include elements/variables.html %}