aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-12-22 19:28:29 -0800
committerMark Otto <[email protected]>2014-12-22 19:28:29 -0800
commitc41970c5797cd1c3b61a5396031a3258c9c07705 (patch)
tree7174bb5ab97e8d853888dd52de39432ff87c1a7b /less/forms.less
parentc4a23cc04063443a8f02c5451c3d30a81728caba (diff)
downloadbootstrap-c41970c5797cd1c3b61a5396031a3258c9c07705.tar.xz
bootstrap-c41970c5797cd1c3b61a5396031a3258c9c07705.zip
Fixes #15422: Alternate fix for temporal input sizing in input groups
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less22
1 files changed, 10 insertions, 12 deletions
diff --git a/less/forms.less b/less/forms.less
index f37d1c8f8..d2ea45036 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -178,18 +178,16 @@ input[type="search"] {
input[type="datetime-local"],
input[type="month"] {
line-height: @input-height-base;
- }
- input[type="date"].input-sm,
- input[type="time"].input-sm,
- input[type="datetime-local"].input-sm,
- input[type="month"].input-sm {
- line-height: @input-height-small;
- }
- input[type="date"].input-lg,
- input[type="time"].input-lg,
- input[type="datetime-local"].input-lg,
- input[type="month"].input-lg {
- line-height: @input-height-large;
+
+ &.input-sm,
+ .input-group-sm & {
+ line-height: @input-height-small;
+ }
+
+ &.input-lg,
+ .input-group-lg & {
+ line-height: @input-height-large;
+ }
}
}