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