mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
86af1f39ab
Conflicts: Gruntfile.js _config.yml dist/css/bootstrap-theme.css dist/css/bootstrap-theme.css.map dist/css/bootstrap-theme.min.css dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css docs/_includes/components/button-groups.html docs/_includes/components/jumbotron.html docs/_includes/components/media.html docs/_includes/components/navs.html docs/_includes/customizer-variables.html docs/_includes/footer.html docs/_includes/getting-started/browser-device-support.html docs/_includes/js/carousel.html docs/_includes/js/dropdowns.html docs/_includes/js/modal.html docs/_includes/js/popovers.html docs/_includes/js/tooltips.html docs/_includes/nav/getting-started.html docs/_includes/nav/javascript.html docs/_layouts/default.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/docs.min.js docs/assets/js/raw-files.min.js docs/browser-bugs.html docs/dist/css/bootstrap-theme.css docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap-theme.min.css docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/examples/justified-nav/index.html less/_forms.less less/_tooltip.less less/navs.less less/theme.less
89 lines
1.9 KiB
Plaintext
89 lines
1.9 KiB
Plaintext
//
|
|
// 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;
|
|
color: @pagination-color;
|
|
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 {
|
|
color: @pagination-hover-color;
|
|
background-color: @pagination-hover-bg;
|
|
border-color: @pagination-hover-border;
|
|
}
|
|
}
|
|
|
|
> .active > a,
|
|
> .active > span {
|
|
&,
|
|
&:hover,
|
|
&:focus {
|
|
z-index: 2;
|
|
color: @pagination-active-color;
|
|
background-color: @pagination-active-bg;
|
|
border-color: @pagination-active-border;
|
|
cursor: default;
|
|
}
|
|
}
|
|
|
|
> .disabled {
|
|
> span,
|
|
> span:hover,
|
|
> span:focus,
|
|
> a,
|
|
> a:hover,
|
|
> a:focus {
|
|
color: @pagination-disabled-color;
|
|
background-color: @pagination-disabled-bg;
|
|
border-color: @pagination-disabled-border;
|
|
cursor: @cursor-disabled;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Sizing
|
|
// --------------------------------------------------
|
|
|
|
// Large
|
|
.pagination-lg {
|
|
.pagination-size(@padding-lg-vertical; @padding-lg-horizontal; @font-size-lg; @border-radius-lg);
|
|
}
|
|
|
|
// Small
|
|
.pagination-sm {
|
|
.pagination-size(@padding-sm-vertical; @padding-smhorizontal; @font-size-sm; @border-radius-sm);
|
|
}
|