2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Pagination (multiple pages)
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-09-18 23:56:20 -04:00
|
|
|
// Space out pagination from surrounding content
|
|
|
|
.pagination {
|
|
|
|
margin: @baseLineHeight 0;
|
|
|
|
}
|
2011-11-17 02:58:36 -05:00
|
|
|
|
2012-01-14 23:54:37 -05:00
|
|
|
.pagination ul {
|
2012-09-18 23:56:20 -04:00
|
|
|
// Allow for text-based alignment
|
2012-01-14 23:54:37 -05:00
|
|
|
display: inline-block;
|
|
|
|
.ie7-inline-block();
|
2012-09-18 23:56:20 -04:00
|
|
|
// Reset default ul styles
|
2012-01-14 23:54:37 -05:00
|
|
|
margin-left: 0;
|
|
|
|
margin-bottom: 0;
|
2012-09-18 23:56:20 -04:00
|
|
|
// Visuals
|
|
|
|
.border-radius(4px);
|
2012-01-14 23:54:37 -05:00
|
|
|
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
|
|
|
}
|
2012-08-27 13:56:46 -04:00
|
|
|
.pagination ul > li {
|
2012-09-18 23:56:20 -04:00
|
|
|
display: inline; // Remove list-style and block-level defaults
|
2012-08-27 13:56:46 -04:00
|
|
|
}
|
|
|
|
.pagination ul > li > a,
|
|
|
|
.pagination ul > li > span {
|
2012-09-18 23:56:20 -04:00
|
|
|
float: left; // Collapse white-space
|
|
|
|
padding: 10px 14px;
|
|
|
|
line-height: 1;
|
2012-01-14 23:54:37 -05:00
|
|
|
text-decoration: none;
|
2012-08-08 01:37:38 -04:00
|
|
|
background-color: @paginationBackground;
|
|
|
|
border: 1px solid @paginationBorder;
|
2012-01-15 19:27:36 -05:00
|
|
|
border-left-width: 0;
|
2012-01-14 23:54:37 -05:00
|
|
|
}
|
2012-08-27 13:56:46 -04:00
|
|
|
.pagination ul > li > a:hover,
|
|
|
|
.pagination ul > .active > a,
|
|
|
|
.pagination ul > .active > span {
|
2012-01-14 23:54:37 -05:00
|
|
|
background-color: #f5f5f5;
|
|
|
|
}
|
2012-08-27 13:56:46 -04:00
|
|
|
.pagination ul > .active > a,
|
|
|
|
.pagination ul > .active > span {
|
2012-01-15 02:33:42 -05:00
|
|
|
color: @grayLight;
|
2012-01-31 02:27:58 -05:00
|
|
|
cursor: default;
|
2012-01-15 02:33:42 -05:00
|
|
|
}
|
2012-08-27 13:56:46 -04:00
|
|
|
.pagination ul > .disabled > span,
|
|
|
|
.pagination ul > .disabled > a,
|
|
|
|
.pagination ul > .disabled > a:hover {
|
2012-01-14 23:54:37 -05:00
|
|
|
color: @grayLight;
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
}
|
2012-08-27 13:56:46 -04:00
|
|
|
.pagination ul > li:first-child > a,
|
|
|
|
.pagination ul > li:first-child > span {
|
2012-01-15 19:27:36 -05:00
|
|
|
border-left-width: 1px;
|
|
|
|
.border-radius(3px 0 0 3px);
|
|
|
|
}
|
2012-08-27 13:56:46 -04:00
|
|
|
.pagination ul > li:last-child > a,
|
|
|
|
.pagination ul > li:last-child > span {
|
2012-01-15 19:27:36 -05:00
|
|
|
.border-radius(0 3px 3px 0);
|
2012-01-14 23:54:37 -05:00
|
|
|
}
|
2011-12-27 16:51:36 -05:00
|
|
|
|
2012-01-14 23:54:37 -05:00
|
|
|
// Centered
|
|
|
|
.pagination-centered {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.pagination-right {
|
|
|
|
text-align: right;
|
2011-11-17 02:58:36 -05:00
|
|
|
}
|
2012-09-12 16:10:03 -04:00
|
|
|
|
2012-09-18 23:56:20 -04:00
|
|
|
|
2012-09-12 16:10:03 -04:00
|
|
|
// Pagination Sizes
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Large
|
|
|
|
.pagination-large {
|
2012-09-18 23:56:20 -04:00
|
|
|
font-size: @fontSizeLarge;
|
2012-09-12 16:10:03 -04:00
|
|
|
ul > li > a,
|
|
|
|
ul > li > span {
|
2012-09-18 23:56:20 -04:00
|
|
|
padding: @paddingLarge;
|
2012-09-12 16:10:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// Small
|
|
|
|
.pagination-small {
|
2012-09-18 23:56:20 -04:00
|
|
|
font-size: @fontSizeSmall;
|
2012-09-12 16:10:03 -04:00
|
|
|
ul > li > a,
|
|
|
|
ul > li > span {
|
2012-09-18 23:56:20 -04:00
|
|
|
padding: @paddingSmall;
|
2012-09-12 16:10:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// Mini
|
|
|
|
.pagination-mini {
|
2012-09-18 23:56:20 -04:00
|
|
|
font-size: @fontSizeMini;
|
2012-09-12 16:10:03 -04:00
|
|
|
ul > li > a,
|
|
|
|
ul > li > span {
|
2012-09-18 23:56:20 -04:00
|
|
|
padding: @paddingMini;
|
2012-09-12 16:10:03 -04:00
|
|
|
}
|
|
|
|
}
|