Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Cornerstone): BCTHEME-2 Sale badge "Burst" does not change colour on hover #1712

Merged
merged 2 commits into from
Jul 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions assets/scss/layouts/products/_productSaleBadges.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
top: 0;
transform: scaleX(1) scaleY(1) scaleZ(1);
transform-origin: 50% 50% 0;
transition: background-color 800ms ease;
width: rem-calc(50px);
z-index: zIndex("lower");
}
Expand Down Expand Up @@ -64,6 +65,15 @@
z-index: zIndex("high");
}

.product:hover .starwrap {

.sale-flag-star,
.sale-flag-star:before,
.sale-flag-star:after {
background: stencilColor("color_hover_product_sale_badges");
}
}

// -----------------------------------------------------------------------------
// TOP LEFT BADGE
// -----------------------------------------------------------------------------
Expand All @@ -80,13 +90,12 @@
padding-right: spacing("half");
padding-top: spacing("eighth") / 2;
position: absolute;
transition: 800ms ease;
transition: background-color 800ms ease;
z-index: zIndex("lower");
}

.product:hover .sale-flag-side {
background: stencilColor("color_hover_product_sale_badges");
transition: 800ms ease;
}

// -----------------------------------------------------------------------------
Expand All @@ -106,7 +115,7 @@
text-align: center;
top: 25px;
transform: rotate(-45deg);
transition: 800ms ease;
transition: background-color 800ms ease;
width: rem-calc(119px);
z-index: zIndex("lower");
}
Expand All @@ -130,7 +139,6 @@

.product:hover .sale-flag-sash {
background: stencilColor("color_hover_product_sale_badges");
transition: 800ms ease;
}

.product {
Expand Down