Skip to content

Commit 33be862

Browse files
committed
add media query for hover effect
1 parent ea086d0 commit 33be862

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
- Fixed instant checkout functionality - @andrzejewsky (#3765)
2929
- Fixed links to the promoted banners - @andrzejewsky (#3753)
3030
- Fixed missing parameter in the compare list - @andrzejewsky (#3757)
31+
- Fixed product link on mobile - @andrzejewsky (#3772)
3132

3233
### Added
3334
- Added support for ES7 - @andrzejewsky (#3690)

src/themes/default/components/core/ProductTile.vue

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,16 +208,20 @@ $color-white: color(white);
208208
will-change: opacity, transform;
209209
transition: 0.3s opacity $motion-main, 0.3s transform $motion-main;
210210
}
211-
&:hover {
212-
.product-cover__thumb {
213-
opacity: 1;
214-
transform: scale(1.1);
215-
}
216-
&.sale::after,
217-
&.new::after {
218-
opacity: 0.8;
211+
212+
@media screen and (min-width: 768px) {
213+
&:hover {
214+
.product-cover__thumb {
215+
opacity: 1;
216+
transform: scale(1.1);
217+
}
218+
&.sale::after,
219+
&.new::after {
220+
opacity: 0.8;
221+
}
219222
}
220223
}
224+
221225
&.sale {
222226
&::after {
223227
@extend %label;

0 commit comments

Comments
 (0)