aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-05-09 17:20:46 -0700
committerMark Otto <[email protected]>2013-05-09 17:20:46 -0700
commit6fba68eb8b036fad1bc4f33484889cccf2480bff (patch)
tree8fed10d5c153265d13033c68226578ef56b9c9c0 /less/forms.less
parent7b6352d2cf6f04b46918b1cc8bad50ff92fdbe07 (diff)
downloadbootstrap-6fba68eb8b036fad1bc4f33484889cccf2480bff.tar.xz
bootstrap-6fba68eb8b036fad1bc4f33484889cccf2480bff.zip
Unitless line-height
* Instead of 20px as @line-height-base, use 1.5 * Update typographic scale for headings to use unitless as well--required some twerking of decimals a bit and some rounding * Introduce new @line-height-computed value, which takes base font-size and multiplies it by 1.5, for use in padding and margin on components
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less12
1 files changed, 6 insertions, 6 deletions
diff --git a/less/forms.less b/less/forms.less
index 6b3bff728..4a99a7793 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -20,9 +20,9 @@ legend {
display: block;
width: 100%;
padding: 0;
- margin-bottom: @line-height-base;
+ margin-bottom: @line-height-computed;
font-size: (@font-size-base * 1.5);
- line-height: (@line-height-base * 2);
+ line-height: @line-height-headings;
color: @gray-dark;
border: 0;
border-bottom: 1px solid #e5e5e5;
@@ -170,7 +170,7 @@ textarea {
.radio,
.checkbox {
display: block;
- min-height: @line-height-base; // clear the floating input if there is no label text
+ min-height: @line-height-computed; // clear the floating input if there is no label text
margin-top: 10px;
margin-bottom: 10px;
padding-left: 20px;
@@ -320,9 +320,9 @@ select:focus:invalid {
// ------------
.form-actions {
- padding: (@line-height-base - 1) 20px @line-height-base;
- margin-top: @line-height-base;
- margin-bottom: @line-height-base;
+ padding: @line-height-computed 20px;
+ margin-top: @line-height-computed;
+ margin-bottom: @line-height-computed;
background-color: @form-actions-bg;
border-top: 1px solid #e5e5e5;
.clearfix(); // Adding clearfix to allow for .pull-right button containers