style-child-theme-woocommerce.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * WooCommerce Styles
  3. * - These styles should be loaded when WooCommerce is active
  4. */
  5. /**
  6. * Abstracts
  7. * - Functions and config
  8. */
  9. @import "../../varia/sass/abstracts/functions";
  10. /**
  11. * Shawburn Config
  12. */
  13. @import "config-child-theme-deep";
  14. /**
  15. * WooCommerce Config
  16. */
  17. @import "config-child-theme-woocommerce";
  18. /**
  19. * Varia Mixins
  20. */
  21. @import "../../varia/sass/abstracts/mixins";
  22. /**
  23. * Varia Extends
  24. */
  25. @import "../../varia/sass/base/extends";
  26. /**
  27. * WooCommerce Styles
  28. */
  29. @import "../../varia/sass/vendors/woocommerce/style";
  30. /**
  31. * WooCommerce Mobile Menu
  32. */
  33. body[class*="woocommerce"] #page .main-navigation #woocommerce-toggle:focus + #toggle-cart,
  34. body[class*="woocommerce"] #page #toggle-cart {
  35. background: map-deep-get($config-global, "color", "primary", "default");
  36. color: map-deep-get($config-global, "color", "background", "default");
  37. border-radius: 0;
  38. text-align: center;
  39. text-decoration: none;
  40. width: 100%;
  41. &:active,
  42. &:focus,
  43. &:hover {
  44. background: map-deep-get($config-global, "color", "primary", "hover");
  45. color: map-deep-get($config-global, "color", "background", "default");
  46. }
  47. }
  48. body[class*="woocommerce"] #page .main-navigation #woocommerce-toggle:checked ~ div {
  49. border-top: 2px solid map-deep-get($config-global, "color", "background", "default");
  50. @include media(mobile) {
  51. border-top: 0;
  52. }
  53. }