Sha256: b3f609b9b3c82596d3b7bdc0885e1708f158834df0737428f4643269489f7367

Contents?: true

Size: 1.74 KB

Versions: 3

Compression:

Stored size: 1.74 KB

Contents

// <ul>
.ActionList {
  padding: $spacer-2;
}

// full bleed
.ActionList--full {
  padding: 0;
}

// nested list within main ActionList
.ActionList--subGroup {
  padding: 0;
}

// dividers

.ActionList--divided {
  .ActionList-item-label::before {
    position: absolute;
    top: -$actionList-item-padding-vertical;
    display: block;
    width: 100%;
    height: 1px;
    content: '';
    background: var(--color-action-list-item-inline-divider);
  }

  // if descriptionWrap--inline exists, move pseudo divider to wrapper
  .ActionList-item-descriptionWrap--inline {
    &::before {
      position: absolute;
      top: -$actionList-item-padding-vertical;
      display: block;
      width: 100%;
      height: $border-width;
      content: '';
      background: var(--color-action-list-item-inline-divider);
    }

    // unset the default label pseudo
    .ActionList-item-label::before {
      content: unset;
    }
  }

  // hide divider if item is active
  .ActionList-item--navActive {
    // stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
    .ActionList-item-label::before,
    + .ActionList-item .ActionList-item-label::before {
      visibility: hidden;
    }
  }
}

// hide if item is first of type with label::before, or is the first item after a sectionDivider
.ActionList-item:first-of-type .ActionList-item-label::before,
.ActionList-sectionDivider + .ActionList-item .ActionList-item-label::before {
  visibility: hidden;
}

// hide if item is first of type with label::before, or is the first item after a sectionDivider
.ActionList-item:first-of-type .ActionList-item-descriptionWrap--inline::before,
.ActionList-sectionDivider + .ActionList-item .ActionList-item-descriptionWrap--inline::before {
  visibility: hidden;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-v4-theme-primer-0.11.0 _sass/@primer/css/actionlist/action-list.scss
jekyll-v4-theme-primer-0.10.0 _sass/@primer/css/actionlist/action-list.scss
jekyll-v4-theme-primer-0.9.0 _sass/@primer/css/actionlist/action-list.scss