From c27585098278c3629377de5fc5948e1d8fddb9ae Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 22 Dec 2014 14:57:40 -0800 Subject: Remove reference to old fixed WebKit bug in Less comment. Per https://github.com/twbs/bootstrap/issues/1969#issuecomment-36971094 [skip sauce] [skip validator] --- less/forms.less | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index 085d9d47c..c57c2beb0 100644 --- a/less/forms.less +++ b/less/forms.less @@ -461,8 +461,7 @@ input[type="checkbox"] { } // Remove default margin on radios/checkboxes that were used for stacking, and - // then undo the floating of radios and checkboxes to match (which also avoids - // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969). + // then undo the floating of radios and checkboxes to match. .radio, .checkbox { display: inline-block; -- cgit v1.2.3 From e5051e76feaeafb0b999b0b2662f0c2669c48d10 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 22 Dec 2014 15:02:34 -0800 Subject: Reference iOS Safari temporal input bug in explanatory Less comment Refs #11266, #13098, #15415 [skip sauce] [skip validator] --- less/forms.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index c57c2beb0..f37d1c8f8 100644 --- a/less/forms.less +++ b/less/forms.less @@ -170,7 +170,7 @@ input[type="search"] { // In Mobile Safari, setting `display: block` on temporal inputs causes the // text within the input to become vertically misaligned. As a workaround, we // set a pixel line-height that matches the given height of the input, but only -// for Safari. +// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848 @media screen and (-webkit-min-device-pixel-ratio: 0) { input[type="date"], -- cgit v1.2.3 From 15c9c3aef7f047c9cce45fd33ada799e99fbd390 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 22 Dec 2014 16:54:50 -0800 Subject: add more refs to browser-related bugs in Less comments --- less/forms.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index f37d1c8f8..d1e29b118 100644 --- a/less/forms.less +++ b/less/forms.less @@ -143,7 +143,7 @@ output { fieldset[disabled] & { cursor: @cursor-disabled; background-color: @input-bg-disabled; - opacity: 1; // iOS fix for unreadable disabled content + opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655 } // Reset height for `textarea`s -- cgit v1.2.3 From c41970c5797cd1c3b61a5396031a3258c9c07705 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 22 Dec 2014 19:28:29 -0800 Subject: Fixes #15422: Alternate fix for temporal input sizing in input groups --- less/forms.less | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'less/forms.less') 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; + } } } -- cgit v1.2.3 From dbffb0b47f573097ec2a0500720accb6aeeab72e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 15 Jan 2015 16:03:13 -0800 Subject: Fixes #15536, #15559: Add .form-group sizing support to .form-control-static --- less/forms.less | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index bf15cc8a9..c45d6bdff 100644 --- a/less/forms.less +++ b/less/forms.less @@ -318,6 +318,12 @@ input[type="checkbox"] { .form-control { .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small); } + .form-control-static { + height: @input-height-small; + padding: @padding-small-vertical @padding-small-horizontal; + font-size: @font-size-small; + line-height: @line-height-small; + } } .input-lg { @@ -327,6 +333,12 @@ input[type="checkbox"] { .form-control { .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large); } + .form-control-static { + height: @input-height-large; + padding: @padding-large-vertical @padding-large-horizontal; + font-size: @font-size-large; + line-height: @line-height-large; + } } -- cgit v1.2.3 From 85a6595a716fa6549383356e75c2091bfdfee585 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 16 Jan 2015 11:02:51 -0800 Subject: .form-control: add note about s in some browsers, due to the limited stylability of