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