diff options
| author | Mark Otto <[email protected]> | 2013-08-02 15:09:48 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-02 15:09:48 -0700 |
| commit | 173dac4e54281312ebb7ff993df20caffbc56840 (patch) | |
| tree | 8011e9b50ad58a40c7ab55106cb4637202d2767b /less/variables.less | |
| parent | 7cd54e52f2d731fcf08cd2508a45417637fba4d9 (diff) | |
| download | bootstrap-173dac4e54281312ebb7ff993df20caffbc56840.tar.xz bootstrap-173dac4e54281312ebb7ff993df20caffbc56840.zip | |
Tighten up buttons and form controls
* Smaller padding on buttons and large buttons
* Same with inputs and large inputs
* Remove about 10px from height of large inputs/buttons and 4px from
regular ones
Fixes #8707 and #8700.
(Also relevant: #8711)
Diffstat (limited to 'less/variables.less')
| -rw-r--r-- | less/variables.less | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/less/variables.less b/less/variables.less index 71e813d32..a869ce960 100644 --- a/less/variables.less +++ b/less/variables.less @@ -60,15 +60,18 @@ // ------------------------- // Based on 14px font-size and 1.428 line-height (~20px to start) -@padding-base-vertical: 8px; +@padding-base-vertical: 6px; @padding-base-horizontal: 12px; -@padding-large-vertical: 14px; +@padding-large-vertical: 10px; @padding-large-horizontal: 16px; @padding-small-vertical: 5px; @padding-small-horizontal: 10px; +@line-height-large: 1.33; +@line-height-small: 1.5; + @border-radius-base: 4px; @border-radius-large: 6px; @border-radius-small: 3px; @@ -132,8 +135,8 @@ @input-color-placeholder: @gray-light; @input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2); -@input-height-large: (ceil(@font-size-large * @line-height-base) + (@padding-large-vertical * 2) + 2); -@input-height-small: (ceil(@font-size-small * @line-height-base) + (@padding-small-vertical * 2) + 2); +@input-height-large: (floor(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2); +@input-height-small: (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2); @legend-border-color: #e5e5e5; |
