Files
Brandy Carney 32f24f0b19 refactor(text-input): changed text-input references to item-input
cleaned up main text-input Sass file references #689
2015-12-08 16:01:25 -05:00

62 lines
1.5 KiB
SCSS

@import "../../../globals.ios";
@import "../label";
@import "../text-input";
// iOS Text Input
// --------------------------------------------------
$text-input-ios-background-color: $list-ios-background-color !default;
$text-input-ios-label-color: #7f7f7f !default;
.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] .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);
}
ion-label {
margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0;
color: $text-input-ios-label-color;
}
ion-label + .item-input {
margin-left: $item-ios-padding-left;
}
[stacked-label] ion-label {
font-size: 1.2rem;
margin-bottom: 4px;
}
[stacked-label] .item-input,
[floating-label] .item-input {
margin-left: 0;
margin-top: 8px;
margin-bottom: 8px;
}
[floating-label] ion-label {
margin-bottom: 0;
transform-origin: left top;
transform: translate3d(0, 27px, 0);
transition: transform 150ms ease-in-out;
}
[floating-label].input-focused ion-label,
[floating-label].input-has-value ion-label {
transform: translate3d(0, 0, 0) scale(0.8);
}
@each $color-name, $color-value in $colors-ios {
ion-label[#{$color-name}] {
color: $color-value !important;
}
}