123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- Pagination
- ===============================================================================
- .. lead:: Provide pagination links for your site or app with the multi-page
- pagination component, or the simpler pager alternative.
- .. ----------------------------------------------------------------------------
- Default pagination
- ------------------
- Simple pagination inspired by Rdio, great for apps and search results. The
- large block is hard to miss, easily scalable, and provides large click areas.
- .. container:: bs-example
- .. class:: pagination
- * `« <#>`_
- * `1 <#>`_
- * `2 <#>`_
- * `3 <#>`_
- * `4 <#>`_
- * `5 <#>`_
- * `» <#>`_
- .. code::
- :class: highlight
- .. class:: pagination
- * `« <#>`_
- * `1 <#>`_
- * `2 <#>`_
- * `3 <#>`_
- * `4 <#>`_
- * `5 <#>`_
- * `» <#>`_
- Disabled and active states
- --------------------------
- Links are customizable for different circumstances. Use `.disabled` for
- unclickable links and `.active` to indicate the current page.
- .. container:: bs-example
- .. class:: pagination
- * .. item-class:: disabled
- `« <#>`_
- * .. item-class:: active
- `1 <#>`_
- * `2 <#>`_
- * `3 <#>`_
- * `4 <#>`_
- * `5 <#>`_
- * `» <#>`_
- .. code::
- :class: highlight
- .. class:: pagination
- * .. item-class:: disabled
- `« <#>`_
- * .. item-class:: active
- `1 <#>`_
- * `2 <#>`_
- * `3 <#>`_
- * `4 <#>`_
- * `5 <#>`_
- * `» <#>`_
- Sizing
- ------
- Fancy larger or smaller pagination? Add `.pagination-lg` or `.pagination-sm` for
- additional sizes.
- .. container:: bs-example
- .. class:: pagination pagination-lg
- * `« <#>`_
- * `1 <#>`_
- * `2 <#>`_
- * `3 <#>`_
- * `4 <#>`_
- * `5 <#>`_
- * `» <#>`_
- |
- .. class:: pagination
- * `« <#>`_
- * `1 <#>`_
- * `2 <#>`_
- * `3 <#>`_
- * `4 <#>`_
- * `5 <#>`_
- * `» <#>`_
- |
- .. class:: pagination pagination-sm
- * `« <#>`_
- * `1 <#>`_
- * `2 <#>`_
- * `3 <#>`_
- * `4 <#>`_
- * `5 <#>`_
- * `» <#>`_
- .. code::
- :class: highlight
- .. class:: pagination pagination-lg
- ...
- .. class:: pagination
- ...
- .. class:: pagination pagination-sm
- ...
- Pager
- ===============================================================================
- Quick previous and next links for simple pagination implementations with light
- markup and styles. It's great for simple sites like blogs or magazines.
- Default example
- ---------------
- By default, the pager centers links.
- .. container:: bs-example
- .. class:: pager
- * `Previous <#>`_
- * `Next <#>`_
- .. code::
- :class: highlight
- .. class:: pager
- * `Previous <#>`_
- * `Next <#>`_
- Aligned links
- -------------
- Alternatively, you can align each link to the sides:
- .. container:: bs-example
- .. class:: pager
- * .. item-class:: previous
- `← Older <#>`_
- * .. item-class:: next
- `Newer → <#>`_
- .. code::
- :class: highlight
- .. class:: pager
- * .. item-class:: previous
- `← Older <#>`_
- * .. item-class:: next
- `Newer → <#>`_
- Optional disabled state
- -----------------------
- Pager links also use the general `disabled` utility class from the pagination.
- .. container:: bs-example
- .. class:: pager
- * .. item-class:: previous disabled
- `← Older <#>`_
- * .. item-class:: next
- `Newer → <#>`_
- .. code::
- :class: highlight
- .. class:: pager
- * .. item-class:: previous disabled
- `← Older <#>`_
- * .. item-class:: next
- `Newer → <#>`_
|