-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9a7d22
commit 1e03427
Showing
3 changed files
with
70 additions
and
50 deletions.
There are no files selected for viewing
28 changes: 21 additions & 7 deletions
28
playbook/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,54 @@ | ||
@import "../tokens/exports/scale.module"; | ||
|
||
@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; | ||
} | ||
@each $name, $color in $colors-list { | ||
.hover_background_#{"" + $name}:hover, | ||
.group_hover:hover .hover_background_#{"" + $name} { | ||
background-color: $color !important; | ||
transition: background-color $transition-speed ease; | ||
} | ||
.hover_color_#{"" + $name}:hover, | ||
.group_hover:hover .hover_color_#{"" + $name} { | ||
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-shadow-classes($shadows-list) { | ||
@each $name, $shadow in $shadows-list { | ||
.hover_#{"" + $name}:hover, | ||
.group_hover:hover .hover_#{"" + $name} { | ||
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; | ||
} | ||
} | ||
|
||
@mixin hover-scale-classes($scales-list) { | ||
@each $name, $scale in $scales-list { | ||
.hover_#{"" + $name}:hover, | ||
.group_hover:hover .hover_#{"" + $name} { | ||
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); | ||
} | ||
|
||
@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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters