Fork-Awesome/assets/less/bootstrap-3.3.5/pagination.less

90 lines
2.0 KiB
Plaintext
Raw Normal View History

2013-10-23 23:12:39 +08:00
//
// Pagination (multiple pages)
// --------------------------------------------------
.pagination {
display: inline-block;
padding-left: 0;
margin: @line-height-computed 0;
border-radius: @border-radius-base;
> li {
display: inline; // Remove list-style and block-level defaults
> a,
> span {
position: relative;
float: left; // Collapse white-space
padding: @padding-base-vertical @padding-base-horizontal;
line-height: @line-height-base;
text-decoration: none;
2014-05-15 04:13:14 +08:00
color: @pagination-color;
2013-10-23 23:12:39 +08:00
background-color: @pagination-bg;
border: 1px solid @pagination-border;
margin-left: -1px;
}
&:first-child {
> a,
> span {
margin-left: 0;
.border-left-radius(@border-radius-base);
}
}
&:last-child {
> a,
> span {
.border-right-radius(@border-radius-base);
}
}
}
> li > a,
> li > span {
&:hover,
&:focus {
z-index: 2;
2014-05-15 04:13:14 +08:00
color: @pagination-hover-color;
2013-10-23 23:12:39 +08:00
background-color: @pagination-hover-bg;
2014-05-15 04:13:14 +08:00
border-color: @pagination-hover-border;
2013-10-23 23:12:39 +08:00
}
}
> .active > a,
> .active > span {
&,
&:hover,
&:focus {
z-index: 3;
2013-10-23 23:12:39 +08:00
color: @pagination-active-color;
background-color: @pagination-active-bg;
2014-05-15 04:13:14 +08:00
border-color: @pagination-active-border;
2013-10-23 23:12:39 +08:00
cursor: default;
}
}
> .disabled {
> span,
2014-05-15 04:13:14 +08:00
> span:hover,
> span:focus,
2013-10-23 23:12:39 +08:00
> a,
> a:hover,
> a:focus {
color: @pagination-disabled-color;
2014-05-15 04:13:14 +08:00
background-color: @pagination-disabled-bg;
border-color: @pagination-disabled-border;
cursor: @cursor-disabled;
2013-10-23 23:12:39 +08:00
}
}
}
// Sizing
// --------------------------------------------------
// Large
.pagination-lg {
.pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
2013-10-23 23:12:39 +08:00
}
// Small
.pagination-sm {
.pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
2013-10-23 23:12:39 +08:00
}