style-child-theme-woocommerce.scss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. * WooCommerce Styles
  3. * - These styles should only be loaded when WooCommerce is active
  4. */
  5. /**
  6. * Abstracts
  7. * - Functions and config
  8. */
  9. @import "../../varia/sass/abstracts/functions";
  10. @import "../../varia/sass/abstracts/config-global";
  11. /**
  12. * Child Theme Name Config
  13. */
  14. @import "config-child-theme-deep";
  15. /**
  16. * WooCommerce Config
  17. */
  18. @import "config-child-theme-woocommerce";
  19. /**
  20. * Varia Mixins
  21. */
  22. @import "../../varia/sass/abstracts/mixins";
  23. /**
  24. * Varia Responsive Logic
  25. */
  26. @import "../../varia/sass/abstracts/responsive-logic";
  27. /**
  28. * Varia Extends
  29. */
  30. @import "../../varia/sass/base/extends";
  31. /**
  32. * WooCommerce Styles
  33. */
  34. @import "../../varia/sass/vendors/woocommerce/style";
  35. // Fix menu positioning
  36. body[class*="woocommerce"] #page {
  37. .woocommerce-products-header .page-title {
  38. background-color: transparent;
  39. }
  40. .main-navigation {
  41. @include media(mobile) {
  42. text-align: right;
  43. & > div {
  44. text-align: left;
  45. }
  46. & > div:not(:last-of-type) {
  47. margin-right: 0;
  48. }
  49. & > div:last-of-type {
  50. margin-left: (2 * map-deep-get($config-global, "spacing", "unit"));
  51. }
  52. }
  53. }
  54. }
  55. /**
  56. * Mobile-Menu
  57. */
  58. body[class*="woocommerce"] #page .main-navigation #woocommerce-toggle:focus + #toggle-cart,
  59. body[class*="woocommerce"] #page #toggle-cart {
  60. background: map-deep-get($config-global, "color", "background", "default");
  61. color: map-deep-get($config-global, "color", "foreground", "default");
  62. text-decoration: none;
  63. &:active,
  64. &:focus,
  65. &:hover {
  66. background: map-deep-get($config-global, "color", "primary", "default");
  67. color: map-deep-get($config-global, "color", "background", "default");
  68. }
  69. }