mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
chore(stylelint): remove sass-lint/scss-lint in favor of stylelint
- remove scss-lint and sass-lint - add stylelint and stylelint-order packages and configuration - update all *.scss files to new syntax fixes #14805
This commit is contained in:
committed by
Cam Wiegert
parent
771c47f109
commit
7a8d5f68d2
@ -5,6 +5,9 @@
|
||||
// -----------------------------------------
|
||||
|
||||
:host {
|
||||
--checked-background: #{current-color(base, $toggle-md-track-background-color-alpha-on)};
|
||||
--checked-knob: #{current-color(base)};
|
||||
|
||||
@include padding($toggle-md-padding-top, $toggle-md-padding-end, $toggle-md-padding-bottom, $toggle-md-padding-start);
|
||||
|
||||
box-sizing: content-box;
|
||||
@ -15,9 +18,6 @@
|
||||
height: $toggle-md-track-height;
|
||||
|
||||
contain: strict;
|
||||
|
||||
--checked-background: #{current-color(base, $toggle-md-track-background-color-alpha-on)};
|
||||
--checked-knob: #{current-color(base)};
|
||||
}
|
||||
|
||||
|
||||
@ -27,16 +27,15 @@
|
||||
.toggle-icon {
|
||||
@include border-radius($toggle-md-track-height);
|
||||
|
||||
position: relative;
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
background-color: $toggle-md-track-background-color-off;
|
||||
|
||||
transition: background-color $toggle-md-transition-duration;
|
||||
|
||||
background-color: $toggle-md-track-background-color-off;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@ -53,15 +52,13 @@
|
||||
width: $toggle-md-handle-width;
|
||||
height: $toggle-md-handle-height;
|
||||
|
||||
background-color: $toggle-md-handle-background-color-off;
|
||||
|
||||
box-shadow: $toggle-md-handle-box-shadow;
|
||||
|
||||
transition-duration: $toggle-md-transition-duration;
|
||||
transition-property: transform, background-color;
|
||||
|
||||
will-change: transform, background-color;
|
||||
background-color: $toggle-md-handle-background-color-off;
|
||||
|
||||
box-shadow: $toggle-md-handle-box-shadow;
|
||||
will-change: transform, background-color;
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
@ -88,7 +85,6 @@
|
||||
|
||||
:host(.toggle-disabled) {
|
||||
opacity: $toggle-md-disabled-opacity;
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user