Files
Brandy Carney 4e375242c6 fix(select): make select full width when with a stacked/floating label
if it is with a floating label, the label will stay stacked instead of
floating

closes #5715
2016-03-09 16:21:35 -05:00

61 lines
1006 B
SCSS

@import "../../globals.core";
// Label
// --------------------------------------------------
ion-label {
display: block;
font-size: inherit;
white-space: nowrap;
margin: 0;
flex: 1;
text-overflow: ellipsis;
overflow: hidden;
}
.item-input ion-label {
max-width: 200px;
flex: initial;
pointer-events: none;
}
[text-wrap] ion-label {
white-space: normal;
}
// Stacked & Floating Inputs
// --------------------------------------------------
ion-label[fixed] {
flex: 0 0 100px;
width: 100px;
min-width: 100px;
max-width: 200px;
}
ion-label[stacked],
ion-label[floating] {
align-self: stretch;
margin-bottom: 0;
max-width: 100%;
flex-basis: 100%;
width: auto;
}
.item-label-stacked .input-wrapper,
.item-label-floating .input-wrapper {
flex: 1;
flex-direction: column;
}
.item-label-stacked ion-select,
.item-label-floating ion-select {
width: 100%;
max-width: 100%;
}
.item-select ion-label[floating] {
transform: translate3d(0, 0, 0) scale(0.8);
}