fix: Remove unnecessary css variable and hover state

- Removed wish-red variable
- Removed hover state from remove wishlist item button in card
- Removed inline css from wishlist item card
This commit is contained in:
marination
2021-03-22 16:46:51 +05:30
parent f42716f348
commit fe6e77791b
2 changed files with 7 additions and 12 deletions

View File

@@ -1,8 +1,6 @@
@import "frappe/public/scss/desk/variables"; @import "frappe/public/scss/desk/variables";
@import "frappe/public/scss/common/mixins"; @import "frappe/public/scss/common/mixins";
$wish-red: #F47A7A;
body.product-page { body.product-page {
background: var(--gray-50); background: var(--gray-50);
} }
@@ -210,13 +208,13 @@ body.product-page {
.btn-add-to-wishlist { .btn-add-to-wishlist {
svg use { svg use {
stroke: var(--wish-red); stroke: #F47A7A;
} }
} }
.btn-view-in-wishlist { .btn-view-in-wishlist {
svg use { svg use {
fill: var(--wish-red); fill: #F47A7A;
stroke: none; stroke: none;
} }
} }
@@ -600,16 +598,16 @@ body.product-page {
.not-wished { .not-wished {
cursor: pointer; cursor: pointer;
stroke: var(--wish-red) !important; stroke: #F47A7A !important;
&:hover { &:hover {
fill: var(--wish-red); fill: #F47A7A;
} }
} }
.wished { .wished {
stroke: none; stroke: none;
fill: var(--wish-red) !important; fill: #F47A7A !important;
} }
.list-row-checkbox { .list-row-checkbox {
@@ -685,6 +683,7 @@ body.product-page {
} }
.remove-wish { .remove-wish {
background-color: var(--gray-200);
position: absolute; position: absolute;
top:10px; top:10px;
right: 20px; right: 20px;
@@ -692,10 +691,6 @@ body.product-page {
border: 1px solid var(--gray-100); border: 1px solid var(--gray-100);
width: 25px; width: 25px;
height: 25px; height: 25px;
&:hover {
background-color: var(--gray-100);
}
} }
.wish-removed { .wish-removed {

View File

@@ -165,7 +165,7 @@
{%- macro wishlist_card(item, settings) %} {%- macro wishlist_card(item, settings) %}
<div class="col-sm-3 item-card" style="min-width: 220px;"> <div class="col-sm-3 item-card">
<div class="card text-center"> <div class="card text-center">
{% if item.image %} {% if item.image %}
<div class="card-img-container"> <div class="card-img-container">