| 1 |
/** |
| 2 |
* Wishlist button. |
| 3 |
* |
| 4 |
*/ |
| 5 |
ul.products li.product { |
| 6 |
position: relative; |
| 7 |
} |
| 8 |
|
| 9 |
.wc-block-grid__products .wc-block-grid__product { |
| 10 |
position: relative; |
| 11 |
} |
| 12 |
|
| 13 |
.merchant-wishlist-button { |
| 14 |
position: absolute; |
| 15 |
top: var(--mrc-wl-button-position-top, 20px); |
| 16 |
right: var(--mrc-wl-button-position-left, 20px); |
| 17 |
z-index: 10; |
| 18 |
} |
| 19 |
.merchant-wishlist-button svg { |
| 20 |
fill: var(--mrc-wl-button-icon-fill-color, transparent); |
| 21 |
stroke: var(--mrc-wl-button-icon-stroke-color, #212121); |
| 22 |
} |
| 23 |
.merchant-wishlist-button svg path { |
| 24 |
fill: var(--mrc-wl-button-icon-fill-color, transparent); |
| 25 |
stroke: var(--mrc-wl-button-icon-stroke-color, #212121); |
| 26 |
} |
| 27 |
.merchant-wishlist-button:hover svg, .merchant-wishlist-button.active svg { |
| 28 |
fill: var(--mrc-wl-button-icon-fill-color-hover, #f04c4c); |
| 29 |
stroke: var(--mrc-wl-button-icon-stroke-color-hover, #212121); |
| 30 |
} |
| 31 |
.merchant-wishlist-button:hover svg path, .merchant-wishlist-button.active svg path { |
| 32 |
fill: var(--mrc-wl-button-icon-fill-color-hover, #f04c4c); |
| 33 |
stroke: var(--mrc-wl-button-icon-stroke-color-hover, #212121); |
| 34 |
} |
| 35 |
.merchant-wishlist-button.merchant-wishlist-button-tooltip:not(.active):before { |
| 36 |
content: attr(data-merchant-wishlist-tooltip); |
| 37 |
position: absolute; |
| 38 |
top: 50%; |
| 39 |
right: calc(100% + 15px); |
| 40 |
background: var(--mrc-wl-button-tooltip-background-color, #212121); |
| 41 |
color: var(--mrc-wl-button-tooltip-text-color, #FFF); |
| 42 |
padding: 5px 14px; |
| 43 |
font-size: 0.8rem; |
| 44 |
border-radius: var(--mrc-wl-button-tooltip-border-radius, 4px); |
| 45 |
white-space: nowrap; |
| 46 |
opacity: 0; |
| 47 |
visibility: hidden; |
| 48 |
-webkit-transform: translate3d(0, -50%, 0); |
| 49 |
transform: translate3d(0, -50%, 0); |
| 50 |
-webkit-transition: ease opacity 300ms; |
| 51 |
transition: ease opacity 300ms; |
| 52 |
} |
| 53 |
.merchant-wishlist-button.merchant-wishlist-button-tooltip:not(.active):after { |
| 54 |
content: ""; |
| 55 |
position: absolute; |
| 56 |
top: 50%; |
| 57 |
right: calc(100% + 9px); |
| 58 |
width: 0; |
| 59 |
height: 0; |
| 60 |
border-top: 7px solid transparent; |
| 61 |
border-bottom: 7px solid transparent; |
| 62 |
border-left: 7px solid var(--mrc-wl-button-tooltip-background-color, #212121); |
| 63 |
opacity: 0; |
| 64 |
visibility: hidden; |
| 65 |
-webkit-transform: translate3d(0, -50%, 0); |
| 66 |
transform: translate3d(0, -50%, 0); |
| 67 |
-webkit-transition: ease opacity 300ms; |
| 68 |
transition: ease opacity 300ms; |
| 69 |
} |
| 70 |
.merchant-wishlist-button.merchant-wishlist-button-tooltip:not(.active):hover:before, .merchant-wishlist-button.merchant-wishlist-button-tooltip:not(.active):hover:after { |
| 71 |
opacity: 1; |
| 72 |
visibility: visible; |
| 73 |
} |
| 74 |
.merchant-wishlist-button.merchant-wishlist-link { |
| 75 |
display: -webkit-box; |
| 76 |
display: -ms-flexbox; |
| 77 |
display: flex; |
| 78 |
-webkit-box-align: center; |
| 79 |
-ms-flex-align: center; |
| 80 |
align-items: center; |
| 81 |
gap: 7px; |
| 82 |
} |
| 83 |
|
| 84 |
.summary.entry-summary .merchant-wishlist-button { |
| 85 |
position: relative; |
| 86 |
top: auto; |
| 87 |
right: auto; |
| 88 |
-webkit-transform: none; |
| 89 |
transform: none; |
| 90 |
} |