Sha256: 89c683b8d1d1be5f7bb943ab8c67d16cf7f76c6f93b84c471520db1b7ef8c7c3

Contents?: true

Size: 1.4 KB

Versions: 246

Compression:

Stored size: 1.4 KB

Contents

@import "../tokens/border_radius";
@import "../tokens/colors";
@import "../tokens/typography";
@import "../tokens/opacity";
@import "../pb_icon/icon";

$pb_icon_circle_sizes: (
  "xs":   28px,
  "sm":   38px,
  "md":   60px,
  "base": 60px,
  "lg":   80px,
  "xl":   100px,
);

[class^=pb_icon_circle_kit] {
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: cover;
  overflow: hidden;
  position: relative;
// font-family set to sans-serif ONLY for emojis.
//Needed to fix misalignment issue caused by Proxima font
  .icon_circle_emoji {
    font-family: monospace;
  }

  i,
  svg {
    &[class^=pb_icon_kit] {
      width: 100%;
      height: 100%;
      display: block;
      text-align: center;
      text-transform: uppercase;
      position: relative;
      z-index: 0;
    }
  }

  @each $name, $size in $pb_icon_circle_sizes {
    &[class*=_#{$name}] {
      width: $size;
      height: $size;
      border-radius: $size/2;
      background: $silver;
      color: $text_lt_light;
      font-size: $size * 0.38;
      line-height: $size;
      flex-shrink: 0;
      flex-grow: 0;
      flex-basis: $size;
    }
  }

  @each $color_name, $color_value in $colors {
    &[class*=_#{$color_name}] {
      color: $color_value;
      background: rgba(mix($bg_dark, $color_value, 10%), $opacity_1);
      &.dark {
        background: rgba(mix($bg_dark, $color_value, 10%), $opacity_2);
      }
    }
  }
}

Version data entries

246 entries across 246 versions & 1 rubygems

Version Path
playbook_ui-13.18.0.pre.alpha.dependabotnpmandyarnreactrouterdom62212196 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.dependabotnpmandyarntypescripteslintparser56202194 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.PLAY12062192 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.useexactnodejsversionghactions2183 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.useexactnodejsversionghactions2181 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.useexactnodejsversionghactions2180 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.useexactnodejsversionghactions2179 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2178 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.PLAY12062177 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2176 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.dependabotnpmandyarnpowerhomeplaybookicons001alpha52175 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.dependabotnpmandyarnpowerhomeplaybookicons001alpha52174 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2173 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2159 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.17.0.pre.alpha.nodealphaupgrade2157 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.18.0 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2130 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.16.0.pre.alpha.PLAY12002127 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.16.0.pre.alpha.powercentrainplaybookpt22125 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2107 app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss