From 2fba53e600a796995f07e96c53c11ed22bfe8e06 Mon Sep 17 00:00:00 2001 From: DaSch Date: Fri, 14 Feb 2014 13:56:36 +0100 Subject: add posibillity to hover links and not background in list-groups --- less/list-group.less | 1 + less/variables.less | 1 + 2 files changed, 2 insertions(+) (limited to 'less') diff --git a/less/list-group.less b/less/list-group.less index 3343f8e5e..d645f2900 100644 --- a/less/list-group.less +++ b/less/list-group.less @@ -62,6 +62,7 @@ a.list-group-item { &:hover, &:focus { text-decoration: none; + color: @list-group-link-hover-color; background-color: @list-group-hover-bg; } diff --git a/less/variables.less b/less/variables.less index 3846adc59..fcbadd73b 100644 --- a/less/variables.less +++ b/less/variables.less @@ -654,6 +654,7 @@ @list-group-active-text-color: lighten(@list-group-active-bg, 40%); @list-group-link-color: #555; +@list-group-link-hover-color: @list-group-link-color; @list-group-link-heading-color: #333; -- cgit v1.2.3 From ca15add174fdd8507699e1ab18591ecb037b4396 Mon Sep 17 00:00:00 2001 From: Demian Ferreiro Date: Wed, 19 Feb 2014 16:45:28 -0300 Subject: Fix UAs required message position on grouped radio buttons Instead of not rendering the element at all with display:none, use opacity:0 and z-index:-1 so the radio element has a defined position on the document and user agents can show the required message in the right place. --- less/button-groups.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'less') diff --git a/less/button-groups.less b/less/button-groups.less index 27eb796b8..afeb70716 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -222,5 +222,7 @@ // Checkbox and radio options [data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { - display: none; + opacity: 0; + position: absolute; + z-index: -1; } -- cgit v1.2.3 From e180258b60c04c7d365f60cebdc1593be39d683d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 6 Mar 2014 23:50:55 -0800 Subject: Comment for #12794 --- less/button-groups.less | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'less') diff --git a/less/button-groups.less b/less/button-groups.less index afeb70716..ff95b0474 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -220,9 +220,17 @@ // Checkbox and radio options +// +// In order to support the browser's form validation feedback, powered by the +// `required` attribute, we have to "hide" the inputs via `opacity`. We cannot +// use `display: none;` or `visibility: hidden;` as that also hides the popover. +// This way, we ensure a DOM element is visible to position the popover from. +// +// See https://github.com/twbs/bootstrap/pull/12794 for more. + [data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { - opacity: 0; position: absolute; z-index: -1; + opacity: 0; } -- cgit v1.2.3 From 164b41b28d2921ed19652095b483d3eaa8d00b1a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 7 Mar 2014 00:19:26 -0800 Subject: Fixes #12937: Darken active button states just a smidge more --- less/mixins.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index 9a3fdd3ac..bccb91607 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -530,7 +530,7 @@ &.active, .open .dropdown-toggle& { color: @color; - background-color: darken(@background, 8%); + background-color: darken(@background, 10%); border-color: darken(@border, 12%); } &:active, -- cgit v1.2.3