_checkout.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. /**
  2. * Checkout page
  3. */
  4. body[class*="woocommerce"] #page { // adding #page here to override default wc styles without !important
  5. .woocommerce-order h2 {
  6. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  7. font-size: map-deep-get($config-global, "font", "size", "lg");
  8. font-weight: bold;
  9. }
  10. .woocommerce-order-overview.order_details {
  11. display: flex;
  12. justify-content: space-between;
  13. align-content: flex-start;
  14. align-items: stretch;
  15. border: 1px solid map-deep-get($config-woocommerce, "table", "border", "color");
  16. li {
  17. border: none;
  18. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  19. font-size: map-deep-get($config-global, "font", "size", "sm");
  20. margin-right: 0;
  21. padding: map-deep-get($config-woocommerce, "table", "padding");
  22. text-transform: none;
  23. &.email {
  24. word-break: break-word;
  25. }
  26. &:not(:last-child) {
  27. border-right: 1px solid map-deep-get($config-woocommerce, "table", "border", "color");
  28. }
  29. strong {
  30. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  31. font-size: map-deep-get($config-global, "font", "size", "md");
  32. line-height: map-deep-get($config-global, "font", "line-height", "heading");
  33. }
  34. }
  35. &:before,
  36. &:after {
  37. content: none !important;
  38. display: none;
  39. }
  40. }
  41. .woocommerce-form-coupon-toggle + .checkout_coupon {
  42. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  43. }
  44. form.checkout_coupon,
  45. form.login,
  46. form.register {
  47. border-color: map-deep-get($config-woocommerce, "table", "border", "color");
  48. padding: map-deep-get($config-woocommerce, "table", "padding");
  49. margin-top: inherit;
  50. margin-bottom: inherit;
  51. text-align: left;
  52. border-radius: 0;
  53. }
  54. ul.order_details {
  55. padding-left: 0;
  56. }
  57. .woocommerce-customer-details address {
  58. border-radius: 0;
  59. border-color: map-deep-get($config-global, "color", "border", "default");
  60. border-right-width: 1px;
  61. border-bottom-width: 1px;
  62. }
  63. #add_payment_method {
  64. table.cart {
  65. .product-thumbnail {
  66. min-width: map-deep-get($config-global, "spacing", "horizontal");
  67. }
  68. img {
  69. width: #{2 * map-deep-get($config-global, "spacing", "vertical")};
  70. }
  71. td.actions .coupon .input-text {
  72. border-color: map-deep-get($config-global, "color", "border", "default");
  73. padding: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
  74. margin: 0 map-deep-get($config-global, "spacing", "unit") 0 0;
  75. }
  76. }
  77. }
  78. .wc-proceed-to-checkout {
  79. padding: map-deep-get($config-global, "spacing", "vertical") 0;
  80. a.checkout-button {
  81. margin-bottom: map-deep-get($config-global, "spacing", "unit");
  82. font-size: map-deep-get($config-global, "font", "size", "md");
  83. padding: map-deep-get($config-global, "spacing", "unit");
  84. }
  85. a.wcppec-checkout-buttons__button {
  86. padding-top: 0;
  87. }
  88. }
  89. .checkout .create-account small {
  90. font-size: map-deep-get($config-global, "font", "size", "xs");
  91. color: map-deep-get($config-global, "color", "foreground", "light");
  92. }
  93. #payment {
  94. background: transparent;
  95. border: map-deep-get($config-woocommerce, "table", "border", "width") solid map-deep-get($config-woocommerce, "table", "border", "color");
  96. border-radius: map-deep-get($config-woocommerce, "table", "border", "radius");
  97. ul.payment_methods {
  98. padding: map-deep-get($config-woocommerce, "table", "padding");
  99. border-bottom-color: map-deep-get($config-woocommerce, "table", "border", "color");
  100. li {
  101. line-height: map-deep-get($config-global, "font", "line-height", "body");
  102. input {
  103. margin-right: map-deep-get($config-global, "font", "line-height", "body");
  104. }
  105. }
  106. }
  107. div.form-row {
  108. padding: map-deep-get($config-woocommerce, "table", "padding");
  109. margin-bottom: 0;
  110. }
  111. div.payment_box {
  112. padding: #{0.5 * map-deep-get($config-woocommerce, "table", "padding")};
  113. margin-bottom: #{0.5 * map-deep-get($config-woocommerce, "table", "padding")};
  114. margin-top: #{0.5 * map-deep-get($config-woocommerce, "table", "padding")};
  115. font-size: map-deep-get($config-global, "font", "size", "sm");
  116. font-weight: bold;
  117. border-radius: map-deep-get($config-woocommerce, "table", "border", "radius");
  118. line-height: map-deep-get($config-global, "font", "line-height", "body");
  119. background-color: map-deep-get($config-global, "color", "background", "dark");
  120. color: map-deep-get($config-global, "color", "foreground", "dark");
  121. input.input-text,
  122. textarea {
  123. border-color: map-deep-get($config-woocommerce, "table", "border", "color");
  124. border-top-color: map-deep-get($config-woocommerce, "table", "border", "color");
  125. }
  126. ::-webkit-input-placeholder {
  127. color: map-deep-get($config-global, "color", "foreground", "light");
  128. }
  129. :-moz-placeholder {
  130. color: map-deep-get($config-global, "color", "foreground", "light");
  131. }
  132. :-ms-input-placeholder {
  133. color: map-deep-get($config-global, "color", "foreground", "light");
  134. }
  135. .woocommerce-SavedPaymentMethods .woocommerce-SavedPaymentMethods-tokenInput {
  136. margin-right: map-deep-get($config-global, "spacing", "unit");
  137. }
  138. .wc-credit-card-form {
  139. margin-top: map-deep-get($config-woocommerce, "table", "padding");
  140. }
  141. .wc-credit-card-form-card-number,
  142. .wc-credit-card-form-card-expiry,
  143. .wc-credit-card-form-card-cvc {
  144. font-size: map-deep-get($config-global, "font", "size", "lg");
  145. padding: #{0.5 * map-deep-get($config-woocommerce, "table", "padding")};
  146. }
  147. span.help {
  148. font-size: map-deep-get($config-global, "font", "size", "sm");
  149. color: map-deep-get($config-global, "color", "foreground", "light");
  150. }
  151. .form-row {
  152. margin: 0 0 map-deep-get($config-global, "spacing", "vertical");
  153. }
  154. p:last-child {
  155. margin-bottom: 0;
  156. }
  157. &::before {
  158. border-bottom-color: map-deep-get($config-global, "color", "background", "dark"); /* arrow size / color */
  159. }
  160. }
  161. .payment_method_paypal {
  162. .about_paypal {
  163. float: right;
  164. line-height: 52px;
  165. font-size: map-deep-get($config-global, "font", "size", "sm");
  166. }
  167. img {
  168. max-height: 52px;
  169. vertical-align: middle;
  170. }
  171. }
  172. }
  173. .woocommerce-terms-and-conditions {
  174. border-color: map-deep-get($config-woocommerce, "table", "border", "color");
  175. }
  176. .woocommerce-invalid #terms {
  177. outline-color: map-deep-get($config-global, "color", "alert", "error");
  178. }
  179. .checkout h3 {
  180. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  181. font-size: map-deep-get($config-global, "font", "size", "lg");
  182. font-weight: bold;
  183. }
  184. .woocommerce-terms-and-conditions {
  185. border-color: map-deep-get($config-woocommerce, "table", "border", "color");
  186. }
  187. .woocommerce-invalid #terms {
  188. outline-color: map-deep-get($config-global, "color", "alert", "error");
  189. }
  190. }