Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markotto@twitter.com>2012-03-12 08:21:51 +0400
committerMark Otto <markotto@twitter.com>2012-03-12 08:21:51 +0400
commitee5d2ec91aab9ec086b57a21059617355639b32c (patch)
treed5b779245ade0e1534e4f4aefdce4e0fb1d69477 /less/mixins.less
parentc8f4325c192f97e9c8d09e7d8ad3059be694fc4c (diff)
add block level input mixin for border-box box-sizing
Diffstat (limited to 'less/mixins.less')
-rw-r--r--less/mixins.less13
1 files changed, 12 insertions, 1 deletions
diff --git a/less/mixins.less b/less/mixins.less
index 8ff5efe503..b01a32b43f 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -107,6 +107,7 @@
white-space: nowrap;
}
+
// FONTS
// --------------------------------------------------
@@ -142,9 +143,19 @@
}
-// Form field states (used in forms.less)
+// FORMS
// --------------------------------------------------
+// Block level inputs
+.input-block-level {
+ display: block;
+ width: 100%;
+ min-height: 28px; /* Make inputs at least the height of their button counterpart */
+ /* Makes inputs behave like true block-level elements */
+ .box-sizing(border-box);
+}
+
+
// Mixin for form field states
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
// Set the text color