Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3773 from andrzejewsky/bugfix/3772
Browse files Browse the repository at this point in the history
Add media query for hover effect
  • Loading branch information
andrzejewsky authored Nov 4, 2019
2 parents e29a4ef + 33be862 commit acde81d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed instant checkout functionality - @andrzejewsky (#3765)
- Fixed links to the promoted banners - @andrzejewsky (#3753)
- Fixed missing parameter in the compare list - @andrzejewsky (#3757)
- Fixed product link on mobile - @andrzejewsky (#3772)

### Added
- Added support for ES7 - @andrzejewsky (#3690)
Expand Down
20 changes: 12 additions & 8 deletions src/themes/default/components/core/ProductTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,20 @@ $color-white: color(white);
will-change: opacity, transform;
transition: 0.3s opacity $motion-main, 0.3s transform $motion-main;
}
&:hover {
.product-cover__thumb {
opacity: 1;
transform: scale(1.1);
}
&.sale::after,
&.new::after {
opacity: 0.8;
@media screen and (min-width: 768px) {
&:hover {
.product-cover__thumb {
opacity: 1;
transform: scale(1.1);
}
&.sale::after,
&.new::after {
opacity: 0.8;
}
}
}
&.sale {
&::after {
@extend %label;
Expand Down

0 comments on commit acde81d

Please sign in to comment.