////
/// 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;
}

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

@mixin indicator($color, $condensed:false) {
  border: solid 2px $color;
  background-color: rgba($color, .25);
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;

  @if $condensed {
    width: .5rem;
    height: .5rem;
    border-width: 1px;
  }
}

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

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