ffffng/app/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_pagination.scss

87 lines
2 KiB
SCSS
Raw Normal View History

2014-05-12 20:08:19 +02: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;
2019-03-29 22:00:08 +01:00
margin-left: -1px;
2014-05-12 20:08:19 +02:00
line-height: $line-height-base;
color: $pagination-color;
2019-03-29 22:00:08 +01:00
text-decoration: none;
2014-05-12 20:08:19 +02:00
background-color: $pagination-bg;
border: 1px solid $pagination-border;
2019-03-29 22:00:08 +01:00
&:hover,
&:focus {
z-index: 2;
color: $pagination-hover-color;
background-color: $pagination-hover-bg;
border-color: $pagination-hover-border;
}
2014-05-12 20:08:19 +02:00
}
&:first-child {
> a,
> span {
margin-left: 0;
@include border-left-radius($border-radius-base);
}
}
&:last-child {
> a,
> span {
@include border-right-radius($border-radius-base);
}
}
}
> .active > a,
> .active > span {
&,
&:hover,
&:focus {
2016-05-16 13:33:49 +02:00
z-index: 3;
2014-05-12 20:08:19 +02:00
color: $pagination-active-color;
2019-03-29 22:00:08 +01:00
cursor: default;
2014-05-12 20:08:19 +02:00
background-color: $pagination-active-bg;
border-color: $pagination-active-border;
}
}
> .disabled {
> span,
> span:hover,
> span:focus,
> a,
> a:hover,
> a:focus {
color: $pagination-disabled-color;
2019-03-29 22:00:08 +01:00
cursor: $cursor-disabled;
2014-05-12 20:08:19 +02:00
background-color: $pagination-disabled-bg;
border-color: $pagination-disabled-border;
}
}
}
// Sizing
// --------------------------------------------------
// Large
.pagination-lg {
2016-05-16 13:33:49 +02:00
@include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
2014-05-12 20:08:19 +02:00
}
// Small
.pagination-sm {
2016-05-16 13:33:49 +02:00
@include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
2014-05-12 20:08:19 +02:00
}