Debian Codegraph @

addons/website_sale_wishlist/static/src/scss/website_sale_wishlist.scss

raw
1 .oe_website_sale {
2 .td-wish-btn {
3 width: 140px;
4 }
5
6 div.css_not_available .o_add_wishlist_dyn {
7 display: none;
8 }
9
10 .o_add_wishlist_dyn {
11 &.disabled i::before {
12 content: "\f004";
13 }
14
15 &.btn-lg {
16 aspect-ratio: 1/1;
17 height: calc(#{$btn-padding-y-lg} * 2 + #{$btn-font-size-lg} * #{$btn-line-height} + #{$btn-border-width} * 2);
18 }
19 }
20 }
21
22 // XS size
23 @include media-breakpoint-down(md) {
24 .oe_website_sale {
25 .td-wish-btn {
26 width: 100px;
27 }
28 }
29 }
30
31 #o_comparelist_table {
32 &.o_wsale_products_opt_layout_catalog,
33 &.o_wsale_products_opt_layout_list {
34 --o-wsale-products-grid-gap: var(--o-wsale-wishlist-grid-gap, 16px);
35 --o-wsale-products-grid-gap-y: calc(var(--o-wsale-wishlist-grid-gap, 16px) * var(--o-wsale-products-grid-gap-y-multiplier, 1.25));
36 --gap: var(--o-wsale-products-grid-gap-y) var(--o-wsale-wishlist-grid-gap, 16px);
37 }
38
39 &.o_wsale_products_opt_layout_catalog.o_wsale_products_opt_design_grid,
40 &.o_wsale_products_opt_layout_list.o_wsale_products_opt_design_grid {
41 --gap: 0px;
42 --o-wsale-card-padding: calc(var(--o-wsale-products-grid-gap-y, 0px) * 0.5) calc(var(--o-wsale-wishlist-grid-gap, 0px) * 0.5);
43 }
44
45 // List layouts
46 &.o_wsale_products_opt_layout_list {
47 .o_wishlist_item {
48 grid-column: auto/span 12;
49 }
50
51 &.o_wsale_products_opt_design_thumbs {
52 --o-wsale-card-padding: 0 0 var(--o-wsale-wishlist-grid-gap, 16px);
53 }
54 }
55
56 // Card layouts
57 &.o_wsale_products_opt_layout_catalog {
58 --o-wsale-card-info-position: none;
59 --o-wsale-card-btns-flex-direction: row;
60 grid-template-columns: repeat(2, minmax(0, 1fr));
61
62 .o_wishlist_item {
63 position: relative;
64 grid-column: auto/span 6;
65
66 @include media-breakpoint-up(md) {
67 grid-column: auto/span 4;
68 }
69
70 @include media-breakpoint-up(lg) {
71 grid-column: auto/span 3;
72 }
73
74 @include media-breakpoint-up(xxl) {
75 grid-column: auto/span 2;
76 }
77 .o_wish_rm {
78 @include o-wsale-card-btn-design-subtle($body-bg, $body-color);
79 }
80 }
81
82 &[data-wishlist-mobile-columns="1"] {
83 grid-template-columns: 1fr;
84 }
85
86 &[data-wishlist-mobile-columns="2"] {
87 grid-template-columns: repeat(2, minmax(0, 1fr));
88 }
89
90 @include media-breakpoint-up(lg) {
91 @for $i from 2 through 6 {
92 &[data-wishlist-grid-columns="#{$i}"] {
93 grid-template-columns: repeat(#{$i}, minmax(0, 1fr));
94 }
95 }
96 }
97
98 &[data-wishlist-grid-columns] .o_wishlist_item {
99 grid-column: auto/span 1 !important;
100 }
101 }
102
103 &.o_wsale_products_opt_actions_inline .o_wsale_product_btn:where(:has(.o_add_to_compare)) {
104 @container (max-width: 180px) {
105 @include hide-submit-button-label;
106 }
107 }
108 }
109
110 .o_wish_rm {
111 --btn-padding-x: #{map-get($spacers, 2)};
112 --btn-padding-y: var(--btn-padding-x);
113
114 --o-wsale-wishlist-card-offset-top: calc(var(--o-wsale-card-offset-top) + var(--btn-padding-x));
115 --o-wsale-wishlist-card-offset-x: calc(var(--o-wsale-card-offset-x) + var(--btn-padding-x));
116
117 --o-wsale-wishlist-btn-offset-top-default: calc(var(--o-wsale-card-border-radius, 0px) * 0.1 + var(--btn-padding-y));
118 --o-wsale-wishlist-btn-offset-end-default: calc(var(--o-wsale-card-border-radius, 0px) * 0.2 + var(--btn-padding-x));
119
120 @include o-position-absolute(
121 $top: var(--o-wsale-wishlist-card-offset-top, var(--o-wsale-wishlist-btn-offset-top-default)),
122 $right: var(--o-wsale-wishlist-card-offset-x, var(--o-wsale-wishlist-btn-offset-end-default))
123 );
124
125 aspect-ratio: 1;
126
127 :where(.o_wsale_products_opt_design_showcase) & {
128 --o-wsale-wishlist-card-offset-x: 3%;
129 --o-wsale-wishlist-card-offset-top: 2.5%;
130
131 @include media-breakpoint-up(lg) {
132 @include o-wsale-card-btn-lg();
133 --btn-padding-x: var(--btn-padding-y);
134 --o-wsale-wishlist-card-offset-x: 5%;
135 }
136 }
137 }
138
139
140 // List view styles
141 :where(#o_comparelist_table.o_wsale_products_opt_layout_list) {
142 // List view except cards and showcase
143 &:where(:not(.o_wsale_products_opt_design_cards, .o_wsale_products_opt_design_showcase)) {
144 .o_wish_rm {
145 --o-wsale-wishlist-card-offset-x: 0;
146 --o-wsale-wishlist-btn-offset-top-default: .5rem;
147 --o-wsale-wishlist-btn-offset-end-default: 0;
148
149 --btn-padding-x: .7rem;
150
151 @include media-breakpoint-up(md) {
152 position: static;
153 align-self: center;
154 }
155
156 order: map-get($order-array, "last");
157 }
158 }
159
160 .o_wsale_product_information_text {
161 @include media-breakpoint-down(md) {
162 --o-wsale-card-info-text-margin-right: calc((var(--btn-padding-x) * 2) + #{$btn-font-size * .5});
163 }
164 }
165 }
166
167 .wishlist-section {
168 &:where(:has(.o_wsale_products_opt_design_grid)) {
169 .o_wsale_products_opt_design_grid {
170 border-left: $border-width solid $border-color;
171 }
172 .o_wishlist_products_header {
173 padding: 0 $container-padding-x * 0.5;
174 border: $border-width solid $border-color;
175 border-top: 0;
176 }
177 }
178
179 &:where(:has(.o_wsale_products_opt_design_grid.o_wsale_products_opt_layout_list)) {
180 &[style*="--o-wsale-products-grid-gap: 0px"] .oe_product_image_link,
181 &[style*="--o-wsale-products-grid-gap:0px"] .oe_product_image_link {
182 @include media-breakpoint-down(lg) {
183 height: 100%;
184 transform: translateX(-50%);
185 margin-left: 50%;
186 }
187 }
188
189 .oe_product_cart {
190 --o-wsale-card-flex-align-items: stretch;
191 --o-wsale-card-info-padding: #{map-get($spacers, 2) ($container-padding-x * 0.5) map-get($spacers, 2) map-get($spacers, 2)};
192 --o-wsale-card-info-marign: 0;
193 --o-wsale-card-sub-wrap: nowrap;
194 --o-wsale-card-sub-align-items: start;
195 --o-wsale-card-info-flex-align-items: auto;
196 --o-wsale-card-padding: 0;
197
198 @include media-breakpoint-up(md) {
199 --o-wsale-card-thumb-size: calc(126px * var(--o-wsale-card-thumb-aspect-ratio, 1));
200 --o-wsale-card-info-padding: 0 #{$container-padding-x * 0.5};
201 --o-wsale-card-sub-align-items: center;
202
203 .oe_product_image_link {
204 height: 100%;
205 }
206
207 .o_wsale_product_information_text {
208 display: flex;
209 flex-direction: column;
210 justify-content: center;
211 padding-right: inherit;
212 }
213
214 .o_wsale_product_sub {
215 position: relative;
216 }
217
218 .o_wish_price {
219 > span, > del {
220 text-align: center;
221 }
222 }
223
224 .o_wish_price, .o_wsale_product_btn {
225 --_line-gap: #{map-get($spacers, 3)};
226
227 padding-left: var(--_line-gap);
228
229 &:before {
230 @include o-position-absolute(0, auto, 0);
231 transform: translateX(calc(var(--_line-gap) * -1));
232 border-left: $border-width solid $border-color;
233 content: "";
234 }
235 }
236 }
237 }
238
239 .o_wish_rm {
240 @include media-breakpoint-down(md) {
241 margin-right: $container-padding-x * 0.5;
242 }
243 }
244 }
245
246 // Grid view only
247 :where(.o_wsale_products_opt_design_grid.o_wsale_products_opt_layout_list) .o_wsale_product_btn {
248 @include media-breakpoint-between(md, lg) {
249 @include hide-submit-button-label;
250
251 .btn {
252 --btn-padding-x: 0 !important;
253 }
254 }
255 }
256 }