From 7dd72d83fab7394dee7326c0a6214374ec796ff6 Mon Sep 17 00:00:00 2001 From: Jitendra Vyas Date: Thu, 5 Feb 2015 13:28:22 +0530 Subject: Removed visibility: hidden !important from .hidden class This .hidden was taken from HTML 5 Boilerplate and yesterday we discussed on twitter that visibility: hidden !important can be removed now. https://twitter.com/jitendravyas/status/562940090553733121 --- less/utilities.less | 1 - 1 file changed, 1 deletion(-) (limited to 'less') diff --git a/less/utilities.less b/less/utilities.less index a26031214..7a8ca27a8 100644 --- a/less/utilities.less +++ b/less/utilities.less @@ -44,7 +44,6 @@ .hidden { display: none !important; - visibility: hidden !important; } -- cgit v1.2.3 From 9c3e7e5861e6ba200a75bf4a63d0e5be0ef9f608 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sat, 28 Feb 2015 15:41:55 +0000 Subject: iOS fix for role="button" elements; [fixes #15935] Fixes "clickability" issue (and more generally, the firing of events such as focus as well) for traditionally non-focusable elements with role="button" (see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile) Fixes #15935 --- less/scaffolding.less | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'less') diff --git a/less/scaffolding.less b/less/scaffolding.less index 2a40fbcbe..532ca92d0 100644 --- a/less/scaffolding.less +++ b/less/scaffolding.less @@ -148,3 +148,14 @@ hr { clip: auto; } } + + +// iOS "clickable elements" fix for role="button" +// +// Fixes "clickability" issue (and more generally, the firing of events such as focus as well) +// for traditionally non-focusable elements with role="button" +// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile + +[role="button"] { + cursor: pointer; +} \ No newline at end of file -- cgit v1.2.3 From fd35779f0e15df27a8a05459a000d84320d8bb00 Mon Sep 17 00:00:00 2001 From: Heinrich Fenkart Date: Sun, 1 Mar 2015 10:01:14 +0100 Subject: Input group sizes: Properly position `.form-control-feedback` Ref https://github.com/twbs/bootstrap/issues/12868#issuecomment-76291513 Ref 7733f24 --- less/forms.less | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 8bfbc4ba6..69bdd9849 100644 --- a/less/forms.less +++ b/less/forms.less @@ -144,7 +144,7 @@ output { background-color: @input-bg-disabled; opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655 } - + &[disabled], fieldset[disabled] & { cursor: @cursor-disabled; @@ -376,12 +376,14 @@ input[type="checkbox"] { text-align: center; pointer-events: none; } -.input-lg + .form-control-feedback { +.input-lg + .form-control-feedback, +.input-group-lg + .form-control-feedback { width: @input-height-large; height: @input-height-large; line-height: @input-height-large; } -.input-sm + .form-control-feedback { +.input-sm + .form-control-feedback, +.input-group-sm + .form-control-feedback { width: @input-height-small; height: @input-height-small; line-height: @input-height-small; -- cgit v1.2.3 From 9bbc0d76f5009645f8a8cc2f78c7e0e88ab0b1f9 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Mon, 2 Mar 2015 14:36:36 +0000 Subject: Add upstream patch comment --- less/scaffolding.less | 1 + 1 file changed, 1 insertion(+) (limited to 'less') diff --git a/less/scaffolding.less b/less/scaffolding.less index 532ca92d0..47b1d5a1a 100644 --- a/less/scaffolding.less +++ b/less/scaffolding.less @@ -155,6 +155,7 @@ hr { // Fixes "clickability" issue (and more generally, the firing of events such as focus as well) // for traditionally non-focusable elements with role="button" // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile +// Upstream patch for normalize.css submitted: https://github.com/necolas/normalize.css/pull/379 - remove this fix once that is merged [role="button"] { cursor: pointer; -- cgit v1.2.3 From f5beebe726aa8c1810015d8c62931f4559b49664 Mon Sep 17 00:00:00 2001 From: Heinrich Fenkart Date: Tue, 24 Feb 2015 01:00:04 +0100 Subject: Modal: Fix backdrop not readjusting when height changes Fixes #15136. Closes #15345. Closes #15314. Refs #14724, #14927. --- less/modals.less | 4 +++- less/variables.less | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'less') diff --git a/less/modals.less b/less/modals.less index 032a497d6..1de622050 100644 --- a/less/modals.less +++ b/less/modals.less @@ -62,10 +62,12 @@ // Modal background .modal-backdrop { - position: absolute; + position: fixed; top: 0; right: 0; + bottom: 0; left: 0; + z-index: @zindex-modal-background; background-color: @modal-backdrop-bg; // Fade for backdrop &.fade { .opacity(0); } diff --git a/less/variables.less b/less/variables.less index a647983eb..b5fb9d02c 100644 --- a/less/variables.less +++ b/less/variables.less @@ -269,7 +269,8 @@ @zindex-popover: 1060; @zindex-tooltip: 1070; @zindex-navbar-fixed: 1030; -@zindex-modal: 1040; +@zindex-modal-background: 1040; +@zindex-modal: 1050; //== Media queries breakpoints -- cgit v1.2.3 From b6b0fe7d22c1dccb83541f4d78fdbdf40bef2157 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 9 Mar 2015 01:39:43 -0700 Subject: rm `visibility` where redundant to `display` Refs #15755 --- less/component-animations.less | 3 +-- less/navbar.less | 1 - less/navs.less | 2 -- less/tooltip.less | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) (limited to 'less') diff --git a/less/component-animations.less b/less/component-animations.less index 967715d98..0bcee910a 100644 --- a/less/component-animations.less +++ b/less/component-animations.less @@ -17,9 +17,8 @@ .collapse { display: none; - visibility: hidden; - &.in { display: block; visibility: visible; } + &.in { display: block; } tr&.in { display: table-row; } tbody&.in { display: table-row-group; } } diff --git a/less/navbar.less b/less/navbar.less index 0c835030e..6d751bb9c 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -67,7 +67,6 @@ &.collapse { display: block !important; - visibility: visible !important; height: auto !important; padding-bottom: 0; // Override default setting overflow: visible !important; diff --git a/less/navs.less b/less/navs.less index f26fec7a5..a3d11b136 100644 --- a/less/navs.less +++ b/less/navs.less @@ -223,11 +223,9 @@ .tab-content { > .tab-pane { display: none; - visibility: hidden; } > .active { display: block; - visibility: visible; } } diff --git a/less/tooltip.less b/less/tooltip.less index 3ebfdcdff..9d5684743 100644 --- a/less/tooltip.less +++ b/less/tooltip.less @@ -8,7 +8,6 @@ position: absolute; z-index: @zindex-tooltip; display: block; - visibility: visible; // Reset font and text properties given new insertion method font-family: @font-family-base; font-size: @font-size-small; -- cgit v1.2.3 From a3b6c9072c3d62316f21c0be405b81121d71cdf9 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Tue, 10 Mar 2015 20:16:10 +0000 Subject: Remove trailing whitespace in forms.less --- less/forms.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 8bfbc4ba6..e4b50629e 100644 --- a/less/forms.less +++ b/less/forms.less @@ -144,7 +144,7 @@ output { background-color: @input-bg-disabled; opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655 } - + &[disabled], fieldset[disabled] & { cursor: @cursor-disabled; -- cgit v1.2.3 From c26ffd43c39e2b6b31c67ba7f40c56d9caff8743 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 17 Mar 2015 10:24:31 -0700 Subject: Only disable pointer-events on disabled btns; fixes #16088 doesn't support the `[disabled]` attribute, so `a.btn.disabled` simulates it using `pointer-events: none`. However, this is unnecessary for