CSS-helpers.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Helper classes
  2. ===============================================================================
  3. Contextual colors
  4. -----------------
  5. Convey meaning through color with a handful of emphasis utility classes. These
  6. may also be applied to links and will darken on hover just like our default
  7. link styles.
  8. .. container:: bs-example
  9. | :text-muted:`Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.`
  10. | :text-primary:`Nullam id dolor id nibh ultricies vehicula ut id elit.`
  11. | :text-success:`Duis mollis, est non commodo luctus, nisi erat porttitor ligula.`
  12. | :text-info:`Maecenas sed diam eget risus varius blandit sit amet non magna.`
  13. | :text-warning:`Etiam porta sem malesuada magna mollis euismod.`
  14. | :text-danger:`Donec ullamcorper nulla non metus auctor fringilla.`
  15. .. code:: rst
  16. :class: highlight
  17. :text-muted:`Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.`
  18. :text-primary:`Nullam id dolor id nibh ultricies vehicula ut id elit.`
  19. :text-success:`Duis mollis, est non commodo luctus, nisi erat porttitor ligula.`
  20. :text-info:`Maecenas sed diam eget risus varius blandit sit amet non magna.`
  21. :text-warning:`Etiam porta sem malesuada magna mollis euismod.`
  22. :text-danger:`Donec ullamcorper nulla non metus auctor fringilla.`
  23. Contextual background
  24. ---------------------
  25. Similar to the contextual text color classes, easily set the background of an
  26. element to any contextual class. Anchor components will darken on hover, just
  27. like the text classes.
  28. .. container:: bs-example bs-example-bg-classes
  29. .. container:: bg-primary
  30. Nullam id dolor id nibh ultricies vehicula ut id elit.
  31. .. container:: bg-success
  32. Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
  33. .. container:: bg-info
  34. Maecenas sed diam eget risus varius blandit sit amet non magna.
  35. .. container:: bg-warning
  36. Etiam porta sem malesuada magna mollis euismod.
  37. .. container:: bg-danger
  38. Donec ullamcorper nulla non metus auctor fringilla.
  39. .. code:: rst
  40. :class: highlight
  41. :bg-primary:`Nullam id dolor id nibh ultricies vehicula ut id elit.`
  42. :bg-success:`Duis mollis, est non commodo luctus, nisi erat porttitor ligula.`
  43. :bg-info:`Maecenas sed diam eget risus varius blandit sit amet non magna.`
  44. :bg-warning:`Etiam porta sem malesuada magna mollis euismod.`
  45. :bg-danger:`Donec ullamcorper nulla non metus auctor fringilla.`