1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Remove checkbox/radio toggle from button plugin in favor of a CSS only solution

This commit is contained in:
Martijn Cuppens
2020-05-02 11:11:24 +02:00
committed by Mark Otto
parent 1b2ea5efb1
commit 1a0a0858ef
10 changed files with 122 additions and 317 deletions

View File

@@ -24,12 +24,14 @@
text-decoration: if($link-hover-decoration == underline, none, null);
}
&:focus,
&.focus {
.btn-toggle:focus + &,
&:focus {
outline: 0;
box-shadow: $btn-focus-box-shadow;
}
.btn-toggle:checked + &,
.btn-toggle:active + &,
&:active,
&.active {
@include box-shadow($btn-active-box-shadow);
@@ -81,8 +83,7 @@
text-decoration: $link-hover-decoration;
}
&:focus,
&.focus {
&:focus {
text-decoration: $link-hover-decoration;
}