// .text-monospace {
//   font-family: $--font-family-monospace !important;
// }

// Alignment

/// 让文字折行
.text-wrap {
  white-space: normal !important;
}

/// 防止文字折行
.text-nowrap {
  white-space: nowrap !important;
}

/// 保留空白符序列，但是正常地进行换行。
.text-pre-wrap {
  white-space: pre-wrap;
}

/// 对于较长的内容，你可以通过添加 .text-truncate 类将文本截断并添加省略号。 但必须是 display: inline-block 或 display: block 类型。
.text-truncate {
  @include text-truncate();
}

// Responsive alignment
.text-left {
  text-align: left !important;
}
.text-right {
  text-align: right !important;
}
.text-center {
  text-align: center !important;
}
.text-justify {
  text-align: justify !important;
}

// Transformation

.text-lowercase {
  text-transform: lowercase !important;
}
.text-uppercase {
  text-transform: uppercase !important;
}
.text-capitalize {
  text-transform: capitalize !important;
}

@each $k, $v in $--font-sizes {
  .font-size-#{$k} {
    font-size: #{$v} !important;
  }
}

@each $k, $v in $--font-weights {
  .font-weight-#{$k} {
    font-weight: $v !important;
  }
}

// text-decoration

.text-decoration-none {
  text-decoration: none !important;
}
.text-decoration-line-through {
  text-decoration: line-through !important;
}
.text-decoration-overline {
  text-decoration: overline !important;
}
.text-decoration-underline {
  text-decoration: underline !important;
}

// 单词中断
.text-break {
  word-break: break-word !important; // IE & < Edge 18
  overflow-wrap: break-word !important;
}
.text-break-all {
  word-break: break-all !important; // IE & < Edge 18
  overflow-wrap: break-word !important;
}

// Reset

.text-reset {
  color: inherit !important;
}

// colors
@each $k, $v in $--text-colors {
  .#{$k} {
    color: #{$v};
  }
}
