mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
fix(checkbox): get css variable customization working better
also fixes a bug where transition wasn’t working
This commit is contained in:
@ -6,22 +6,22 @@
|
||||
|
||||
:host {
|
||||
--size: #{$checkbox-ios-icon-size};
|
||||
|
||||
// Border
|
||||
--border-radius: #{$checkbox-ios-icon-border-radius};
|
||||
--border-width: #{$checkbox-ios-icon-border-width};
|
||||
--border-style: #{$checkbox-ios-icon-border-style};
|
||||
--unchecked-border-color: #{$checkbox-ios-icon-border-color-off};
|
||||
--unchecked-background: #{$checkbox-ios-background-color-off};
|
||||
--border-color: #{$checkbox-ios-icon-border-color-off};
|
||||
|
||||
// Background
|
||||
--background: #{$checkbox-ios-background-color-off};
|
||||
}
|
||||
|
||||
// iOS Checkbox Inner Checkmark: Checked
|
||||
// -----------------------------------------
|
||||
|
||||
.checkbox-inner {
|
||||
@include position(
|
||||
calc(var(--size) / 6),
|
||||
null, null,
|
||||
calc(var(--size) / 2.5 - 1px)
|
||||
);
|
||||
@include position(calc(var(--size) / 6), null, null, calc(var(--size) / 2.5 - 1px));
|
||||
|
||||
position: absolute;
|
||||
|
||||
|
Reference in New Issue
Block a user