2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

add ie7 inline block mixin and add ability to center pagination

This commit is contained in:
Mark Otto
2011-12-27 15:51:36 -06:00
parent fec02f5045
commit 3426877c89
4 changed files with 24 additions and 4 deletions
+6
View File
@@ -25,6 +25,12 @@
margin-right: auto;
}
// IE7 inline-block
.ie7-inline-block() {
*display: inline; /* IE7 inline-block hack */
*zoom: 1;
}
// Sizing shortcuts
.size(@height: 5px, @width: 5px) {
width: @width;
+7 -1
View File
@@ -5,7 +5,8 @@
height: @baseLineHeight * 2;
margin: @baseLineHeight 0;
ul {
float: left;
display: inline-block;
.ie7-inline-block();
margin: 0;
border: 1px solid #ddd;
border: 1px solid rgba(0,0,0,.15);
@@ -37,4 +38,9 @@
.next a {
border: 0;
}
// Centered
&.centered {
text-align: center;
}
}