Sha256: 254b1d109fd13e639de686f2046c819fceede4e230b2d6ff949e11c40fe11d80

Contents?: true

Size: 856 Bytes

Versions: 4

Compression:

Stored size: 856 Bytes

Contents

@import "../tokens/colors";

[class^=pb_distribution_bar] {
  $bar_colors: map-values($data_colors);
  $small_bar: 8px;
  $large_bar: 36px;
  display: flex;
  border-radius: $large_bar;
  overflow: auto;
  .pb_distribution_width {
    height: 100%;
    display: inline-block;
    @each $name, $color in $data_colors {
      &:nth-child(#{length($data_colors)}n+#{index(($data_colors), ($name $color))}) {
        background-color: $color;
      }
      &.color_#{$name} {
        background-color: $color !important;
      }
    }
    &:first-child {
      border-top-left-radius: $large_bar;
      border-bottom-left-radius: $large_bar;
    }
    &:last-child {
      border-top-right-radius: $large_bar;
      border-bottom-right-radius: $large_bar;
    }
  }
  &[class*=_sm] {
    height: $small_bar;
  }
  &[class*=_lg] {
    height: $large_bar;
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.scss
playbook_ui-7.16.0 app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.scss
playbook_ui-7.15.1 app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.scss
playbook_ui-7.15.0 app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.scss