aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-06-20 13:24:14 -0700
committerMark Otto <[email protected]>2014-06-20 13:24:14 -0700
commite98fc373e3ef6e4a884a0142d50c765a9db5bd01 (patch)
treedb1c1471f97b507519be78da56204d9a7e75b6c4 /less/forms.less
parent34248437c3bc7278f912c9005d3fd4877b723d83 (diff)
downloadbootstrap-e98fc373e3ef6e4a884a0142d50c765a9db5bd01.tar.xz
bootstrap-e98fc373e3ef6e4a884a0142d50c765a9db5bd01.zip
Fixes #13872 more: add overrides for lg and sm input modifiers
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less34
1 files changed, 20 insertions, 14 deletions
diff --git a/less/forms.less b/less/forms.less
index 202cdfcc4..841762f4c 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -281,6 +281,26 @@ input[type="checkbox"] {
}
+// Static form control text
+//
+// Apply class to a `p` element to make any string of text align with labels in
+// a horizontal form layout.
+
+.form-control-static {
+ // Size it appropriately next to real form controls
+ padding-top: (@padding-base-vertical + 1);
+ padding-bottom: (@padding-base-vertical + 1);
+ // Remove default margin from `p`
+ margin-bottom: 0;
+
+ &.input-lg,
+ &.input-sm {
+ padding-left: 0;
+ padding-right: 0;
+ }
+}
+
+
// Form control sizing
//
// Build on `.form-control` with modifier classes to decrease or increase the
@@ -349,20 +369,6 @@ input[type="checkbox"] {
}
-// Static form control text
-//
-// Apply class to a `p` element to make any string of text align with labels in
-// a horizontal form layout.
-
-.form-control-static {
- // Size it appropriately next to real form controls
- padding-top: (@padding-base-vertical + 1);
- padding-bottom: (@padding-base-vertical + 1);
- // Remove default margin from `p`
- margin-bottom: 0;
-}
-
-
// Help text
//
// Apply to any element you wish to create light text for placement immediately