## Basic
-Add a `.pagination` class to a `ul` to get started, then add list items with links in them.
+Add a `.pagination` class to a `ul` to get started, then add list items with links or buttons in them.
* Create arrows by adding an `.arrow` class to the first and last list items.
* To mark the current page, add a `.current` class to a list item.
// @mixins
// Style unavailable list items
@mixin pagination-unavailable-item {
- a {
+ a, button {
cursor: $pagination-link-unavailable-cursor;
color: $pagination-link-unavailable-font-color;
}
&:hover a,
- & a:focus { background: $pagination-link-unavailable-bg-active; }
+ & a:focus,
+
+ &:hover button,
+ & button:focus
+ { background: $pagination-link-unavailable-bg-active; }
}
// @mixins
// Style the current list item. Do not assume that the current item has
// $has-anchor - Default: true, Options: false
@mixin pagination-current-item($has-anchor: true) {
@if $has-anchor {
- a {
+ a, button {
background: $pagination-link-current-background;
color: $pagination-link-current-font-color;
font-weight: $pagination-link-current-font-weight;
font-size: $pagination-li-font-size;
margin-#{$default-float}: $pagination-li-margin;
- a {
+ a, button {
display: block;
padding: $pagination-link-pad;
color: $pagination-link-font-color;
+ background: none;
@include radius;
+ font-weight: normal;
+ font-size: 1em;
+ line-height: inherit;
+ @include single-transition(background-color);
}
&:hover a,
- a:focus { background: $pagination-link-active-bg; }
+ a:focus,
+ &:hover button,
+ button:focus
+ { background: $pagination-link-active-bg; }
@if $use-default-classes {
&.unavailable { @include pagination-unavailable-item(); }