mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
Merge pull request #8392 from liuyl/refactpagination
refactor pagination.less
This commit is contained in:
commit
bc3c69e4e8
@ -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