diff options
| author | Roberto - phproberto <[email protected]> | 2012-07-11 01:31:44 +0200 |
|---|---|---|
| committer | Roberto - phproberto <[email protected]> | 2012-07-11 01:31:44 +0200 |
| commit | f0ed383e51f4513273bd96636d5c630f792e08e9 (patch) | |
| tree | 9deee1ef6c292945a8484f8a0b2a4ca9cc87389e /less/forms.less | |
| parent | 83846ba0d629a3882e727ccc7b64684507206cce (diff) | |
| parent | 713105774fcccf1250a7555b47483b578cf82eb6 (diff) | |
| download | bootstrap-f0ed383e51f4513273bd96636d5c630f792e08e9.tar.xz bootstrap-f0ed383e51f4513273bd96636d5c630f792e08e9.zip | |
Merge branch '2.1.0-wip' of https://github.com/twitter/bootstrap into respclasses
Diffstat (limited to 'less/forms.less')
| -rw-r--r-- | less/forms.less | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/less/forms.less b/less/forms.less index 63ee05751..ddadab8ca 100644 --- a/less/forms.less +++ b/less/forms.less @@ -22,7 +22,7 @@ legend { display: block; width: 100%; padding: 0; - margin-bottom: @baseLineHeight * 1.5; + margin-bottom: @baseLineHeight; font-size: @baseFontSize * 1.5; line-height: @baseLineHeight * 2; color: @grayDark; @@ -290,8 +290,18 @@ textarea[class*="span"], // GRID SIZING FOR INPUTS // ---------------------- +// Grid sizes #grid > .input(@gridColumnWidth, @gridGutterWidth); +// Control row for multiple inputs per line +.controls-row { + .clearfix(); // Clear the float from controls +} +.controls-row [class*="span"] { + float: left; // Float to collapse white-space for proper grid alignment +} + + // DISABLED STATE @@ -389,8 +399,8 @@ select:focus:required:invalid { // ------------ // Allow us to put symbols and text within the input field for a cleaner look -.input-prepend, -.input-append { +.input-append, +.input-prepend { margin-bottom: 5px; font-size: 0; white-space: nowrap; // Prevent span and input from separating @@ -479,15 +489,34 @@ select:focus:required:invalid { // SEARCH FORM // ----------- -input.search-query { +.search-query { padding-right: 14px; padding-right: 4px \9; padding-left: 14px; padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */ - margin-bottom: 0; // remove the default margin on all inputs + margin-bottom: 0; // Remove the default margin on all inputs .border-radius(14px); } +/* Allow for input prepend/append in search forms */ +.form-search .input-append .search-query, +.form-search .input-prepend .search-query { + .border-radius(0); // Override due to specificity +} +.form-search .input-append .search-query { + .border-radius(14px 0 0 14px) +} +.form-search .input-append .btn { + .border-radius(0 14px 14px 0) +} +.form-search .input-prepend .search-query { + .border-radius(0 14px 14px 0) +} +.form-search .input-prepend .btn { + .border-radius(14px 0 0 14px) +} + + // HORIZONTAL & VERTICAL FORMS |
