mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
refactor(sass): remove deprecated variables and rules
references ionic-team/stencil#16
This commit is contained in:
@ -25,9 +25,6 @@ $segment-button-md-opacity-activated: 1 !default;
|
||||
/// @prop - Opacity of the disabled segment button
|
||||
$segment-button-md-opacity-disabled: .3 !default;
|
||||
|
||||
// deprecated
|
||||
$segment-button-md-padding: null !default;
|
||||
|
||||
/// @prop - Padding top of the segment button
|
||||
$segment-button-md-padding-top: 0 !default;
|
||||
|
||||
@ -81,9 +78,7 @@ $segment-button-md-icon-line-height: $segment-button-md-line-height !d
|
||||
opacity: $segment-button-md-opacity;
|
||||
transition: 100ms all linear;
|
||||
|
||||
@include deprecated-variable(padding, $segment-button-md-padding) {
|
||||
@include padding($segment-button-md-padding-top, $segment-button-md-padding-end, $segment-button-md-padding-bottom, $segment-button-md-padding-start);
|
||||
}
|
||||
@include padding($segment-button-md-padding-top, $segment-button-md-padding-end, $segment-button-md-padding-bottom, $segment-button-md-padding-start);
|
||||
|
||||
ion-icon {
|
||||
font-size: $segment-button-md-icon-size;
|
||||
|
@ -10,9 +10,6 @@ $segment-button-wp-background-color: transparent !default;
|
||||
/// @prop - Text color of the activated segment button
|
||||
$segment-button-wp-text-color-activated: $toolbar-wp-text-color !default;
|
||||
|
||||
// deprecated
|
||||
$segment-button-wp-padding: null !default;
|
||||
|
||||
/// @prop - Padding top of the segment button
|
||||
$segment-button-wp-padding-top: 0 !default;
|
||||
|
||||
@ -76,9 +73,7 @@ $segment-button-wp-buttons-justify-content: flex-start !default;
|
||||
background-color: $segment-button-wp-background-color;
|
||||
opacity: $segment-button-wp-opacity;
|
||||
|
||||
@include deprecated-variable(padding, $segment-button-wp-padding) {
|
||||
@include padding($segment-button-wp-padding-top, $segment-button-wp-padding-end, $segment-button-wp-padding-bottom, $segment-button-wp-padding-start);
|
||||
}
|
||||
@include padding($segment-button-wp-padding-top, $segment-button-wp-padding-end, $segment-button-wp-padding-bottom, $segment-button-wp-padding-start);
|
||||
|
||||
&.segment-activated {
|
||||
opacity: $segment-button-wp-opacity-activated;
|
||||
|
Reference in New Issue
Block a user