mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 02:24:19 +02:00
.page>{a,span => .page-link}
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
.page {
|
||||
display: inline; // Remove list-style and block-level defaults
|
||||
|
||||
> a,
|
||||
> span {
|
||||
.page-link {
|
||||
position: relative;
|
||||
float: left; // Collapse white-space
|
||||
padding: $pagination-padding-y $pagination-padding-x;
|
||||
@@ -21,22 +20,19 @@
|
||||
border: $pagination-border-width solid $pagination-border-color;
|
||||
}
|
||||
&:first-child {
|
||||
> a,
|
||||
> span {
|
||||
.page-link {
|
||||
margin-left: 0;
|
||||
@include border-left-radius($border-radius);
|
||||
}
|
||||
}
|
||||
&:last-child {
|
||||
> a,
|
||||
> span {
|
||||
.page-link {
|
||||
@include border-right-radius($border-radius);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page > a,
|
||||
.page > span {
|
||||
.page .page-link {
|
||||
@include hover-focus {
|
||||
color: $pagination-hover-color;
|
||||
background-color: $pagination-hover-bg;
|
||||
@@ -44,8 +40,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.page.active > a,
|
||||
.page.active > span {
|
||||
.page.active .page-link {
|
||||
@include plain-hover-focus {
|
||||
z-index: 2;
|
||||
color: $pagination-active-color;
|
||||
@@ -56,8 +51,7 @@
|
||||
}
|
||||
|
||||
.page.disabled {
|
||||
> span,
|
||||
> a {
|
||||
.page-link {
|
||||
@include plain-hover-focus {
|
||||
color: $pagination-disabled-color;
|
||||
cursor: $cursor-disabled;
|
||||
|
@@ -2,21 +2,18 @@
|
||||
|
||||
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
||||
.page {
|
||||
> a,
|
||||
> span {
|
||||
.page-link {
|
||||
padding: $padding-vertical $padding-horizontal;
|
||||
font-size: $font-size;
|
||||
line-height: $line-height;
|
||||
}
|
||||
&:first-child {
|
||||
> a,
|
||||
> span {
|
||||
.page-link {
|
||||
@include border-left-radius($border-radius);
|
||||
}
|
||||
}
|
||||
&:last-child {
|
||||
> a,
|
||||
> span {
|
||||
.page-link {
|
||||
@include border-right-radius($border-radius);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user