2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03: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
+5 -4
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;
}