section.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ---
  2. title: Section
  3. layout: documentation
  4. doc-tab: layout
  5. doc-subtab: section
  6. variables:
  7. - name: $section-padding
  8. value: 3rem 1.5rem
  9. - name: $section-padding-medium
  10. value: 9rem 1.5rem
  11. - name: $section-padding-large
  12. value: 18rem 1.5rem
  13. ---
  14. {% include subnav-layout.html %}
  15. <section class="section">
  16. <div class="container">
  17. <h1 class="title">Section</h1>
  18. <h2 class="subtitle">
  19. A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading
  20. </h2>
  21. <hr>
  22. <div class="content">
  23. <p>Use sections as <strong>direct</strong> children of <code>body</code>.</p>
  24. </div>
  25. {% highlight html %}
  26. <body>
  27. <section class="section">
  28. <div class="container">
  29. <h1 class="title">Section</h1>
  30. <h2 class="subtitle">
  31. A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading
  32. </h2>
  33. </div>
  34. </section>
  35. </body>
  36. {% endhighlight %}
  37. <div class="content">
  38. <p>You can use the modifiers <code>is-medium</code> and <code>is-large</code> to change the <strong>spacing</strong>.</p>
  39. </div>
  40. {% include variables.html layout=true %}
  41. </div>
  42. </section>