| 1 |
// |
| 2 |
// Pagination (multiple pages) |
| 3 |
// -------------------------------------------------- |
| 4 |
.pagination { |
| 5 |
display: inline-block; |
| 6 |
padding-left: 0; |
| 7 |
margin: @line-height-computed 0; |
| 8 |
border-radius: @border-radius-base; |
| 9 |
|
| 10 |
> li { |
| 11 |
display: inline; // Remove list-style and block-level defaults |
| 12 |
> a, |
| 13 |
> span { |
| 14 |
position: relative; |
| 15 |
float: left; // Collapse white-space |
| 16 |
padding: @padding-base-vertical @padding-base-horizontal; |
| 17 |
margin-left: -1px; |
| 18 |
line-height: @line-height-base; |
| 19 |
color: @pagination-color; |
| 20 |
text-decoration: none; |
| 21 |
background-color: @pagination-bg; |
| 22 |
border: 1px solid @pagination-border; |
| 23 |
|
| 24 |
&:hover, |
| 25 |
&:focus { |
| 26 |
z-index: 2; |
| 27 |
color: @pagination-hover-color; |
| 28 |
background-color: @pagination-hover-bg; |
| 29 |
border-color: @pagination-hover-border; |
| 30 |
} |
| 31 |
} |
| 32 |
&:first-child { |
| 33 |
> a, |
| 34 |
> span { |
| 35 |
margin-left: 0; |
| 36 |
.border-left-radius(@border-radius-base); |
| 37 |
} |
| 38 |
} |
| 39 |
&:last-child { |
| 40 |
> a, |
| 41 |
> span { |
| 42 |
.border-right-radius(@border-radius-base); |
| 43 |
} |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
> .active > a, |
| 48 |
> .active > span { |
| 49 |
&, |
| 50 |
&:hover, |
| 51 |
&:focus { |
| 52 |
z-index: 3; |
| 53 |
color: @pagination-active-color; |
| 54 |
cursor: default; |
| 55 |
background-color: @pagination-active-bg; |
| 56 |
border-color: @pagination-active-border; |
| 57 |
} |
| 58 |
} |
| 59 |
|
| 60 |
> .disabled { |
| 61 |
> span, |
| 62 |
> span:hover, |
| 63 |
> span:focus, |
| 64 |
> a, |
| 65 |
> a:hover, |
| 66 |
> a:focus { |
| 67 |
color: @pagination-disabled-color; |
| 68 |
cursor: @cursor-disabled; |
| 69 |
background-color: @pagination-disabled-bg; |
| 70 |
border-color: @pagination-disabled-border; |
| 71 |
} |
| 72 |
} |
| 73 |
} |
| 74 |
|
| 75 |
// Sizing |
| 76 |
// -------------------------------------------------- |
| 77 |
|
| 78 |
// Large |
| 79 |
.pagination-lg { |
| 80 |
.pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large); |
| 81 |
} |
| 82 |
|
| 83 |
// Small |
| 84 |
.pagination-sm { |
| 85 |
.pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small); |
| 86 |
} |