Sha256: bd45242efef4b1f3e80bdb2fc0f13ab81023efeca494e4bff47bc5678f449b7d

Contents?: true

Size: 590 Bytes

Versions: 3

Compression:

Stored size: 590 Bytes

Contents

/* Truncate */

.Truncate {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;

  & > .Truncate-text {
    min-width: 1ch;
    max-width: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    & + .Truncate-text {
      margin-left: var(--control-small-gap, 4px);
    }

    &.Truncate-text--primary {
      flex-basis: 200%;
    }

    &.Truncate-text--expandable:hover,
    &.Truncate-text--expandable:focus,
    &.Truncate-text--expandable:active {
      max-width: 100% !important;
      flex-shrink: 0;
      cursor: pointer;
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
primer_view_components-0.1.9 app/components/primer/beta/truncate.pcss
primer_view_components-0.1.8 app/components/primer/beta/truncate.pcss
primer_view_components-0.1.7 app/components/primer/beta/truncate.pcss