@import "../global/reset";

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.row {
  @extend .flex;
  flex-direction: row;
}

.wrap {
  flex-wrap: wrap;
}

.col {
  @extend .flex;
  flex-direction: column;
}

.content-start {
  justify-content: flex-start;
}

.content-end {
  justify-content: flex-end;
}

.content-between {
  justify-content: space-between;
}

.content-around {
  justify-content: space-around;
}

//相对交轴对齐方式
.cross-start {
  align-items: flex-start;
}

.cross-end {
  align-items: flex-end;
}

.cross-stretch {
  align-items: stretch;
}

//单个子元素相对容器对齐方式
.cell-start {
  align-self: flex-start;
}

.cell-end {
  align-self: flex-end;
}

.cell-stretch {
  align-self: stretch;
}

@for $i from 1 through 5 {
  .cell-#{$i} {
    flex-grow: $i;
    text-align: center;
  }
}

.h-match {
  height: 100%;
}

.w-match {
  width: 100%;
}

.match {
  width: 100%;
  height: 100%;
}

.cell-scroll-y {
  height: 100%;
  overflow-y: auto;
}

.cell-scroll-x {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

@for $i from 1 through 20 {
  .basic-#{$i} {
    flex-basis: $i*5%;
  }
}


