diff options
Diffstat (limited to 'src/objects/_checkbox.scss')
| -rw-r--r-- | src/objects/_checkbox.scss | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/objects/_checkbox.scss b/src/objects/_checkbox.scss index e56b10e..a254ec4 100644 --- a/src/objects/_checkbox.scss +++ b/src/objects/_checkbox.scss | |||
| @@ -49,16 +49,6 @@ | |||
| 49 | padding-block: fn.dim(--pad-b); | 49 | padding-block: fn.dim(--pad-b); |
| 50 | padding-inline: fn.dim(--pad-i); | 50 | padding-inline: fn.dim(--pad-i); |
| 51 | 51 | ||
| 52 | @include iro.bem-elem('bg') { | ||
| 53 | display: block; | ||
| 54 | position: absolute; | ||
| 55 | z-index: -1; | ||
| 56 | inset-block: 0; | ||
| 57 | inset-inline: 0; | ||
| 58 | border-radius: fn.dim(--rounding); | ||
| 59 | pointer-events: none; | ||
| 60 | } | ||
| 61 | |||
| 62 | @include iro.bem-elem('box') { | 52 | @include iro.bem-elem('box') { |
| 63 | display: block; | 53 | display: block; |
| 64 | position: relative; | 54 | position: relative; |
| @@ -125,7 +115,9 @@ | |||
| 125 | } | 115 | } |
| 126 | 116 | ||
| 127 | @include iro.bem-elem('native') { | 117 | @include iro.bem-elem('native') { |
| 118 | appearance: none; | ||
| 128 | position: absolute; | 119 | position: absolute; |
| 120 | z-index: -1; | ||
| 129 | inset-block-start: 0; | 121 | inset-block-start: 0; |
| 130 | inset-inline-start: 0; | 122 | inset-inline-start: 0; |
| 131 | inline-size: 100%; | 123 | inline-size: 100%; |
| @@ -133,7 +125,7 @@ | |||
| 133 | margin: 0; | 125 | margin: 0; |
| 134 | padding: 0; | 126 | padding: 0; |
| 135 | overflow: hidden; | 127 | overflow: hidden; |
| 136 | opacity: .0001; | 128 | border-radius: fn.dim(--rounding); |
| 137 | 129 | ||
| 138 | &:hover { | 130 | &:hover { |
| 139 | @include iro.bem-sibling-elem('label') { | 131 | @include iro.bem-sibling-elem('label') { |
| @@ -188,9 +180,7 @@ | |||
| 188 | } | 180 | } |
| 189 | 181 | ||
| 190 | &:focus-visible { | 182 | &:focus-visible { |
| 191 | @include iro.bem-sibling-elem('bg') { | 183 | background-color: fn.color(--key-focus --bg); |
| 192 | background-color: fn.color(--key-focus --bg); | ||
| 193 | } | ||
| 194 | 184 | ||
| 195 | @include iro.bem-sibling-elem('label') { | 185 | @include iro.bem-sibling-elem('label') { |
| 196 | color: fn.color(--key-focus --label); | 186 | color: fn.color(--key-focus --label); |
