Sha256: 06f37509b7e0cebe5d53440c131e6041924a1e8af18b77c246d3d7a559f93a2a

Contents?: true

Size: 1.92 KB

Versions: 54

Compression:

Stored size: 1.92 KB

Contents

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

@mixin hover-scale-classes($scales-list) {
  @each $name, $scale in $scales-list {
    .hover_#{"" + $name}:hover,
    .group_hover:hover .group_hover.hover_#{"" + $name} {
      transform: $scale;
      transition: transform $transition-speed ease;
    }
  }
}

@mixin hover-shadow-classes($shadows-list) {
  @each $name, $shadow in $shadows-list {
    .hover_#{"" + $name}:hover,
    .group_hover:hover .group_hover.hover_#{"" + $name} {
      box-shadow: $shadow;
      transition: box-shadow $transition-speed ease;
    }
  }
}

@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;
      }
    }
  }
  
  @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);

.hover_visibility {
  opacity: 0;
  transition: opacity $transition-speed ease;

  &:hover {
    opacity: 1;
  }
}

.group_hover:hover {
  .group_hover.hover_visibility {
    opacity: 1;
  }
}

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
playbook_ui-14.10.0.pre.rc.9 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.8 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.7 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.6 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.5 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.4 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.alpha.PLAY16264818 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.alpha.PBNTR702stickyleftcolrails4806 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.3 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.2 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4766 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.1 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.alpha.PBNTR686advancedtablepaginationpoc4747 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.alpha.pbntr700newresettodefaultprop4736 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.10.0.pre.rc.0 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.rc.18 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.rc.17 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.rc.16 app/pb_kits/playbook/utilities/_hover.scss
playbook_ui-14.9.0.pre.rc.15 app/pb_kits/playbook/utilities/_hover.scss