mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
refactor(scss): remove deprecated variables
references ionic-team/stencil#16
This commit is contained in:
@ -22,9 +22,6 @@ $radio-ios-icon-border-style: solid !default;
|
||||
/// @prop - Opacity of the disabled radio
|
||||
$radio-ios-disabled-opacity: .3 !default;
|
||||
|
||||
// deprecated
|
||||
$radio-ios-item-left-margin: null !default;
|
||||
|
||||
/// @prop - Margin top of the item-start in a radio
|
||||
$radio-ios-item-start-margin-top: 8px !default;
|
||||
|
||||
@ -37,9 +34,6 @@ $radio-ios-item-start-margin-bottom: 8px !default;
|
||||
/// @prop - Margin start of the item-start in a radio
|
||||
$radio-ios-item-start-margin-start: 3px !default;
|
||||
|
||||
// deprecated
|
||||
$radio-ios-item-right-margin: null !default;
|
||||
|
||||
/// @prop - Margin top of the item-end in a radio
|
||||
$radio-ios-item-end-margin-top: $item-ios-padding-media-top !default;
|
||||
|
||||
@ -103,15 +97,10 @@ $radio-ios-item-end-margin-start: ($item-ios-padding-start / 2) !default;
|
||||
position: static;
|
||||
display: block;
|
||||
|
||||
@include deprecated-variable(margin, $radio-ios-item-right-margin) {
|
||||
@include margin($radio-ios-item-end-margin-top, $radio-ios-item-end-margin-end, $radio-ios-item-end-margin-bottom, $radio-ios-item-end-margin-start);
|
||||
}
|
||||
@include margin($radio-ios-item-end-margin-top, $radio-ios-item-end-margin-end, $radio-ios-item-end-margin-bottom, $radio-ios-item-end-margin-start);
|
||||
|
||||
&[item-left], // deprecated
|
||||
&[item-start] {
|
||||
@include deprecated-variable(margin, $radio-ios-item-left-margin) {
|
||||
@include margin($radio-ios-item-start-margin-top, $radio-ios-item-start-margin-end, $radio-ios-item-start-margin-bottom, $radio-ios-item-start-margin-start);
|
||||
}
|
||||
@include margin($radio-ios-item-start-margin-top, $radio-ios-item-start-margin-end, $radio-ios-item-start-margin-bottom, $radio-ios-item-start-margin-start);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -34,9 +34,6 @@ $radio-md-transition-easing: cubic-bezier(.4, 0, .2, 1) !default;
|
||||
/// @prop - Opacity of the disabled radio
|
||||
$radio-md-disabled-opacity: .3 !default;
|
||||
|
||||
// deprecated
|
||||
$radio-md-item-left-margin: null !default;
|
||||
|
||||
/// @prop - Margin top of the item-start in a radio
|
||||
$radio-md-item-start-margin-top: 11px !default;
|
||||
|
||||
@ -49,9 +46,6 @@ $radio-md-item-start-margin-bottom: 10px !default;
|
||||
/// @prop - Margin start of the item-start in a radio
|
||||
$radio-md-item-start-margin-start: 4px !default;
|
||||
|
||||
// deprecated
|
||||
$radio-md-item-right-margin: null !default;
|
||||
|
||||
/// @prop - Margin top of the item-end in a radio
|
||||
$radio-md-item-end-margin-top: $item-md-padding-media-top !default;
|
||||
|
||||
@ -137,15 +131,10 @@ $radio-md-item-end-margin-start: 0 !default;
|
||||
position: static;
|
||||
display: block;
|
||||
|
||||
@include deprecated-variable(margin, $radio-md-item-right-margin) {
|
||||
@include margin($radio-md-item-end-margin-top, $radio-md-item-end-margin-end, $radio-md-item-end-margin-bottom, $radio-md-item-end-margin-start);
|
||||
}
|
||||
@include margin($radio-md-item-end-margin-top, $radio-md-item-end-margin-end, $radio-md-item-end-margin-bottom, $radio-md-item-end-margin-start);
|
||||
|
||||
&[item-left], // deprecated
|
||||
&[item-start] {
|
||||
@include deprecated-variable(margin, $radio-md-item-left-margin) {
|
||||
@include margin($radio-md-item-start-margin-top, $radio-md-item-start-margin-end, $radio-md-item-start-margin-bottom, $radio-md-item-start-margin-start);
|
||||
}
|
||||
@include margin($radio-md-item-start-margin-top, $radio-md-item-start-margin-end, $radio-md-item-start-margin-bottom, $radio-md-item-start-margin-start);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -31,9 +31,6 @@ $radio-wp-icon-border-radius: 50% !default;
|
||||
/// @prop - Opacity of the disabled radio
|
||||
$radio-wp-disabled-opacity: .3 !default;
|
||||
|
||||
// deprecated
|
||||
$radio-wp-item-left-margin: null !default;
|
||||
|
||||
/// @prop - Margin top of the item-start in a radio
|
||||
$radio-wp-item-start-margin-top: 9px !default;
|
||||
|
||||
@ -46,9 +43,6 @@ $radio-wp-item-start-margin-bottom: 9px !default;
|
||||
/// @prop - Margin start of the item-start in a radio
|
||||
$radio-wp-item-start-margin-start: 4px !default;
|
||||
|
||||
// deprecated
|
||||
$radio-wp-item-right-margin: null !default;
|
||||
|
||||
/// @prop - Margin top of the item-end in a radio
|
||||
$radio-wp-item-end-margin-top: 11px !default;
|
||||
|
||||
@ -138,17 +132,12 @@ $radio-wp-item-end-margin-start: 0 !default;
|
||||
|
||||
order: $radio-wp-order;
|
||||
|
||||
@include deprecated-variable(margin, $radio-wp-item-left-margin) {
|
||||
@include margin($radio-wp-item-start-margin-top, $radio-wp-item-start-margin-end, $radio-wp-item-start-margin-bottom, $radio-wp-item-start-margin-start);
|
||||
}
|
||||
@include margin($radio-wp-item-start-margin-top, $radio-wp-item-start-margin-end, $radio-wp-item-start-margin-bottom, $radio-wp-item-start-margin-start);
|
||||
|
||||
&[item-right], // deprecated
|
||||
&[item-end] {
|
||||
order: 0;
|
||||
|
||||
@include deprecated-variable(margin, $radio-wp-item-right-margin) {
|
||||
@include margin($radio-wp-item-end-margin-top, $radio-wp-item-end-margin-end, $radio-wp-item-end-margin-bottom, $radio-wp-item-end-margin-start);
|
||||
}
|
||||
@include margin($radio-wp-item-end-margin-top, $radio-wp-item-end-margin-end, $radio-wp-item-end-margin-bottom, $radio-wp-item-end-margin-start);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user