Advertisement
Udoro

Build Woocommerce store in Oxygen part one CSS

Jul 18th, 2021
2,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. .custom-sales-badge {
  2. background: var(--tertiary-color);
  3. width: 100%;
  4. padding: 2px 8px;
  5. }
  6.  
  7. div#c_sales_badge h6 {
  8. color: white;
  9. font-size: 10px;
  10. text-align: center;
  11. letter-spacing: 0.5px;
  12. }
  13.  
  14. .discount-percent {
  15. background: white;
  16. padding: 0 8px;
  17. width: 100%;
  18. text-align: center;
  19. font-size: 75%;
  20. font-weight: bold;
  21. }
  22.  
  23.  
  24. /*custom add to cart*/
  25. p.product.woocommerce.add_to_cart_inline {
  26. border: none!important;
  27. padding: 0px!important;
  28.  
  29. }
  30.  
  31. a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
  32. border-radius: 0px!important;
  33. background: var(--secondary-color);
  34. border: none!important;
  35.  
  36. }
  37.  
  38.  
  39. .button.product_type_variable.add_to_cart_button, a.button.product_type_simple{
  40.  
  41. border: none!important;
  42. border-radius: 0px!important;
  43.  
  44. }
  45. a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart, .button.product_type_variable.add_to_cart_button, a.button.product_type_simple {
  46. padding: 10px 20px;
  47. font-size: 10px
  48.  
  49. }
  50.  
  51.  
  52. .add_to_cart_inline span.woocommerce-Price-amount.amount {
  53. display: none;
  54. }
  55.  
  56. a.added_to_cart.wc-forward {
  57. display: none;
  58. }
  59.  
  60.  
  61. .addcart {
  62. transform: translateY(100%);
  63. transition: 400ms;
  64. }
  65.  
  66. .product-card:hover .addcart {
  67. opacity: 1;
  68. transform: translateY(33%)
  69. }
  70.  
  71.  
  72. /*QUICK VIEW*/
  73.  
  74. a.woosq-btn {
  75. border: none;
  76. color: white;
  77. line-height: 1.2;
  78. font-size: 30px;
  79. padding: 8px;
  80.  
  81. }
  82.  
  83. .product-card:hover .quick-view {
  84.  
  85. opacity:1;
  86. transform:translateY(0) rotate(180deg);
  87.  
  88. }
  89.  
  90. .quick-view {
  91. transition:400ms;
  92. opacity: 0;
  93. transform:translateY(50%) rotate(180deg);
  94. position: absolute;
  95. top: 0px;
  96. right: 0px;
  97. background: #33335c;
  98. width: 35px;
  99. height: 35px;
  100.  
  101.  
  102. }
  103.  
  104. /*QUICK VIEW MODAL*/
  105.  
  106. .summary h1 {
  107. font-size: 20px;
  108. border-bottom: solid 2px gray;
  109. padding-bottom: 16px!important;
  110. }
  111.  
  112. .summary p {
  113. font-size: 14px;
  114. }
  115.  
  116.  
  117. #woosq-popup .thumbnails .slick-arrow {
  118. color: #717171;
  119. background-color: #9d9d9d4d;
  120. border-radius: 5px;
  121. border: none;
  122. }
  123.  
  124.  
  125. /*OUT OF STOCK*/
  126.  
  127. div#c_out_stock_badge {
  128. position: absolute;
  129. top: 50%;
  130. left: 50%;
  131. transform: translateX(-50%);
  132. background: rgb(255 255 255 / 80%);
  133. width: 100%;
  134. height: 100%;
  135. padding: 10px 16px;
  136. }
  137.  
  138.  
  139.  
  140. div#c_out_stock_badge h6 {
  141. font-size: 12px;
  142. text-align:center
  143. }
  144.  
  145. @media all and (max-width:1025px){
  146.  
  147.  
  148. .product-card .addcart {
  149.  
  150. position:static!important;
  151. transform: translateY(0);
  152.  
  153. }
  154.  
  155.  
  156. .quick-view {
  157. opacity: 1;
  158. transform: translateY(0) rotate(180deg);
  159.  
  160. }
  161. }
  162.  
  163.  
  164.  
  165.  
  166. @media all and (max-width:481px){
  167.  
  168.  
  169. .product-info .addcart {
  170.  
  171. position:static!important;
  172. transform: translateY(0);
  173.  
  174. }
  175.  
  176.  
  177. .quick-view {
  178. opacity: 1;
  179. transform: translateY(0) rotate(180deg);
  180. top: auto!important;
  181. bottom: 12px;
  182. left: 8px;
  183. }
  184.  
  185. p.product.woocommerce.add_to_cart_inline {
  186. margin-bottom: 0;
  187.  
  188. }
  189. }
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement