@import "../../globals.core";

// Item
// --------------------------------------------------
// Core structure only, dimensions belong in specific modes


.item {
  display: flex;
  overflow: hidden;

  align-items: center;
  justify-content: space-between;

  margin: 0;
  padding: 0;

  width: 100%;
  min-height: 4.4rem;

  border: 0;

  font-weight: normal;
  line-height: normal;
  text-align: initial;
  text-decoration: none;
  color: inherit;
}

.item-inner {
  display: flex;
  overflow: hidden;

  flex: 1;
  flex-direction: inherit;
  align-items: inherit;
  align-self: stretch;

  margin: 0;
  padding: 0;

  min-height: inherit;

  border: 0;
}

.input-wrapper {
  display: flex;
  overflow: hidden;

  flex: 1;
  flex-direction: inherit;
  align-items: inherit;
  align-self: stretch;

  text-overflow: ellipsis;
}

.item[no-lines],
.item[no-lines] .item-inner {
  border: 0;
}

ion-item-group {
  display: block;
}

ion-item-divider {
  z-index: 1000;
  display: block;

  width: 100%;
  min-height: 30px;

  &[sticky] {
    position: sticky;
    top: 0;
  }
}

[vertical-align-top],
ion-input.item {
  align-items: flex-start;
}

@import "item-media";
@import "item-sliding";
