Sha256: ee275f6602ea08a999856056564c126d97622d0c2116338cd7b926f98ee6438b

Contents?: true

Size: 1.53 KB

Versions: 1411

Compression:

Stored size: 1.53 KB

Contents

@import "../tokens/spacing";
@import "../tokens/colors";
@import "../tokens/typography";
@import "../tokens/screen_sizes"; // $nspace-xs:  4px;

@mixin pb_list {
  ol,
  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  ol {
    counter-reset: list-counter;

    li:before {
      content: counter(list-counter);
      counter-increment: list-counter;
      display: block;
      width: 20px;
      flex: 0 0 20px;
      text-align: left;
      color: $text_lt_lighter;
      font-weight: $bold;
      margin-right: $space-sm;
    }
  }

  li {
    border-bottom: 1px solid $border_light;
    padding: $space-sm 0;
    display: flex;
    align-items: left;

    &:last-child {
      border-bottom: 0;
    }
  }
}
@mixin pb_list_layout_grid {
  display: grid;
  grid-template: auto / repeat(12,1fr);
  align-items: center;
}
@mixin pb_list_layout_left {
  @include pb_list_layout_grid;

  :nth-child(odd) {
    grid-column: 1 / 1;
  }

  :nth-child(even) {
    grid-column: 2 / -1;
    text-align: left;
  }
}
@mixin pb_list_layout_right {
  @include pb_list_layout_grid;

  :nth-child(odd) {
    grid-column: 1 / -2;
  }

  :nth-child(even) {
    grid-column: -1;
    text-align: right;
  }
}
@mixin pb_list_dark {
  color: $white;
  border-bottom: 1px solid $border_dark;

  &:last-child {
    border-bottom: 0;
  }

  &:before {
    color: $text_dk_light;
  }
}
@mixin pb_list_large {
  padding: $space-lg 0;
}
@mixin pb_list_x_padding {
  padding-left: $space-md;
  padding-right: $space-md;
}
@mixin pb_list_borderless {
  border-bottom: 0;
}

Version data entries

1,411 entries across 1,411 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_list/_list_mixin.scss
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_list/_list_mixin.scss