You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
2.5 KiB
122 lines
2.5 KiB
12 years ago
|
//
|
||
|
// Pagination (multiple pages)
|
||
|
// --------------------------------------------------
|
||
|
|
||
12 years ago
|
// Space out pagination from surrounding content
|
||
12 years ago
|
.pagination {
|
||
|
margin: @baseLineHeight 0;
|
||
12 years ago
|
}
|
||
|
|
||
12 years ago
|
.pagination ul {
|
||
12 years ago
|
// Allow for text-based alignment
|
||
12 years ago
|
display: inline-block;
|
||
|
.ie7-inline-block();
|
||
12 years ago
|
// Reset default ul styles
|
||
12 years ago
|
margin-left: 0;
|
||
|
margin-bottom: 0;
|
||
12 years ago
|
// Visuals
|
||
|
.border-radius(@baseBorderRadius);
|
||
12 years ago
|
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
||
|
}
|
||
|
.pagination ul > li {
|
||
12 years ago
|
display: inline; // Remove list-style and block-level defaults
|
||
12 years ago
|
}
|
||
|
.pagination ul > li > a,
|
||
|
.pagination ul > li > span {
|
||
12 years ago
|
float: left; // Collapse white-space
|
||
|
padding: 4px 12px;
|
||
|
line-height: @baseLineHeight;
|
||
12 years ago
|
text-decoration: none;
|
||
|
background-color: @paginationBackground;
|
||
|
border: 1px solid @paginationBorder;
|
||
|
border-left-width: 0;
|
||
|
}
|
||
|
.pagination ul > li > a:hover,
|
||
|
.pagination ul > .active > a,
|
||
|
.pagination ul > .active > span {
|
||
12 years ago
|
background-color: @paginationActiveBackground;
|
||
12 years ago
|
}
|
||
|
.pagination ul > .active > a,
|
||
|
.pagination ul > .active > span {
|
||
|
color: @grayLight;
|
||
|
cursor: default;
|
||
|
}
|
||
|
.pagination ul > .disabled > span,
|
||
|
.pagination ul > .disabled > a,
|
||
|
.pagination ul > .disabled > a:hover {
|
||
|
color: @grayLight;
|
||
|
background-color: transparent;
|
||
|
cursor: default;
|
||
|
}
|
||
|
.pagination ul > li:first-child > a,
|
||
|
.pagination ul > li:first-child > span {
|
||
|
border-left-width: 1px;
|
||
12 years ago
|
.border-left-radius(@baseBorderRadius);
|
||
12 years ago
|
}
|
||
|
.pagination ul > li:last-child > a,
|
||
|
.pagination ul > li:last-child > span {
|
||
12 years ago
|
.border-right-radius(@baseBorderRadius);
|
||
12 years ago
|
}
|
||
|
|
||
12 years ago
|
|
||
|
// Alignment
|
||
|
// --------------------------------------------------
|
||
|
|
||
12 years ago
|
.pagination-centered {
|
||
|
text-align: center;
|
||
|
}
|
||
|
.pagination-right {
|
||
|
text-align: right;
|
||
|
}
|
||
12 years ago
|
|
||
|
|
||
|
// Sizing
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
// Large
|
||
|
.pagination-large {
|
||
|
ul > li > a,
|
||
|
ul > li > span {
|
||
|
padding: @paddingLarge;
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Small
|
||
|
.pagination-small {
|
||
|
ul > li > a,
|
||
|
ul > li > span {
|
||
|
padding: @paddingSmall;
|
||
|
font-size: @fontSizeSmall;
|
||
|
}
|
||
|
}
|
||
|
// Mini
|
||
|
.pagination-mini {
|
||
|
ul > li > a,
|
||
|
ul > li > span {
|
||
|
padding: @paddingMini;
|
||
|
font-size: @fontSizeMini;
|
||
|
}
|
||
|
}
|