Sha256: df4495dda5ee8845246fba08a011adf45077b3b72917a1bca0f0ce6c0fa55d9f

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

// Generate a two-color caret for any element.
@mixin double-caret($background: var(--color-bg-primary), $border: var(--color-border-primary)) {
  &::after,
  &::before {
    position: absolute;
    top: 11px;
    right: 100%;
    left: -8px;
    display: block;
    width: 8px;
    height: 16px;
    pointer-events: none;
    content: " ";
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
  }

  &::after {
    margin-left: 1px;
    background-color: var(--color-bg-primary);
    background-image: linear-gradient($background, $background);
  }

  &::before {
    background-color: $border;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
primery-0.1.0 _sass/@primer/css/support/mixins/misc.scss