Sha256: 52c32ed70ab9a76cf6c5f38ce64664c8a5847d13fb44ccdf93a4f852e6b8c7ef

Contents?: true

Size: 779 Bytes

Versions: 747

Compression:

Stored size: 779 Bytes

Contents

@import "../tokens/colors";

$pb_online_status_size: 10px;
$pb_online_status_border: 2px;

$pb_online_status_statuses: (
  online: $success,
  away: $warning,
  offline: $neutral,
);

@mixin pb_online_status($background: $neutral) {
  &.dark {
    border-color: $bg_dark;
  }
  width: $pb_online_status_size;
  height: $pb_online_status_size;
  flex-basis: $pb_online_status_size;
  flex-grow: 0;
  flex-shrink: 0;
  border-width: $pb_online_status_border;
  border-color: $white;
  border-style: solid;
  border-radius: 50%;
  background: $background;
}

@mixin pb_online_status_away {
  @include pb_online_status($warning);
}

@mixin pb_online_status_online {
  @include pb_online_status($success);
}

@mixin pb_online_status_offline {
  @include pb_online_status($neutral);
}

Version data entries

747 entries across 747 versions & 1 rubygems

Version Path
playbook_ui-13.21.0.pre.alpha.PLAY12582531 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PLAY12582516 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PLAY12582515 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PLAY12582514 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.22.0 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PBNTR243globalpositioningpropinset2504 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PLAY12652489 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PLAY12582474 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2466 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PLAY120322465 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PBNTR225advancedtablefeedback2438 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.PBNTR238DatePickerYearBug2436 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2431 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2415 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2404 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2403 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.20.0.pre.alpha.PLAY12572402 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
playbook_ui-13.21.0 app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss