2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Set border-box globally instead

This commit is contained in:
Mark Otto
2013-03-10 13:24:07 -05:00
parent 6e8ee02421
commit d219b8b964
6 changed files with 16 additions and 19 deletions
-1
View File
@@ -87,7 +87,6 @@
width: 100%;
padding-left: 0;
padding-right: 0;
.box-sizing(border-box);
}
// Vertically space out multiple block buttons
-1
View File
@@ -55,7 +55,6 @@ input[type="search"],
input[type="tel"],
input[type="color"] {
display: inline-block;
.box-sizing(border-box); // Makes inputs behave like true block-level elements
min-height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
padding: 6px 9px;
// margin-bottom: @line-height-base / 2;
-4
View File
@@ -18,10 +18,6 @@
min-height: 1px;
padding-left: @grid-gutter-width / 2;
padding-right: @grid-gutter-width / 2;
// Proper box-model (padding doesn't add to width)
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
// Responsive: Tablets and up
-1
View File
@@ -62,7 +62,6 @@
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
background-color: @progress-bar-bg;
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
.box-sizing(border-box);
.transition(width .6s ease);
}
+10
View File
@@ -3,6 +3,16 @@
// --------------------------------------------------
// Reset the box-sizing
// -------------------------
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
// Body reset
// -------------------------