diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2020-05-02 12:11:24 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2020-06-16 05:04:19 +0300 |
commit | 1a0a0858efa0e1e3c6bebd38058df8ad39ca27a5 (patch) | |
tree | 7135351b96e14bda512d175af447eb9201ea737c /scss/_buttons.scss | |
parent | 1b2ea5efb1ca3cea21776bc9992a79aee47fba1a (diff) |
Remove checkbox/radio toggle from button plugin in favor of a CSS only solution
Diffstat (limited to 'scss/_buttons.scss')
-rw-r--r-- | scss/_buttons.scss | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scss/_buttons.scss b/scss/_buttons.scss index 47f7fec141..67c70de3b1 100644 --- a/scss/_buttons.scss +++ b/scss/_buttons.scss @@ -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; } |