admin
1 year ago
frontend
1 year ago
includes
1 year ago
themes
1 year ago
admin.scss
1 year ago
font-awesome.scss
1 year ago
jquery.selectBox.scss
1 year ago
style.scss
1 year ago
style.scss
538 lines
| 1 | /** |
| 2 | * Main YITH WooCommerce Wishlist CSS |
| 3 | * |
| 4 | * @author YITH <plugins@yithemes.com> |
| 5 | * @package YITH WooCommerce Wishlist |
| 6 | * @version 3.0.0 |
| 7 | */ |
| 8 | |
| 9 | @use "includes/frontend/_add-to-wishlist"; |
| 10 | @use "includes/frontend/_wishlist"; |
| 11 | |
| 12 | /** |
| 13 | * Index: |
| 14 | * |
| 15 | * 1. SELECTBOX STYLE |
| 16 | * 2. PRETTY PHOTO STYLE |
| 17 | * 3. BLOCK STYLE |
| 18 | * 4. POPUP ADD TO WISHLIST |
| 19 | * 5. DROPDOWN ADD TO WISHLIST |
| 20 | * 6. TOOLTIP |
| 21 | * 7. POPUP MESSAGE |
| 22 | * 8. WISHLIST TITLE FORM |
| 23 | * 9. WISHLIST TABLE TEMPLATE |
| 24 | * 10. WISHLIST MODERN GRID / IMAGES GRID TEMPLATE |
| 25 | * 11. WISHLIST MOBILE |
| 26 | * 12. WISHLIST BUTTONS |
| 27 | * 13. WISHLIST TITLE |
| 28 | * 14. REMOVE BUTTONS |
| 29 | * 15. SHARE BUTTONS |
| 30 | * 16. ASK AN ESTIMATE BUTTON |
| 31 | * 17. WISHLIST FOOTER |
| 32 | * 18. MOVE TO ANOTHER WISHLIST POPUP |
| 33 | * 19. CREATE NEW WISHLIST |
| 34 | * 20. MANAGE WISHLISTS |
| 35 | * 21. MANAGE MOBILE WISHLISTS |
| 36 | * 22. SEARCH WISHLIST |
| 37 | * 23. AJAX LOADING GIF |
| 38 | * 24. LISTS WIDGET |
| 39 | * 25. ITEMS WIDGET |
| 40 | * 26. RESPONSIVE |
| 41 | */ |
| 42 | |
| 43 | /* === 1. SELECTBOX STYLE === */ |
| 44 | |
| 45 | .woocommerce a.selectBox { |
| 46 | background : #ffffff; |
| 47 | min-width : 100px; |
| 48 | margin-right : 10px; |
| 49 | color : inherit; |
| 50 | } |
| 51 | |
| 52 | .woocommerce a.selectBox, |
| 53 | .woocommerce a.selectBox:hover { |
| 54 | border-bottom : 1px solid #bbb !important; |
| 55 | } |
| 56 | |
| 57 | .woocommerce a.selectBox:hover { |
| 58 | color : inherit; |
| 59 | } |
| 60 | |
| 61 | .woocommerce a.selectBox:focus { |
| 62 | border : 1px solid #ccc; |
| 63 | } |
| 64 | |
| 65 | .selectBox-dropdown .selectBox-label { |
| 66 | vertical-align : middle; |
| 67 | padding : 3px 8px; |
| 68 | } |
| 69 | |
| 70 | .selectBox-dropdown .selectBox-arrow { |
| 71 | border : none; |
| 72 | background : url(../images/jquery.selectBox-arrow.png) center right no-repeat; |
| 73 | } |
| 74 | |
| 75 | .selectBox-dropdown.selectBox-menuShowing .selectBox-arrow { |
| 76 | background : url(../images/jquery.selectBox-arrow.png) center left no-repeat; |
| 77 | } |
| 78 | |
| 79 | .selectBox-dropdown-menu { |
| 80 | border-bottom-left-radius : 3px; |
| 81 | border-bottom-right-radius : 3px; |
| 82 | padding : 5px; |
| 83 | font-size : 80%; |
| 84 | } |
| 85 | |
| 86 | .selectBox-dropdown-menu li a { |
| 87 | color : inherit; |
| 88 | padding : 5px 8px; |
| 89 | border-radius : 3px; |
| 90 | } |
| 91 | |
| 92 | .selectBox-dropdown-menu a:hover { |
| 93 | color : inherit; |
| 94 | text-decoration : none; |
| 95 | } |
| 96 | |
| 97 | select.selectBox.change-wishlist { |
| 98 | max-width : 100px; |
| 99 | } |
| 100 | |
| 101 | .selectBox.change-wishlist { |
| 102 | width : auto !important; |
| 103 | } |
| 104 | |
| 105 | .change-wishlist-selectBox-dropdown-menu { |
| 106 | width : auto !important; |
| 107 | } |
| 108 | |
| 109 | /* === 2. PRETTY PHOTO STYLE === */ |
| 110 | |
| 111 | .yith-wcwl-with-pretty-photo { |
| 112 | overflow : hidden; |
| 113 | } |
| 114 | |
| 115 | .yith-wcwl-with-pretty-photo .pp_content { |
| 116 | height : auto !important; |
| 117 | } |
| 118 | |
| 119 | /* === 3. BLOCK STYLE === */ |
| 120 | |
| 121 | .woocommerce .wishlist-fragment .blockUI.blockOverlay::before, |
| 122 | .woocommerce .yith-wcwl-popup-form .blockUI.blockOverlay::before { |
| 123 | display : none; |
| 124 | } |
| 125 | |
| 126 | /* === 23. AJAX LOADING GIF === */ |
| 127 | |
| 128 | .yith-wcwl-add-to-wishlist .ajax-loading { |
| 129 | box-shadow : none !important; |
| 130 | -moz-box-shadow : none !important; |
| 131 | -webkit-box-shadow : none !important; |
| 132 | display : inline !important; |
| 133 | margin-left : 5px; |
| 134 | vertical-align : middle; |
| 135 | visibility : hidden; |
| 136 | width : 16px !important; |
| 137 | height : 16px !important; |
| 138 | } |
| 139 | |
| 140 | /* === 24. LISTS WIDGET === */ |
| 141 | |
| 142 | .elementor-widget-wp-widget-yith-wcwl-lists ul.dropdown li, |
| 143 | .widget_yith-wcwl-lists ul.dropdown li { |
| 144 | padding : 0; |
| 145 | } |
| 146 | |
| 147 | .elementor-widget-wp-widget-yith-wcwl-lists ul.dropdown > li a, |
| 148 | .elementor-widget-wp-widget-yith-wcwl-lists ul.dropdown ul.lists > li a, |
| 149 | .widget_yith-wcwl-lists ul.dropdown > li a, |
| 150 | .widget_yith-wcwl-lists ul.dropdown ul.lists > li a { |
| 151 | display : block; |
| 152 | padding : 5px 15px; |
| 153 | } |
| 154 | |
| 155 | .elementor-widget-wp-widget-yith-wcwl-lists ul.dropdown ul.lists > li a, |
| 156 | .widget_yith-wcwl-lists ul.dropdown ul.lists > li a { |
| 157 | padding : 5px 25px; |
| 158 | } |
| 159 | |
| 160 | .elementor-widget-wp-widget-yith-wcwl-lists ul.dropdown > li.lists-section, |
| 161 | .widget_yith-wcwl-lists ul.dropdown > li.lists-section { |
| 162 | border-bottom : 1px solid #e7e7e7; |
| 163 | } |
| 164 | |
| 165 | .elementor-widget-wp-widget-yith-wcwl-lists ul.dropdown ul.lists, |
| 166 | .widget_yith-wcwl-lists ul.dropdown ul.lists { |
| 167 | margin : 0; |
| 168 | } |
| 169 | |
| 170 | /* === 25. ITEMS WIDGET === */ |
| 171 | |
| 172 | .elementor-widget-wp-widget-yith-wcwl-items, |
| 173 | .widget_yith-wcwl-items { |
| 174 | |
| 175 | ul.product_list_widget { |
| 176 | margin-bottom : 40px !important; |
| 177 | |
| 178 | &::-webkit-scrollbar-thumb { |
| 179 | border-radius : 4px; |
| 180 | background-color : rgba(0, 0, 0, .4); |
| 181 | box-shadow : 0 0 1px rgba(255, 255, 255, .4); |
| 182 | } |
| 183 | |
| 184 | li { |
| 185 | display : table; |
| 186 | |
| 187 | &:not(:last-child) { |
| 188 | margin-bottom : 10px; |
| 189 | } |
| 190 | |
| 191 | .remove_from_all_wishlists, |
| 192 | .image-thumb, |
| 193 | .mini-cart-item-info { |
| 194 | display : table-cell; |
| 195 | vertical-align : middle; |
| 196 | } |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | p.empty-wishlist { |
| 201 | margin-bottom : 0 !important; |
| 202 | } |
| 203 | |
| 204 | .heading { |
| 205 | text-align : center; |
| 206 | cursor : pointer; |
| 207 | |
| 208 | a { |
| 209 | color : inherit; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | .mini { |
| 214 | position : relative; |
| 215 | display : flex; |
| 216 | |
| 217 | &:hover .list { |
| 218 | display : block; |
| 219 | } |
| 220 | |
| 221 | ul.product_list_widget { |
| 222 | max-height : 30vh; |
| 223 | overflow-y : auto; |
| 224 | margin-left : -20px; |
| 225 | |
| 226 | &::-webkit-scrollbar { |
| 227 | -webkit-appearance : none; |
| 228 | width : 7px; |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | .heading { |
| 233 | display : inline-block; |
| 234 | |
| 235 | .items-counter { |
| 236 | i { |
| 237 | font-size : 25px; |
| 238 | } |
| 239 | |
| 240 | .items-count { |
| 241 | font-size : 14px; |
| 242 | line-height : 20px; |
| 243 | } |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | .list { |
| 248 | position : absolute; |
| 249 | z-index : 1; |
| 250 | left : 0; |
| 251 | background : #fff; |
| 252 | padding : 25px 40px; |
| 253 | min-width : 300px; |
| 254 | display : none; |
| 255 | |
| 256 | -webkit-box-shadow : 0 0 15px rgba(0, 0, 0, .3); |
| 257 | -moz-box-shadow : 0 0 15px rgba(0, 0, 0, .3); |
| 258 | box-shadow : 0 0 15px rgba(0, 0, 0, .3); |
| 259 | } |
| 260 | |
| 261 | .items-counter { |
| 262 | & > a { |
| 263 | display : flex; |
| 264 | align-items : flex-end; |
| 265 | |
| 266 | .heading-icon { |
| 267 | display : flex; |
| 268 | |
| 269 | svg.yith-wcwl-icon-svg, |
| 270 | img { |
| 271 | stroke-width : 1.25; |
| 272 | height : 35px; |
| 273 | width : 35px; |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | .extended .heading { |
| 282 | h3:after { |
| 283 | content : ""; |
| 284 | display : block; |
| 285 | |
| 286 | max-width : 80px; |
| 287 | border-bottom : 1px solid #cdcdcd; |
| 288 | margin : 10px auto; |
| 289 | } |
| 290 | |
| 291 | .items-counter { |
| 292 | position : relative; |
| 293 | display : flex; |
| 294 | align-items : center; |
| 295 | justify-content : center; |
| 296 | |
| 297 | i { |
| 298 | font-size : 70px; |
| 299 | position : relative; |
| 300 | margin-bottom : 10px; |
| 301 | } |
| 302 | |
| 303 | svg.yith-wcwl-icon-svg { |
| 304 | width : 70px; |
| 305 | height : 70px; |
| 306 | } |
| 307 | |
| 308 | .items-count { |
| 309 | display : block; |
| 310 | position : absolute; |
| 311 | font-size : 14px; |
| 312 | } |
| 313 | } |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | |
| 318 | .elementor-widget-wp-widget-yith-wcwl-items ul.product_list_widget li .remove_from_all_wishlists, |
| 319 | .widget_yith-wcwl-items ul.product_list_widget li .remove_from_all_wishlists { |
| 320 | font-size : 1.2rem; |
| 321 | } |
| 322 | |
| 323 | .elementor-widget-wp-widget-yith-wcwl-items ul.product_list_widget li .image-thumb img, |
| 324 | .widget_yith-wcwl-items ul.product_list_widget li .image-thumb img { |
| 325 | margin-left : 10px; |
| 326 | max-width : 40px; |
| 327 | } |
| 328 | |
| 329 | .elementor-widget-wp-widget-yith-wcwl-items ul.product_list_widget li .mini-cart-item-info, |
| 330 | .widget_yith-wcwl-items ul.product_list_widget li .mini-cart-item-info { |
| 331 | display : inline-block; |
| 332 | vertical-align : middle; |
| 333 | margin-left : 10px; |
| 334 | } |
| 335 | |
| 336 | .elementor-widget-wp-widget-yith-wcwl-items ul.product_list_widget li .mini-cart-item-info a, |
| 337 | .widget_yith-wcwl-items ul.product_list_widget li .mini-cart-item-info a { |
| 338 | display : inline-block; |
| 339 | } |
| 340 | |
| 341 | .elementor-widget-wp-widget-yith-wcwl-items ul.product_list_widget li .mini-cart-item-info > *, |
| 342 | .widget_yith-wcwl-items ul.product_list_widget li .mini-cart-item-info > * { |
| 343 | display : block; |
| 344 | } |
| 345 | |
| 346 | .elementor-widget-wp-widget-yith-wcwl-items .show-wishlist, |
| 347 | .elementor-widget-wp-widget-yith-wcwl-items a.add_all_to_cart, |
| 348 | .widget_yith-wcwl-items .show-wishlist, |
| 349 | .widget_yith-wcwl-items a.add_all_to_cart { |
| 350 | display : block !important; |
| 351 | } |
| 352 | |
| 353 | .elementor-widget-wp-widget-yith-wcwl-items .show-wishlist, |
| 354 | .widget_yith-wcwl-items .show-wishlist { |
| 355 | margin-bottom : 10px; |
| 356 | } |
| 357 | |
| 358 | .elementor-widget-wp-widget-yith-wcwl-items a.add_all_to_cart, |
| 359 | .widget_yith-wcwl-items a.add_all_to_cart { |
| 360 | text-align : center; |
| 361 | } |
| 362 | |
| 363 | /* === 26. RESPONSIVE === */ |
| 364 | |
| 365 | @media(max-width : 768px) { |
| 366 | .yith_wcwl_wishlist_bulk_action select { |
| 367 | width : 100%; |
| 368 | margin-bottom : 15px; |
| 369 | } |
| 370 | |
| 371 | .yith_wcwl_wishlist_bulk_action input { |
| 372 | float : right; |
| 373 | } |
| 374 | |
| 375 | .yith_wcwl_wishlist_footer .yith_wcwl_footer_additional_action { |
| 376 | float : none; |
| 377 | } |
| 378 | |
| 379 | .yith_wcwl_wishlist_footer .yith_wcwl_footer_additional_action .ask-an-estimate-button { |
| 380 | width : 100%; |
| 381 | text-align : center; |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | // OLD MODAL STYLE COMPATIBILITY |
| 386 | |
| 387 | $modal-overlay : var(--modal-colors-overlay, #0000004d); |
| 388 | $modal-icon : var(--modal-colors-icon, #007565); |
| 389 | $modal-primary-button : var(--modal-colors-primary-button, #007565); |
| 390 | $modal-primary-button-text : var(--modal-colors-primary-button-text, #fff); |
| 391 | $modal-primary-button-hover : var(--modal-colors-primary-button-hover, #007565); |
| 392 | $modal-primary-button-text-hover : var(--modal-colors-primary-button-text-hover, #fff); |
| 393 | $modal-secondary-button : var(--modal-colors-secondary-button, #08a889); |
| 394 | $modal-secondary-button-text : var(--modal-colors-secondary-button-text, #fff); |
| 395 | $modal-secondary-button-hover : var(--modal-colors-secondary-button-hover, #08a889); |
| 396 | $modal-secondary-button-text-hover : var(--modal-colors-secondary-button-text-hover, #fff); |
| 397 | |
| 398 | .yith-wcwl-pp-modal { |
| 399 | position : fixed !important;; |
| 400 | top : 50% !important;; |
| 401 | left : 50% !important;; |
| 402 | transform : translate(-50%, -50%) !important;; |
| 403 | width : 450px !important; |
| 404 | |
| 405 | .yith-wcwl-popup-form { |
| 406 | padding : 0; |
| 407 | } |
| 408 | |
| 409 | div.pp_content_container { |
| 410 | padding : 40px 35px; |
| 411 | border-radius : 15px; |
| 412 | display : flex; |
| 413 | box-shadow : rgba(24, 53, 62, 0.1) 0 11px 15px -7px, rgba(24, 53, 62, 0.07) 0px 24px 38px 3px, rgba(24, 53, 62, 0.06) 0px 9px 46px 8px; |
| 414 | max-width : fit-content; |
| 415 | |
| 416 | .pp_content { |
| 417 | width : 380px !important; |
| 418 | |
| 419 | .yith-wcwl-popup-content { |
| 420 | padding : 0; |
| 421 | |
| 422 | .heading-icon { |
| 423 | margin-top : 0; |
| 424 | } |
| 425 | |
| 426 | .create-wishlist-button { |
| 427 | margin-bottom : 0; |
| 428 | } |
| 429 | |
| 430 | .wishlist-select + .select2-container { |
| 431 | width : 100% !important; |
| 432 | } |
| 433 | |
| 434 | p.form-row.yith-wcwl-info-text { |
| 435 | text-wrap : balance; |
| 436 | text-align : center; |
| 437 | } |
| 438 | } |
| 439 | } |
| 440 | |
| 441 | .popup-description { |
| 442 | margin-bottom : 10px; |
| 443 | } |
| 444 | |
| 445 | .heading-icon { |
| 446 | color : $modal-icon; |
| 447 | height : auto; |
| 448 | max-height : 90px; |
| 449 | |
| 450 | &:not([id$="-light"]):not(.yith-wcwl-icon-svg--light) { |
| 451 | stroke-width : 1; |
| 452 | |
| 453 | * { |
| 454 | stroke-width : 1; |
| 455 | } |
| 456 | } |
| 457 | } |
| 458 | |
| 459 | div.yith-wcwl-modal__content { |
| 460 | padding : 20px 55px 0; |
| 461 | display : flex; |
| 462 | flex-direction : column; |
| 463 | gap : 20px; |
| 464 | } |
| 465 | |
| 466 | div.yith-wcwl-popup-footer { |
| 467 | margin-bottom : 0; |
| 468 | } |
| 469 | |
| 470 | .popup_button, |
| 471 | .create-wishlist-button, |
| 472 | .ask-an-estimate-button { |
| 473 | transition : .2s; |
| 474 | background : $modal-primary-button; |
| 475 | color : $modal-primary-button-text; |
| 476 | border : none; |
| 477 | border-radius : 8px; |
| 478 | width : 100%; |
| 479 | box-sizing : border-box; |
| 480 | display : block; |
| 481 | padding : 13px 25px; |
| 482 | text-align : center; |
| 483 | text-decoration : none; |
| 484 | font-size : 14px; |
| 485 | |
| 486 | &:hover { |
| 487 | color : $modal-primary-button-text-hover; |
| 488 | background : $modal-primary-button-hover; |
| 489 | } |
| 490 | |
| 491 | .yith-wcwl-icon-svg, |
| 492 | img { |
| 493 | display : none; |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | .woocommerce-input-wrapper { |
| 498 | label.radio, |
| 499 | span.radiobutton { |
| 500 | display : inline-block; |
| 501 | float : left; |
| 502 | } |
| 503 | |
| 504 | span.radiobutton { |
| 505 | clear : left; |
| 506 | } |
| 507 | |
| 508 | span.description { |
| 509 | clear : both; |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | .yith-wcwl-modal__secondary-button { |
| 514 | transition : .2s; |
| 515 | border-radius : 5px; |
| 516 | background : $modal-secondary-button; |
| 517 | color : $modal-secondary-button-text; |
| 518 | border : none; |
| 519 | |
| 520 | &:hover { |
| 521 | background : $modal-secondary-button-hover; |
| 522 | color : $modal-secondary-button-text-hover; |
| 523 | } |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | &.feedback .pp_content_container { |
| 528 | padding : 20px 15px; |
| 529 | } |
| 530 | |
| 531 | select.change-wishlist, |
| 532 | button.move-to-another-wishlist-button { |
| 533 | box-sizing : border-box; |
| 534 | } |
| 535 | |
| 536 | } |
| 537 | |
| 538 |