diff options
author | Volpeon <git@volpeon.ink> | 2024-06-25 11:11:05 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-06-25 11:11:05 +0200 |
commit | b566769679473b91d2f63406fba7cc3b44c4fcc1 (patch) | |
tree | 24fe359c8922bc250ad8cce8cba688d5c8c72235 /src/objects/_checkbox.scss | |
parent | Fix button style (diff) | |
download | iro-design-b566769679473b91d2f63406fba7cc3b44c4fcc1.tar.gz iro-design-b566769679473b91d2f63406fba7cc3b44c4fcc1.tar.bz2 iro-design-b566769679473b91d2f63406fba7cc3b44c4fcc1.zip |
Update
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); |