_layout.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. /**
  2. * Styling begins
  3. */
  4. .woocommerce-message,
  5. .woocommerce-error,
  6. .woocommerce-info {
  7. .button {
  8. float: right;
  9. }
  10. }
  11. /**
  12. * General layout styles
  13. */
  14. .col2-set {
  15. @include clearfix();
  16. width: 100%;
  17. .col-1 {
  18. float: left;
  19. width: 48%;
  20. }
  21. .col-2 {
  22. float: right;
  23. width: 48%;
  24. }
  25. }
  26. img {
  27. height: auto;
  28. max-width: 100%;
  29. }
  30. /**
  31. * Product page
  32. */
  33. div.product,
  34. #content div.product {
  35. div.images {
  36. float: left;
  37. width: 48%;
  38. }
  39. div.thumbnails {
  40. @include clearfix();
  41. a {
  42. float: left;
  43. width: 30.75%;
  44. margin-right: 3.8%;
  45. margin-bottom: 1em;
  46. }
  47. a.last {
  48. margin-right: 0;
  49. }
  50. a.first {
  51. clear: both;
  52. }
  53. &.columns-1 {
  54. a {
  55. width: 100%;
  56. margin-right: 0;
  57. float: none;
  58. }
  59. }
  60. &.columns-2 {
  61. a {
  62. width: 48%;
  63. }
  64. }
  65. &.columns-4 {
  66. a {
  67. width: 22.05%;
  68. }
  69. }
  70. &.columns-5 {
  71. a {
  72. width: 16.9%;
  73. }
  74. }
  75. }
  76. div.summary {
  77. float: right;
  78. width: 48%;
  79. }
  80. .woocommerce-tabs {
  81. clear: both;
  82. ul.tabs {
  83. @include menu();
  84. }
  85. }
  86. #reviews {
  87. .comment {
  88. @include mediaright();
  89. }
  90. }
  91. }
  92. /**
  93. * Product loops
  94. */
  95. ul.products {
  96. clear: both;
  97. @include clearfix();
  98. li.product {
  99. float: left;
  100. margin: 0 3.8% 2.992em 0;
  101. padding: 0;
  102. position: relative;
  103. width: 22.05%;
  104. margin-left: 0;
  105. a img {
  106. width: auto;
  107. }
  108. }
  109. li.first {
  110. clear: both;
  111. }
  112. li.last {
  113. margin-right: 0;
  114. }
  115. }
  116. .woocommerce-result-count {
  117. float: left;
  118. }
  119. .woocommerce-ordering {
  120. float: right;
  121. }
  122. .woocommerce-pagination {
  123. ul.page-numbers {
  124. @include menu();
  125. }
  126. }
  127. /**
  128. * Cart page
  129. */
  130. table.cart,
  131. #content table.cart {
  132. img {
  133. height: auto;
  134. }
  135. td.actions {
  136. text-align: right;
  137. .coupon {
  138. float: left;
  139. label {
  140. display: none;
  141. }
  142. }
  143. }
  144. }
  145. .cart-collaterals {
  146. @include clearfix();
  147. width: 100%;
  148. .related {
  149. width: 30.75%;
  150. float: left;
  151. }
  152. .cross-sells {
  153. width: 48%;
  154. float: left;
  155. ul.products {
  156. float: none;
  157. li {
  158. width: 48%;
  159. }
  160. }
  161. }
  162. .shipping_calculator {
  163. width: 48%;
  164. @include clearfix();
  165. clear: right;
  166. float: right;
  167. .col2-set {
  168. .col-1,
  169. .col-2 {
  170. width: 47%;
  171. }
  172. }
  173. }
  174. .cart_totals {
  175. float: right;
  176. width: 48%;
  177. }
  178. }
  179. /**
  180. * Cart sidebar
  181. */
  182. ul.cart_list,
  183. ul.product_list_widget {
  184. li {
  185. @include mediaright();
  186. }
  187. }
  188. /**
  189. * Forms
  190. */
  191. form {
  192. .form-row {
  193. @include clearfix();
  194. label {
  195. display: block;
  196. &.checkbox {
  197. display: inline;
  198. }
  199. }
  200. select {
  201. width: 100%;
  202. }
  203. .input-text {
  204. box-sizing: border-box;
  205. width: 100%;
  206. }
  207. }
  208. .form-row-first,
  209. .form-row-last {
  210. width: 47%;
  211. overflow: visible;
  212. }
  213. .form-row-first {
  214. float: left;
  215. /*rtl:raw:
  216. float: right;
  217. */
  218. }
  219. .form-row-last {
  220. float: right;
  221. }
  222. .form-row-wide {
  223. clear: both;
  224. }
  225. }
  226. #payment {
  227. .form-row {
  228. select {
  229. width: auto;
  230. }
  231. }
  232. .wc-terms-and-conditions, .terms {
  233. text-align: left;
  234. padding: 0 1em 0 0;
  235. float:left;
  236. }
  237. #place_order {
  238. float: right;
  239. }
  240. }
  241. .woocommerce-billing-fields,
  242. .woocommerce-shipping-fields {
  243. @include clearfix();
  244. }
  245. .woocommerce-terms-and-conditions {
  246. margin-bottom: 1.618em;
  247. padding: 1.618em;
  248. }
  249. /**
  250. * oEmbeds
  251. */
  252. .woocommerce-oembed {
  253. position: relative;
  254. }
  255. .woocommerce-account {
  256. .woocommerce-MyAccount-navigation {
  257. float: left;
  258. width: 30%;
  259. }
  260. .woocommerce-MyAccount-content {
  261. float: right;
  262. width: 68%;
  263. }
  264. }
  265. @media screen and (min-width: 768px) {
  266. .woocommerce {
  267. .columns-1 {
  268. ul.products {
  269. li.product {
  270. width: 100%;
  271. margin-right: 0;
  272. }
  273. }
  274. }
  275. .columns-2 {
  276. ul.products {
  277. li.product {
  278. width: 48%;
  279. }
  280. }
  281. }
  282. .columns-3 {
  283. ul.products {
  284. li.product {
  285. width: 30.75%;
  286. }
  287. }
  288. }
  289. .columns-5 {
  290. ul.products {
  291. li.product {
  292. width: 16.95%;
  293. }
  294. }
  295. }
  296. .columns-6 {
  297. ul.products {
  298. li.product {
  299. width: 13.5%;
  300. }
  301. }
  302. }
  303. }
  304. }
  305. @media screen and (min-width: 1000px) {
  306. .woocommerce {
  307. .site-content {
  308. padding: 0;
  309. }
  310. .content-wrapper {
  311. padding-left: 150px;
  312. }
  313. .content-wrapper.full-width {
  314. padding-right: 150px;
  315. }
  316. }
  317. }