classes.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. layout: documentation
  3. doc-tab: overview
  4. doc-subtab: classes
  5. ---
  6. {% include subnav-overview.html %}
  7. <section class="section">
  8. <div class="container">
  9. <h1 class="title">Classes</h1>
  10. <h2 class="subtitle">Bulma is simply a <strong>collection</strong> of CSS classes. Write the HTML code you want.</h2>
  11. <hr>
  12. <div class="content">
  13. <p>
  14. Bulma is a <strong>CSS</strong> framework, meaning that the end result is simply a <strong>single</strong> <code>.css</code> file:
  15. <br>
  16. <a href="https://github.com/jgthms/bulma/blob/master/css/bulma.css">https://github.com/jgthms/bulma/blob/master/css/bulma.css</a></p>
  17. <p>
  18. Because Bulma solely comprises CSS classes, the HTML code you write has <strong>no impact</strong> on the styling of your page. That's why <code>.input</code> exists as a class, so you can choose <em>which</em> <code>&lt;input type="text"&gt;</code> elements you want to style.
  19. </p>
  20. <p>
  21. Bulma only styles <strong>generic</strong> tags directly <strong>twice</strong>:
  22. </p>
  23. <ul>
  24. <li>
  25. <a href="https://github.com/jgthms/bulma/blob/master/sass/base/generic.sass"><code>generic.sass</code></a> to define a basic style for your page
  26. </li>
  27. <li>
  28. the <a href="{{ site.url }}/documentation/elements/content/"><code>.content</code> class </a> to use for <em>any</em> textual content, like WYSIWYG
  29. </li>
  30. </ul>
  31. </div>
  32. </div>
  33. </section>