| 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: 999; |
| 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:focus, .merchant-wishlist-button:active { |
| 36 |
outline: none; |
| 37 |
} |
| 38 |
.merchant-wishlist-button.merchant-wishlist-button-tooltip:before { |
| 39 |
content: attr(data-merchant-wishlist-tooltip); |
| 40 |
position: absolute; |
| 41 |
top: 50%; |
| 42 |
right: calc(100% + 15px); |
| 43 |
background: var(--mrc-wl-button-tooltip-background-color, #212121); |
| 44 |
color: var(--mrc-wl-button-tooltip-text-color, #FFF); |
| 45 |
padding: 5px 14px; |
| 46 |
font-size: 0.8rem; |
| 47 |
border-radius: var(--mrc-wl-button-tooltip-border-radius, 4px); |
| 48 |
white-space: nowrap; |
| 49 |
opacity: 0; |
| 50 |
visibility: hidden; |
| 51 |
-webkit-transform: translate3d(0, -50%, 0); |
| 52 |
transform: translate3d(0, -50%, 0); |
| 53 |
-webkit-transition: ease opacity 300ms; |
| 54 |
transition: ease opacity 300ms; |
| 55 |
} |
| 56 |
.merchant-wishlist-button.merchant-wishlist-button-tooltip:after { |
| 57 |
content: ""; |
| 58 |
position: absolute; |
| 59 |
top: 50%; |
| 60 |
right: calc(100% + 9px); |
| 61 |
width: 0; |
| 62 |
height: 0; |
| 63 |
border-top: 7px solid transparent; |
| 64 |
border-bottom: 7px solid transparent; |
| 65 |
border-left: 7px solid var(--mrc-wl-button-tooltip-background-color, #212121); |
| 66 |
opacity: 0; |
| 67 |
visibility: hidden; |
| 68 |
-webkit-transform: translate3d(0, -50%, 0); |
| 69 |
transform: translate3d(0, -50%, 0); |
| 70 |
-webkit-transition: ease opacity 300ms; |
| 71 |
transition: ease opacity 300ms; |
| 72 |
} |
| 73 |
.merchant-wishlist-button.merchant-wishlist-button-tooltip:hover:before, .merchant-wishlist-button.merchant-wishlist-button-tooltip:hover:after { |
| 74 |
opacity: 1; |
| 75 |
visibility: visible; |
| 76 |
} |
| 77 |
.merchant-wishlist-button.merchant-wishlist-link { |
| 78 |
display: -webkit-box; |
| 79 |
display: -ms-flexbox; |
| 80 |
display: flex; |
| 81 |
-webkit-box-align: center; |
| 82 |
-ms-flex-align: center; |
| 83 |
align-items: center; |
| 84 |
gap: 7px; |
| 85 |
} |
| 86 |
|
| 87 |
.summary.entry-summary .merchant-wishlist-button { |
| 88 |
position: relative; |
| 89 |
top: auto; |
| 90 |
right: auto; |
| 91 |
-webkit-transform: none; |
| 92 |
transform: none; |
| 93 |
} |
| 94 |
|
| 95 |
.merchant-wishlist-button__shortcode { |
| 96 |
position: static; |
| 97 |
-webkit-transform: none; |
| 98 |
transform: none; |
| 99 |
text-decoration: none !important; |
| 100 |
} |
| 101 |
|
| 102 |
.merchant-wishlist-section-cart { |
| 103 |
margin-block: 30px; |
| 104 |
clear: both; |
| 105 |
} |
| 106 |
.merchant-wishlist-section-cart .section-title { |
| 107 |
margin-bottom: 15px; |
| 108 |
} |
| 109 |
|
| 110 |
.woocommerce .merchant-wishlist-items-cart ul.products:not(.elementor-grid), |
| 111 |
.woocommerce-page .merchant-wishlist-items-cart ul.products:not(.elementor-grid) { |
| 112 |
row-gap: 2em; |
| 113 |
} |