Sha256: cb894c76f10a9ce8d4fc0dcb0da6c762e6c277cf13917a5ebe57792563511ec9

Contents?: true

Size: 1.65 KB

Versions: 7

Compression:

Stored size: 1.65 KB

Contents

@import "../tokens/exports/scale";

@mixin hover-color-classes($colors-list) {
    @each $name, $color in $colors-list {
      .hover_background_#{"" + $name}:hover {
        background-color: $color !important;
        transition: background-color $transition-speed ease;
      }
      .hover_color_#{"" + $name}:hover {
        color: $color !important;
        transition: color $transition-speed ease;
      }
    }
  }
  
  @mixin hover-shadow-classes($shadows-list) {
    @each $name, $shadow in $shadows-list {
      .hover_#{"" + $name}:hover {
        box-shadow: $shadow;
        transition: box-shadow $transition-speed ease;
      }
    }
  }
  
  @mixin hover-scale-classes($scales-list) {
    @each $name, $scale in $scales-list {
      .hover_#{"" + $name}:hover {
        transform: $scale;
        transition: transform $transition-speed ease;
      }
    }
  }
  
  
  @include hover-scale-classes($scales);
  @include hover-shadow-classes($box_shadows);
  @include hover-color-classes($product_colors);
  @include hover-color-classes($status_colors);
  @include hover-color-classes($data_colors);
  @include hover-color-classes($shadow_colors);
  @include hover-color-classes($colors);
  @include hover-color-classes($interface_colors);
  @include hover-color-classes($main_colors);
  @include hover-color-classes($background_colors);
  @include hover-color-classes($card_colors);
  @include hover-color-classes($active_colors);
  @include hover-color-classes($action_colors);
  @include hover-color-classes($hover_colors);
  @include hover-color-classes($border_colors);
  @include hover-color-classes($text_colors);
  @include hover-color-classes($category_colors);

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
playbook_ui-13.32.0.pre.alpha.PLAY14143297 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143288 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143272 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143271 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143267 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143264 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143260 app/pb_kits/playbook/utilities/_hover.scss