classes.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. title: CSS classes
  3. layout: documentation
  4. doc-tab: overview
  5. doc-subtab: classes
  6. ---
  7. {% include subnav-overview.html %}
  8. <section class="section">
  9. <div class="container">
  10. <h1 class="title">Classes</h1>
  11. <h2 class="subtitle">Bulma is simply a <strong>collection</strong> of CSS classes. Write the HTML code you want.</h2>
  12. <hr>
  13. <div class="content">
  14. <p>
  15. Bulma is a <strong>CSS</strong> framework, meaning that the end result is simply a <strong>single</strong> <code>.css</code> file:
  16. <br>
  17. <a href="https://github.com/jgthms/bulma/blob/master/css/bulma.css">https://github.com/jgthms/bulma/blob/master/css/bulma.css</a></p>
  18. <p>
  19. 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.
  20. </p>
  21. <p>
  22. Bulma only styles <strong>generic</strong> tags directly <strong>twice</strong>:
  23. </p>
  24. <ul>
  25. <li>
  26. <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
  27. </li>
  28. <li>
  29. the <a href="{{ site.url }}/documentation/elements/content/"><code>.content</code> class </a> to use for <em>any</em> textual content, like WYSIWYG
  30. </li>
  31. </ul>
  32. </div>
  33. </div>
  34. </section>