Stackedit/js/libs/bootstrap/less/pagination.less

84 lines
1.8 KiB
Plaintext
Raw Normal View History

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