mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
refactor(text-input): changed text-input references to item-input
cleaned up main text-input Sass file references #689
This commit is contained in:
@ -9,13 +9,13 @@ $text-input-ios-background-color: $list-ios-background-color !default;
|
||||
$text-input-ios-label-color: #7f7f7f !default;
|
||||
|
||||
|
||||
[text-input] {
|
||||
.item-input {
|
||||
margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0;
|
||||
padding: 0;
|
||||
background-color: $text-input-ios-background-color;
|
||||
}
|
||||
|
||||
ion-input[inset] [text-input] {
|
||||
ion-input[inset] .item-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);
|
||||
}
|
||||
@ -25,7 +25,7 @@ ion-label {
|
||||
color: $text-input-ios-label-color;
|
||||
}
|
||||
|
||||
ion-label + [text-input] {
|
||||
ion-label + .item-input {
|
||||
margin-left: $item-ios-padding-left;
|
||||
}
|
||||
|
||||
@ -34,8 +34,8 @@ ion-label + [text-input] {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
[stacked-label] [text-input],
|
||||
[floating-label] [text-input] {
|
||||
[stacked-label] .item-input,
|
||||
[floating-label] .item-input {
|
||||
margin-left: 0;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
|
@ -12,13 +12,13 @@ $text-input-md-hightlight-color-valid: map-get($colors-md, secondary) !defa
|
||||
$text-input-md-hightlight-color-invalid: map-get($colors-md, danger) !default;
|
||||
|
||||
|
||||
[text-input] {
|
||||
.item-input {
|
||||
margin: $item-md-padding-top ($item-md-padding-right / 2) $item-md-padding-bottom ($item-md-padding-left / 2);
|
||||
padding: 0;
|
||||
background-color: $text-input-md-background-color;
|
||||
}
|
||||
|
||||
ion-input[inset] [text-input] {
|
||||
ion-input[inset] .item-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);
|
||||
}
|
||||
@ -64,8 +64,8 @@ ion-input.ng-invalid.ng-touched:after {
|
||||
color: $text-input-md-highlight-color;
|
||||
}
|
||||
|
||||
[stacked-label] [text-input],
|
||||
[floating-label] [text-input] {
|
||||
[stacked-label] .item-input,
|
||||
[floating-label] .item-input {
|
||||
margin-bottom: 8px;
|
||||
margin-top: 8px;
|
||||
margin-left: 0;
|
||||
|
Reference in New Issue
Block a user