////
/// @group helpers
////

/// Text truncate
/// Requires inline-block or block for proper styling
/// @since 0.1.0
@mixin text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


// ## Alignment

/// Justified text alignment
/// @since 0.1.0
.text-justify {
  @include important(text-align, justify);
}

/// Stop text from wrapping
/// @since 0.1.0
.text-nowrap {
  @include important(white-space, nowrap);
}

/// Truncate text with an ellipsis.
/// Requires inline-block or block for proper styling
/// @since 0.1.0
.text-truncate {
  @include text-truncate;
}

/// Align text left
/// @since 0.1.0
.text-left {
  @include important(text-align, left);
}

/// Align text right
/// @since 0.1.0
.text-center {
  @include important(text-align, center);
}

/// Align text right
/// @since 0.1.0
.text-right {
  @include important(text-align, right);
}

// TODO: Responsive text alignment


// ## Transformation

/// Lowercase text
/// @since 0.1.0
.text-lowercase {
  @include important(text-transform, lowercase);
}

/// Uppercase text
/// @since 0.1.0
.text-uppercase {
  @include important(text-transform, uppercase);
}

/// Capitalized text
/// @since 0.0.1
.text-capitalize {
  @include important(text-transform, capitalize);
}


// ## Font weight/italics

/// Normal font weight
/// @since 0.1.0
.font-weight-normal {
  font-weight: normal;
}

/// Bold font weight
/// @since 0.1.0
.font-weight-bold {
  font-weight: bold;
}

/// Italic font style
/// @since 0.1.0
.font-italic {
  font-style: italic;
}

/// Quick left float
/// @since 0.1.0
.left {
  float: left;
}

/// Quick right float
/// @since 0.1.0
.right {
  float: right;
}


/// Set and element to display as block and align
/// centrally via auto left/right margins
/// @since 0.1.0
@mixin center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/// Set and element to display as block and align
/// centrally via auto left/right margins
/// @since 0.1.0
.center-block {
  @include center-block;
}
