diff options
| author | Mark Otto <[email protected]> | 2012-03-11 21:21:51 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-03-11 21:21:51 -0700 |
| commit | ee5d2ec91aab9ec086b57a21059617355639b32c (patch) | |
| tree | d5b779245ade0e1534e4f4aefdce4e0fb1d69477 /less/mixins.less | |
| parent | c8f4325c192f97e9c8d09e7d8ad3059be694fc4c (diff) | |
| download | bootstrap-ee5d2ec91aab9ec086b57a21059617355639b32c.tar.xz bootstrap-ee5d2ec91aab9ec086b57a21059617355639b32c.zip | |
add block level input mixin for border-box box-sizing
Diffstat (limited to 'less/mixins.less')
| -rw-r--r-- | less/mixins.less | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/less/mixins.less b/less/mixins.less index 8ff5efe50..b01a32b43 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 |
