mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +01:00
refactor pagination
This commit is contained in:
parent
d483e77553
commit
3bd42511f4
8
docs/assets/css/bootstrap.css
vendored
8
docs/assets/css/bootstrap.css
vendored
@ -3339,10 +3339,10 @@ button.close {
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination > .disabled > span,
|
.pagination > .disabled span,
|
||||||
.pagination > .disabled > a,
|
.pagination > .disabled a,
|
||||||
.pagination > .disabled > a:hover,
|
.pagination > .disabled a:hover,
|
||||||
.pagination > .disabled > a:focus {
|
.pagination > .disabled a:focus {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
@ -6,12 +6,11 @@
|
|||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
margin: @line-height-computed 0;
|
margin: @line-height-computed 0;
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
}
|
|
||||||
.pagination > li {
|
> li {
|
||||||
display: inline; // Remove list-style and block-level defaults
|
display: inline; // Remove list-style and block-level defaults
|
||||||
}
|
> a,
|
||||||
.pagination > li > a,
|
> span,{
|
||||||
.pagination > li > span {
|
|
||||||
float: left; // Collapse white-space
|
float: left; // Collapse white-space
|
||||||
padding: 4px 12px;
|
padding: 4px 12px;
|
||||||
line-height: @line-height-base;
|
line-height: @line-height-base;
|
||||||
@ -19,36 +18,47 @@
|
|||||||
background-color: @pagination-bg;
|
background-color: @pagination-bg;
|
||||||
border: 1px solid @pagination-border;
|
border: 1px solid @pagination-border;
|
||||||
border-left-width: 0;
|
border-left-width: 0;
|
||||||
}
|
}
|
||||||
.pagination > li > a:hover,
|
}
|
||||||
.pagination > li > a:focus,
|
|
||||||
.pagination > .active > a,
|
> li > a:hover,
|
||||||
.pagination > .active > span {
|
> li > a:focus,
|
||||||
|
> .active > a,
|
||||||
|
> .active > span {
|
||||||
background-color: @pagination-active-bg;
|
background-color: @pagination-active-bg;
|
||||||
}
|
}
|
||||||
.pagination > .active > a,
|
> .active > a,
|
||||||
.pagination > .active > span {
|
> .active > span {
|
||||||
color: @gray-light;
|
color: @gray-light;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
.pagination > .disabled > span,
|
|
||||||
.pagination > .disabled > a,
|
> .disabled {
|
||||||
.pagination > .disabled > a:hover,
|
span,
|
||||||
.pagination > .disabled > a:focus {
|
a,
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
color: @gray-light;
|
color: @gray-light;
|
||||||
background-color: @pagination-bg;
|
background-color: @pagination-bg;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
.pagination > li:first-child > a,
|
}
|
||||||
.pagination > li:first-child > span {
|
|
||||||
|
> li:first-child {
|
||||||
|
> a,
|
||||||
|
> span {
|
||||||
border-left-width: 1px;
|
border-left-width: 1px;
|
||||||
.border-left-radius(@border-radius-base);
|
.border-left-radius(@border-radius-base);
|
||||||
}
|
}
|
||||||
.pagination > li:last-child > a,
|
}
|
||||||
.pagination > li:last-child > span {
|
|
||||||
.border-right-radius(@border-radius-base);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
> li:last-child {
|
||||||
|
> a,
|
||||||
|
> span {
|
||||||
|
.border-right-radius(@border-radius-base);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Sizing
|
// Sizing
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user