Sha256: 24cfedaf4a1acc079dd97ef62a7ea449f0831bc24ff2e60e67c6d330844b7275

Contents?: true

Size: 1.57 KB

Versions: 382

Compression:

Stored size: 1.57 KB

Contents

@import "../tokens/colors";
@import "../utilities/colors";
@import "../tokens/opacity";
@import "../pb_avatar/avatar";

$pb_multiple_users_overlap: -9px;
$pb_multiple_users_border_size: 1px;
$pb_multiple_users_size: map-get($avatar-sizes, "xs");
$pb_multiple_users_size_xxs: map-get($avatar-sizes, "xxs");

[class^=pb_multiple_users_kit] {
  display: inline-flex;

  .multiple_users_badge_xs,
  .multiple_users_badge_xxs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: $pb_multiple_users_size;
    height: $pb_multiple_users_size;
    border-radius: $pb_multiple_users_size / 2 + 2;
    background: tint($primary, 90%);
    border: $pb_multiple_users_border_size solid $white;
    color: $primary;
    font-weight: $bold;
    font-size: $font_smallest - 1;
  }

  .multiple_users_badge_xxs {
    width: $pb_multiple_users_size_xxs;
    height: $pb_multiple_users_size_xxs;
  }

  .pb_multiple_users_item {
    margin-left: $pb_multiple_users_overlap;
    margin-right: 0;

    &:first-of-type {
      margin-left: 0;
    }

    &.dark {
      .avatar_wrapper {
        border: $pb_multiple_users_border_size solid $bg_dark;
      }
    }

    .avatar_wrapper {
      border: $pb_multiple_users_border_size solid $white;
    }

    @each $item in [1, 2, 3, 4, 5] {
      &:nth-child(#{$item}) {
        z-index: #{$item - 1};
      }
    }
  }

  &[class*=_reverse] {
    flex-direction: row-reverse;

    .pb_multiple_users_item {
      margin-left: 0;
      margin-right: $pb_multiple_users_overlap;

      &:first-of-type {
        margin-right: 0;
      }
    }
  }
}

Version data entries

382 entries across 382 versions & 1 rubygems

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