aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-06-19 15:24:24 -0700
committerMark Otto <[email protected]>2014-06-19 15:24:24 -0700
commita4fa8d07c8679628d50d66b239874078735897f1 (patch)
treed8c782a1679e692506a5982da4d8083d49b4d351 /less
parent9488bd58f90c8435c20dd4e596244d10f8b698fa (diff)
parent00cc166671a4ecfe3284662db14c8bf151de5bb5 (diff)
downloadbootstrap-a4fa8d07c8679628d50d66b239874078735897f1.tar.xz
bootstrap-a4fa8d07c8679628d50d66b239874078735897f1.zip
grunt dist
Diffstat (limited to 'less')
-rw-r--r--less/forms.less25
1 files changed, 25 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index 2f629b0a1..ab23e68a3 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -507,4 +507,29 @@ input[type="checkbox"] {
top: 0;
right: (@grid-gutter-width / 2);
}
+
+ // Form group sizes
+ //
+ // Quick utility class for applying `.input-lg` and `.input-sm` styles to the
+ // inputs and labels within a `.form-group`.
+ .form-group-lg {
+ @media (min-width: @screen-sm-min) {
+ .control-label {
+ padding-top: ((@padding-large-vertical * @line-height-large) + 1);
+ }
+ }
+ .form-control {
+ &:extend(.input-lg);
+ }
+ }
+ .form-group-sm {
+ @media (min-width: @screen-sm-min) {
+ .control-label {
+ padding-top: (@padding-small-vertical + 1);
+ }
+ }
+ .form-control {
+ &:extend(.input-sm);
+ }
+ }
}