2017-12-18 09:48:04 +00:00
|
|
|
|
|
|
|
.button-ios {
|
|
|
|
min-height: $button-ios-height
|
|
|
|
}
|
|
|
|
|
|
|
|
// Light buttons color.
|
|
|
|
.button-ios-light {
|
|
|
|
color: color($colors, primary, base);
|
|
|
|
}
|
|
|
|
|
2017-12-29 17:05:52 +00:00
|
|
|
.col[align-self-stretch] .card-ios {
|
|
|
|
height: calc(100% - #{($card-ios-margin-end + $card-ios-margin-start)});
|
|
|
|
}
|
|
|
|
|
2017-12-28 11:55:54 +00:00
|
|
|
.bar-buttons core-context-menu .button-clear-ios {
|
|
|
|
color: $toolbar-ios-button-color;
|
|
|
|
}
|
2017-12-18 09:48:04 +00:00
|
|
|
|
2018-01-24 10:35:49 +00:00
|
|
|
.item-ios ion-spinner[item-start],
|
|
|
|
.item-ios ion-spinner[item-end] {
|
|
|
|
@include margin($item-ios-padding-icon-top, null, $item-ios-padding-icon-bottom, 0);
|
|
|
|
}
|
|
|
|
|
2018-01-24 14:39:05 +00:00
|
|
|
@each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
|
|
|
|
.ios .core-#{$color-name}-card {
|
|
|
|
@extend .card-ios ;
|
|
|
|
@extend .card-content-ios;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-31 08:12:59 +00:00
|
|
|
.ios .core-avoid-header ion-content {
|
|
|
|
top: $navbar-ios-height;
|
|
|
|
height: calc(100% - #{($navbar-ios-height)});
|
|
|
|
}
|
|
|
|
|
2017-12-18 09:48:04 +00:00
|
|
|
// Highlights inside the input element.
|
2017-12-29 17:05:52 +00:00
|
|
|
@if ($core-text-input-ios-show-highlight) {
|
2017-12-18 09:48:04 +00:00
|
|
|
.card-ios, .list-ios {
|
|
|
|
// In order to get a 2px border we need to add an inset
|
|
|
|
// box-shadow 1px (this is to avoid the div resizing)
|
|
|
|
|
|
|
|
// The last item in a list has a border on the item, not the
|
|
|
|
// inner item, so add it to the item itself
|
|
|
|
.item-input.item-input-has-focus:last-child,
|
|
|
|
.item-input.input-has-focus:last-child {
|
|
|
|
@include ios-input-highlight($text-input-ios-highlight-color);
|
|
|
|
|
|
|
|
.item-inner ion-input {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Show the focus highlight when the input has focus
|
|
|
|
.item-input.ng-valid.item-input-has-value:not(.input-has-focus):not(.item-input-has-focus):last-child,
|
|
|
|
.item-input.ng-valid.input-has-value:not(.input-has-focus):not(.item-input-has-focus):last-child {
|
|
|
|
@include ios-input-highlight($text-input-ios-highlight-color-valid);
|
|
|
|
|
|
|
|
.item-inner ion-input {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.item-input.ng-invalid.ng-touched:not(.input-has-focus):not(.item-input-has-focus):last-child {
|
|
|
|
@include ios-input-highlight($text-input-ios-highlight-color-invalid);
|
|
|
|
|
|
|
|
.item-inner ion-input {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.item-ios.item-input {
|
|
|
|
.item-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.item-block .item-inner ion-input {
|
|
|
|
border-bottom: $hairlines-width solid $list-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO remove all uses of input-has-focus in v4
|
|
|
|
&.item-input-has-focus .item-inner ion-input,
|
|
|
|
&.input-has-focus .item-inner ion-input {
|
|
|
|
@include ios-input-highlight($text-input-ios-highlight-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Show the valid highlight when it has the .ng-valid class and a value
|
|
|
|
&.ng-valid.item-input-has-value:not(.input-has-focus):not(.item-input-has-focus) .item-inner ion-input,
|
|
|
|
&.ng-valid.input-has-value:not(.input-has-focus):not(.item-input-has-focus) .item-inner ion-input {
|
|
|
|
@include ios-input-highlight($text-input-ios-highlight-color-valid);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Show the invalid highlight when it has the invalid class and has been touched
|
|
|
|
&.ng-invalid.ng-touched:not(.input-has-focus):not(.item-input-has-focus) .item-inner ion-input {
|
|
|
|
@include ios-input-highlight($text-input-ios-highlight-color-invalid);
|
|
|
|
}
|
|
|
|
}
|
2017-12-28 11:55:54 +00:00
|
|
|
}
|