123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- Buttons
- ===============================================================================
- Options
- -------
- Use any of the available button classes to quickly create a styled button.
- .. container:: bs-example
- .. button:: Default
- .. button:: Primary
- :class: primary
- .. button:: Success
- :class: success
- .. button:: Info
- :class: info
- .. button:: Warning
- :class: warning
- .. button:: Danger
- :class: danger
- .. button:: Link
- :class: link
- .. code::
- :class: highlight
- .. button:: Default
- :class: default
- .. button:: Primary
- :class: primary
- .. button:: Success
- :class: success
- .. button:: Info
- :class: info
- .. button:: Warning
- :class: warning
- .. button:: Danger
- :class: danger
- .. button:: Link
- :class: link
- Sizes
- -----
- Fancy larger or smaller buttons? Add :code:`large`, :code:`small`, or
- :code:`tiny` for additional sizes.
- .. container:: bs-example
- .. button:: Large button
- :class: primary large
- .. button:: Large button
- :class: large
- |
- .. button:: Default button
- :class: primary
- .. button:: Default button
- |
- .. button:: Small button
- :class: primary small
- .. button:: Small button
- :class: small
- |
- .. button:: Tiny button
- :class: primary tiny
- .. button:: Tiny button
- :class: tiny
- .. code::
- :class: highlight
- .. button:: Large button
- :class: primary large
- .. button:: Large button
- :class: large
- .. button:: Default button
- :class: primary
- .. button:: Default button
- .. button:: Small button
- :class: primary small
- .. button:: Small button
- :class: small
- .. button:: Tiny button
- :class: primary tiny
- .. button:: Tiny button
- :class: tiny
- Create block level buttons—those that span the full width of a parent by adding
- :code:`block`.
- .. container:: bs-example
- .. container:: well
- .. button:: Block level button
- :class: primary large block
- .. button:: Block level button
- :class: large block
- .. code::
- :class: highlight
- .. button:: Block level button
- :class: primary large block
- .. button:: Block level button
- :class: large block
- Active state
- ------------
- Buttons will appear pressed (with a darker background, darker border, and inset
- shadow) when :code:`active`.
- .. container:: bs-example
- .. button:: Primary button
- :class: primary large active
- .. button:: Button
- :class: large active
- .. code::
- :class: highlight
- .. button:: Primary button
- :class: primary large active
- .. button:: Button
- :class: large active
- Disabled state
- --------------
- Make buttons look unclickable by fading them back 50% using the :code:`disabled`
- option.
- .. container:: bs-example
- .. button:: Primary button
- :class: primary large disabled
- .. button:: Button
- :class: large disabled
- .. code::
- :class: highlight
- .. button:: Primary button
- :class: primary large disabled
- .. button:: Button
- :class: large disabled
|