diff options
| author | Mark Otto <[email protected]> | 2014-03-07 00:23:52 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-07 00:23:52 -0800 |
| commit | c03b8f1f0ff090a1aef53704cbb2526bdbbfafbf (patch) | |
| tree | 1a9d45a79516db97d6db46c2ab172bb2f59f26c7 /less | |
| parent | cb7eb674accd24b6b73f26ef23cf4a301b6ebfaf (diff) | |
| parent | 6452b409aaaf837ba009cffb341cb287c315fe74 (diff) | |
| download | bootstrap-c03b8f1f0ff090a1aef53704cbb2526bdbbfafbf.tar.xz bootstrap-c03b8f1f0ff090a1aef53704cbb2526bdbbfafbf.zip | |
Merge branch 'master' into pr/12670
Diffstat (limited to 'less')
| -rw-r--r-- | less/button-groups.less | 12 | ||||
| -rw-r--r-- | less/list-group.less | 1 | ||||
| -rw-r--r-- | less/mixins.less | 2 | ||||
| -rw-r--r-- | less/variables.less | 1 |
4 files changed, 14 insertions, 2 deletions
diff --git a/less/button-groups.less b/less/button-groups.less index 27eb796b8..ff95b0474 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -220,7 +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"] { - display: none; + position: absolute; + z-index: -1; + opacity: 0; } diff --git a/less/list-group.less b/less/list-group.less index 9e3b1ef8e..2514389b1 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/mixins.less b/less/mixins.less index e394b8a1e..0abac7fbb 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -602,7 +602,7 @@ &.active, .open .dropdown-toggle& { color: @color; - background-color: darken(@background, 8%); + background-color: darken(@background, 10%); border-color: darken(@border, 12%); } &:active, diff --git a/less/variables.less b/less/variables.less index bdc719cb3..43d4efd00 100644 --- a/less/variables.less +++ b/less/variables.less @@ -662,6 +662,7 @@ @list-group-disabled-text-color: @list-group-disabled-color; @list-group-link-color: #555; +@list-group-link-hover-color: @list-group-link-color; @list-group-link-heading-color: #333; |
