mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +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,12 +5,14 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
:host {
|
||||
font-family: $segment-md-font-family;
|
||||
|
||||
color: $segment-button-md-text-color;
|
||||
|
||||
font-family: $segment-md-font-family;
|
||||
}
|
||||
|
||||
:host(.ion-color) {
|
||||
// TODO can we remove important here
|
||||
/* stylelint-disable-next-line declaration-no-important */
|
||||
color: #{current-color(base)} !important;
|
||||
}
|
||||
|
||||
@ -20,7 +22,6 @@
|
||||
|
||||
:host(.segment-disabled) {
|
||||
opacity: $segment-md-opacity-disabled;
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@ -32,24 +33,24 @@
|
||||
--padding-end: #{$segment-button-md-padding-end};
|
||||
--padding-bottom: #{$segment-button-md-padding-bottom};
|
||||
--padding-start: #{$segment-button-md-padding-start};
|
||||
|
||||
--background: transparent;
|
||||
--border-color: #{$segment-button-md-border-bottom-color};
|
||||
--border-width: #{0 0 $segment-button-md-border-bottom-width 0};
|
||||
--border-style: solid;
|
||||
--opacity: #{$segment-button-md-opacity};
|
||||
--transition: #{$segment-button-md-transition};
|
||||
|
||||
--icon-size: #{$segment-button-md-icon-size};
|
||||
|
||||
height: $segment-button-md-height;
|
||||
|
||||
color: inherit;
|
||||
|
||||
font-size: $segment-button-md-font-size;
|
||||
font-weight: $segment-button-md-font-weight;
|
||||
line-height: $segment-button-md-line-height;
|
||||
text-transform: uppercase;
|
||||
|
||||
color: inherit;
|
||||
line-height: $segment-button-md-line-height;
|
||||
|
||||
text-transform: uppercase;
|
||||
|
||||
opacity: $segment-button-md-opacity;
|
||||
}
|
||||
@ -59,9 +60,9 @@
|
||||
|
||||
::slotted(.activated),
|
||||
::slotted(.segment-checked) {
|
||||
opacity: $segment-button-md-opacity-activated;
|
||||
|
||||
--border-color: currentColor;
|
||||
|
||||
opacity: $segment-button-md-opacity-activated;
|
||||
}
|
||||
|
||||
// Disabled Segment Button
|
||||
@ -69,6 +70,5 @@
|
||||
|
||||
::slotted(.segment-button-disabled) {
|
||||
opacity: $segment-button-md-opacity-disabled;
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
Reference in New Issue
Block a user