CSS-buttons.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. Buttons
  2. ===============================================================================
  3. Options
  4. -------
  5. Use any of the available button classes to quickly create a styled button.
  6. .. container:: bs-example
  7. .. button:: Default
  8. .. button:: Primary
  9. :class: primary
  10. .. button:: Success
  11. :class: success
  12. .. button:: Info
  13. :class: info
  14. .. button:: Warning
  15. :class: warning
  16. .. button:: Danger
  17. :class: danger
  18. .. button:: Link
  19. :class: link
  20. .. code::
  21. :class: highlight
  22. .. button:: Default
  23. :class: default
  24. .. button:: Primary
  25. :class: primary
  26. .. button:: Success
  27. :class: success
  28. .. button:: Info
  29. :class: info
  30. .. button:: Warning
  31. :class: warning
  32. .. button:: Danger
  33. :class: danger
  34. .. button:: Link
  35. :class: link
  36. Sizes
  37. -----
  38. Fancy larger or smaller buttons? Add :code:`large`, :code:`small`, or
  39. :code:`tiny` for additional sizes.
  40. .. container:: bs-example
  41. .. button:: Large button
  42. :class: primary large
  43. .. button:: Large button
  44. :class: large
  45. |
  46. .. button:: Default button
  47. :class: primary
  48. .. button:: Default button
  49. |
  50. .. button:: Small button
  51. :class: primary small
  52. .. button:: Small button
  53. :class: small
  54. |
  55. .. button:: Tiny button
  56. :class: primary tiny
  57. .. button:: Tiny button
  58. :class: tiny
  59. .. code::
  60. :class: highlight
  61. .. button:: Large button
  62. :class: primary large
  63. .. button:: Large button
  64. :class: large
  65. .. button:: Default button
  66. :class: primary
  67. .. button:: Default button
  68. .. button:: Small button
  69. :class: primary small
  70. .. button:: Small button
  71. :class: small
  72. .. button:: Tiny button
  73. :class: primary tiny
  74. .. button:: Tiny button
  75. :class: tiny
  76. Create block level buttons—those that span the full width of a parent by adding
  77. :code:`block`.
  78. .. container:: bs-example
  79. .. container:: well
  80. .. button:: Block level button
  81. :class: primary large block
  82. .. button:: Block level button
  83. :class: large block
  84. .. code::
  85. :class: highlight
  86. .. button:: Block level button
  87. :class: primary large block
  88. .. button:: Block level button
  89. :class: large block
  90. Active state
  91. ------------
  92. Buttons will appear pressed (with a darker background, darker border, and inset
  93. shadow) when :code:`active`.
  94. .. container:: bs-example
  95. .. button:: Primary button
  96. :class: primary large active
  97. .. button:: Button
  98. :class: large active
  99. .. code::
  100. :class: highlight
  101. .. button:: Primary button
  102. :class: primary large active
  103. .. button:: Button
  104. :class: large active
  105. Disabled state
  106. --------------
  107. Make buttons look unclickable by fading them back 50% using the :code:`disabled`
  108. option.
  109. .. container:: bs-example
  110. .. button:: Primary button
  111. :class: primary large disabled
  112. .. button:: Button
  113. :class: large disabled
  114. .. code::
  115. :class: highlight
  116. .. button:: Primary button
  117. :class: primary large disabled
  118. .. button:: Button
  119. :class: large disabled