////
/// Common mixins to be shared by many components
////

/// Truncates text
@mixin truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// Clips text
@mixin clip {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

/// Add a colored border on the specified side of a table cell
@mixin grid-cell-status($side, $color) {
  border-#{$side}: $ec-border-width * 4 solid $color !important;
}

@mixin flex-grow {
  flex: 1 1;
  min-height: 0;
  min-width: 0;
}

@mixin indicator($color) {
  background-color: $color;
  display: block;
  width: rem-calc(6px);
  height: rem-calc(6px);
  border-radius: 50%;
}

@mixin ul-reset {
  padding: 0;
  margin: 0;
  list-style: none;
}

@mixin count-display {
  color: $ec-color-accent;
  font-size: rem-calc(32px);
  font-style: normal;
  font-weight: bold;
  line-height: 1;
}