mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
refactor(cssClass): update/cleanup css class usage
This commit is contained in:
@ -8,12 +8,12 @@ $input-label-ios-color: #7f7f7f !default;
|
||||
.list,
|
||||
ion-card {
|
||||
|
||||
.text-input {
|
||||
[text-input] {
|
||||
margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom ($item-ios-padding-left / 2);
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ion-input[inset] .text-input {
|
||||
ion-input[inset] [text-input] {
|
||||
margin: ($item-ios-padding-top / 2) $item-ios-padding-right ($item-ios-padding-bottom / 2) $item-ios-padding-left;
|
||||
padding: ($item-ios-padding-top / 2) ($item-ios-padding-right / 2) ($item-ios-padding-bottom / 2) ($item-ios-padding-left / 2);
|
||||
}
|
||||
@ -28,8 +28,8 @@ ion-card {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
[stacked-label] .text-input,
|
||||
[floating-label] .text-input {
|
||||
[stacked-label] [text-input],
|
||||
[floating-label] [text-input] {
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ $input-label-md-color: #999 !default;
|
||||
.list,
|
||||
ion-card {
|
||||
|
||||
.text-input {
|
||||
[text-input] {
|
||||
margin: $item-md-padding-top ($item-md-padding-right / 2) $item-md-padding-bottom ($item-md-padding-left / 2);
|
||||
padding: 0;
|
||||
}
|
||||
@ -19,7 +19,7 @@ ion-card {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
ion-input[inset] .text-input {
|
||||
ion-input[inset] [text-input] {
|
||||
margin: ($item-md-padding-top / 2) $item-md-padding-right ($item-md-padding-bottom / 2) $item-md-padding-left;
|
||||
padding: ($item-md-padding-top / 2) ($item-md-padding-right / 2) ($item-md-padding-bottom / 2) ($item-md-padding-left / 2);
|
||||
}
|
||||
@ -48,8 +48,8 @@ ion-card {
|
||||
color: $text-input-highlight-color;
|
||||
}
|
||||
|
||||
[stacked-label] .text-input,
|
||||
[floating-label] .text-input {
|
||||
[stacked-label] [text-input],
|
||||
[floating-label] [text-input] {
|
||||
margin-bottom: 8px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user