1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-05 21:27:31 +02:00

#3861: add span to pagination selectors for full support of non-link pagination items

This commit is contained in:
Mark Otto
2012-06-19 23:37:47 -07:00
parent ce140662a0
commit d704d6f0ed
2 changed files with 20 additions and 10 deletions

View File

@@ -4111,7 +4111,8 @@ input[type="submit"].btn.btn-mini {
display: inline; display: inline;
} }
.pagination a { .pagination a,
.pagination span {
float: left; float: left;
padding: 0 14px; padding: 0 14px;
line-height: 34px; line-height: 34px;
@@ -4121,11 +4122,13 @@ input[type="submit"].btn.btn-mini {
} }
.pagination a:hover, .pagination a:hover,
.pagination .active a { .pagination .active a,
.pagination .active span {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.pagination .active a { .pagination .active a,
.pagination .active span {
color: #999999; color: #999999;
cursor: default; cursor: default;
} }
@@ -4138,14 +4141,16 @@ input[type="submit"].btn.btn-mini {
background-color: transparent; background-color: transparent;
} }
.pagination li:first-child a { .pagination li:first-child a,
.pagination li:first-child span {
border-left-width: 1px; border-left-width: 1px;
-webkit-border-radius: 3px 0 0 3px; -webkit-border-radius: 3px 0 0 3px;
-moz-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px;
border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px;
} }
.pagination li:last-child a { .pagination li:last-child a,
.pagination li:last-child span {
-webkit-border-radius: 0 3px 3px 0; -webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0;
border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0;

View File

@@ -16,7 +16,8 @@
.pagination li { .pagination li {
display: inline; display: inline;
} }
.pagination a { .pagination a,
.pagination span {
float: left; float: left;
padding: 0 14px; padding: 0 14px;
line-height: (@baseLineHeight * 2) - 2; line-height: (@baseLineHeight * 2) - 2;
@@ -25,10 +26,12 @@
border-left-width: 0; border-left-width: 0;
} }
.pagination a:hover, .pagination a:hover,
.pagination .active a { .pagination .active a,
.pagination .active span {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.pagination .active a { .pagination .active a,
.pagination .active span {
color: @grayLight; color: @grayLight;
cursor: default; cursor: default;
} }
@@ -39,11 +42,13 @@
background-color: transparent; background-color: transparent;
cursor: default; cursor: default;
} }
.pagination li:first-child a { .pagination li:first-child a,
.pagination li:first-child span {
border-left-width: 1px; border-left-width: 1px;
.border-radius(3px 0 0 3px); .border-radius(3px 0 0 3px);
} }
.pagination li:last-child a { .pagination li:last-child a,
.pagination li:last-child span {
.border-radius(0 3px 3px 0); .border-radius(0 3px 3px 0);
} }