Sha256: 7f937ba27ee531679369a1bfd26e263d8fbf5a839d390c7ef46e694ef13277d1

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

$rotate-list: (90, 180, 270);
$flip-list: (
  "horizontal": (-1, 1),
  "vertical": (1, -1),
  "both": (-1, -1)
);

@keyframes pb_icon_spin {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
};

svg {
  &.pb_icon_kit {
    @each $r in $rotate-list {
      &.rotate_#{$r} {
        transform: rotate(#{$r}deg);
      }
    }
    @each $f, $v in $flip-list {
      &.flip_#{$f} {
        transform: scale($v);
      }
    }
    &.pb_custom_icon path {
        fill: currentColor;
    }
    &.pulse {
      animation-name: pb_icon_spin;
      animation-direction: normal;
      animation-duration: 1s;
      animation-iteration-count: infinite;
      animation-timing-function: steps(8);
    }
    &.spin {
      animation-name: pb_icon_spin;
      animation-delay: 0s;
      animation-direction: normal;
      animation-duration: 2s;
      animation-iteration-count: infinite;
      animation-timing-function: linear;
    }
  }
}

.pb_icon_kit_emoji {
  font-family: monospace;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2038 app/pb_kits/playbook/pb_icon/_icon.scss
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2037 app/pb_kits/playbook/pb_icon/_icon.scss