Keine Beschreibung

woocommerce-layout.scss 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. /**
  2. * woocommerce-layout.scss
  3. * Applies layout to the default WooCommerce frontend design
  4. */
  5. /**
  6. * Imports
  7. */
  8. @import "mixins";
  9. @import "variables";
  10. /**
  11. * Styling begins
  12. */
  13. .woocommerce,
  14. .woocommerce-page {
  15. .woocommerce-message,
  16. .woocommerce-error,
  17. .woocommerce-info {
  18. .button {
  19. float: right;
  20. }
  21. }
  22. /**
  23. * General layout styles
  24. */
  25. .col2-set {
  26. @include clearfix();
  27. width: 100%;
  28. .col-1 {
  29. float: left;
  30. width: 48%;
  31. }
  32. .col-2 {
  33. float: right;
  34. width: 48%;
  35. }
  36. }
  37. img {
  38. height: auto;
  39. max-width: 100%;
  40. }
  41. /**
  42. * Product page
  43. */
  44. div.product,
  45. #content div.product {
  46. div.images {
  47. float: left;
  48. width: 48%;
  49. }
  50. div.thumbnails {
  51. @include clearfix();
  52. a {
  53. float: left;
  54. width: 30.75%;
  55. margin-right: 3.8%;
  56. margin-bottom: 1em;
  57. }
  58. a.last {
  59. margin-right: 0;
  60. }
  61. a.first {
  62. clear: both;
  63. }
  64. &.columns-1 {
  65. a {
  66. width: 100%;
  67. margin-right: 0;
  68. float: none;
  69. }
  70. }
  71. &.columns-2 {
  72. a {
  73. width: 48%;
  74. }
  75. }
  76. &.columns-4 {
  77. a {
  78. width: 22.05%;
  79. }
  80. }
  81. &.columns-5 {
  82. a {
  83. width: 16.9%;
  84. }
  85. }
  86. }
  87. div.summary {
  88. float: right;
  89. width: 48%;
  90. clear: none;
  91. }
  92. .woocommerce-tabs {
  93. clear: both;
  94. ul.tabs {
  95. @include menu();
  96. }
  97. }
  98. #reviews {
  99. .comment {
  100. @include mediaright();
  101. }
  102. }
  103. }
  104. /**
  105. * Product loops
  106. */
  107. ul.products {
  108. clear: both;
  109. @include clearfix();
  110. li.product {
  111. float: left;
  112. margin: 0 3.8% 2.992em 0;
  113. padding: 0;
  114. position: relative;
  115. width: 22.05%;
  116. margin-left: 0;
  117. }
  118. li.first {
  119. clear: both;
  120. }
  121. li.last {
  122. margin-right: 0;
  123. }
  124. }
  125. ul.products {
  126. &.columns-1 {
  127. li.product {
  128. width: 100%;
  129. margin-right: 0;
  130. }
  131. }
  132. &.columns-2 {
  133. li.product {
  134. width: 48%;
  135. }
  136. }
  137. &.columns-3 {
  138. li.product {
  139. width: 30.75%;
  140. }
  141. }
  142. &.columns-5 {
  143. li.product {
  144. width: 16.95%;
  145. }
  146. }
  147. &.columns-6 {
  148. li.product {
  149. width: 13.5%;
  150. }
  151. }
  152. }
  153. &.columns-1 {
  154. ul.products {
  155. li.product {
  156. width: 100%;
  157. margin-right: 0;
  158. }
  159. }
  160. }
  161. &.columns-2 {
  162. ul.products {
  163. li.product {
  164. width: 48%;
  165. }
  166. }
  167. }
  168. &.columns-3 {
  169. ul.products {
  170. li.product {
  171. width: 30.75%;
  172. }
  173. }
  174. }
  175. &.columns-5 {
  176. ul.products {
  177. li.product {
  178. width: 16.95%;
  179. }
  180. }
  181. }
  182. &.columns-6 {
  183. ul.products {
  184. li.product {
  185. width: 13.5%;
  186. }
  187. }
  188. }
  189. .woocommerce-result-count {
  190. float: left;
  191. }
  192. .woocommerce-ordering {
  193. float: right;
  194. }
  195. .woocommerce-pagination {
  196. ul.page-numbers {
  197. @include menu();
  198. }
  199. }
  200. /**
  201. * Cart page
  202. */
  203. table.cart,
  204. #content table.cart {
  205. img {
  206. height: auto;
  207. }
  208. td.actions {
  209. text-align: right;
  210. .input-text {
  211. width: 80px;
  212. }
  213. .coupon {
  214. float: left;
  215. label {
  216. display: none;
  217. }
  218. }
  219. }
  220. }
  221. .cart-collaterals {
  222. @include clearfix();
  223. width: 100%;
  224. .related {
  225. width: 30.75%;
  226. float: left;
  227. }
  228. .cross-sells {
  229. width: 48%;
  230. float: left;
  231. ul.products {
  232. float: none;
  233. li {
  234. width: 48%;
  235. }
  236. }
  237. }
  238. .shipping_calculator {
  239. width: 48%;
  240. @include clearfix();
  241. clear: right;
  242. float: right;
  243. .col2-set {
  244. .col-1,
  245. .col-2 {
  246. width: 47%;
  247. }
  248. }
  249. }
  250. .cart_totals {
  251. float: right;
  252. width: 48%;
  253. }
  254. }
  255. /**
  256. * Cart sidebar
  257. */
  258. ul.cart_list,
  259. ul.product_list_widget {
  260. li {
  261. @include mediaright();
  262. }
  263. }
  264. /**
  265. * Forms
  266. */
  267. form {
  268. .form-row {
  269. @include clearfix();
  270. label {
  271. display: block;
  272. &.checkbox {
  273. display: inline;
  274. }
  275. }
  276. select {
  277. width: 100%;
  278. }
  279. .input-text {
  280. box-sizing: border-box;
  281. width: 100%;
  282. }
  283. }
  284. .form-row-first,
  285. .form-row-last {
  286. width: 47%;
  287. overflow: visible;
  288. }
  289. .form-row-first {
  290. float: left;
  291. /*rtl:raw:
  292. float: right;
  293. */
  294. }
  295. .form-row-last {
  296. float: right;
  297. }
  298. .form-row-wide {
  299. clear: both;
  300. }
  301. .password-input {
  302. display: flex;
  303. flex-direction: column;
  304. justify-content: center;
  305. position: relative;
  306. input[type="password"] {
  307. padding-right: 2.5rem;
  308. }
  309. /* Hide the Edge "reveal password" native button */
  310. input::-ms-reveal {
  311. display: none;
  312. }
  313. }
  314. .show-password-input {
  315. position: absolute;
  316. right: 0.7em;
  317. top: 0.7em;
  318. cursor: pointer;
  319. }
  320. .show-password-input::after {
  321. @include iconafter( "\e010" ); // Icon styles and glyph
  322. }
  323. .show-password-input.display-password::after {
  324. color: #585858;
  325. }
  326. }
  327. #payment {
  328. .form-row {
  329. select {
  330. width: auto;
  331. }
  332. }
  333. .wc-terms-and-conditions,
  334. .terms {
  335. text-align: left;
  336. padding: 0 1em 0 0;
  337. float: left;
  338. }
  339. #place_order {
  340. float: right;
  341. }
  342. }
  343. .woocommerce-billing-fields,
  344. .woocommerce-shipping-fields {
  345. @include clearfix();
  346. }
  347. .woocommerce-terms-and-conditions {
  348. margin-bottom: 1.618em;
  349. padding: 1.618em;
  350. }
  351. /**
  352. * oEmbeds
  353. */
  354. .woocommerce-oembed {
  355. position: relative;
  356. }
  357. }
  358. .woocommerce-account {
  359. .woocommerce-MyAccount-navigation {
  360. float: left;
  361. width: 30%;
  362. }
  363. .woocommerce-MyAccount-content {
  364. float: right;
  365. width: 68%;
  366. }
  367. }
  368. /**
  369. * Twenty Eleven specific styles
  370. */
  371. .woocommerce-page {
  372. &.left-sidebar {
  373. #content.twentyeleven {
  374. width: 58.4%;
  375. margin: 0 7.6%;
  376. float: right;
  377. }
  378. }
  379. &.right-sidebar {
  380. #content.twentyeleven {
  381. margin: 0 7.6%;
  382. width: 58.4%;
  383. float: left;
  384. }
  385. }
  386. }
  387. /**
  388. * Twenty Fourteen specific styles
  389. */
  390. .twentyfourteen {
  391. .tfwc {
  392. padding: 12px 10px 0;
  393. max-width: 474px;
  394. margin: 0 auto;
  395. .product .entry-summary {
  396. padding: 0 !important;
  397. margin: 0 0 1.618em !important;
  398. }
  399. div.product.hentry.has-post-thumbnail {
  400. margin-top: 0;
  401. }
  402. }
  403. }
  404. @media screen and (min-width: 673px) {
  405. .twentyfourteen {
  406. .tfwc {
  407. padding-right: 30px;
  408. padding-left: 30px;
  409. }
  410. }
  411. }
  412. @media screen and (min-width: 1040px) {
  413. .twentyfourteen {
  414. .tfwc {
  415. padding-right: 15px;
  416. padding-left: 15px;
  417. }
  418. }
  419. }
  420. @media screen and (min-width: 1110px) {
  421. .twentyfourteen {
  422. .tfwc {
  423. padding-right: 30px;
  424. padding-left: 30px;
  425. }
  426. }
  427. }
  428. @media screen and (min-width: 1218px) {
  429. .twentyfourteen {
  430. .tfwc {
  431. margin-right: 54px;
  432. }
  433. }
  434. .full-width {
  435. .twentyfourteen {
  436. .tfwc {
  437. margin-right: auto;
  438. }
  439. }
  440. }
  441. }
  442. /**
  443. * Twenty Fifteen specific styles
  444. */
  445. .twentyfifteen {
  446. .t15wc {
  447. padding-left: 7.6923%;
  448. padding-right: 7.6923%;
  449. padding-top: 7.6923%;
  450. margin-bottom: 7.6923%;
  451. background: #fff;
  452. box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
  453. .page-title {
  454. margin-left: 0;
  455. }
  456. }
  457. }
  458. @media screen and (min-width: 38.75em) {
  459. .twentyfifteen {
  460. .t15wc {
  461. margin-right: 7.6923%;
  462. margin-left: 7.6923%;
  463. margin-top: 8.3333%;
  464. }
  465. }
  466. }
  467. @media screen and (min-width: 59.6875em) {
  468. .twentyfifteen {
  469. .t15wc {
  470. margin-left: 8.3333%;
  471. margin-right: 8.3333%;
  472. padding: 10%;
  473. }
  474. }
  475. .single-product {
  476. .twentyfifteen {
  477. .entry-summary {
  478. padding: 0 !important;
  479. }
  480. }
  481. }
  482. }
  483. /**
  484. * Twenty Sixteen specific styles
  485. */
  486. .twentysixteen {
  487. .site-main {
  488. margin-right: 7.6923%;
  489. margin-left: 7.6923%;
  490. }
  491. .entry-summary {
  492. margin-right: 0;
  493. margin-left: 0;
  494. }
  495. }
  496. #content {
  497. .twentysixteen {
  498. div.product {
  499. div.images,
  500. div.summary {
  501. width: 46.42857%;
  502. }
  503. }
  504. }
  505. }
  506. @media screen and (min-width: 44.375em) {
  507. .twentysixteen {
  508. .site-main {
  509. margin-right: 23.0769%;
  510. }
  511. }
  512. }
  513. @media screen and (min-width: 56.875em) {
  514. .twentysixteen {
  515. .site-main {
  516. margin-right: 0;
  517. margin-left: 0;
  518. }
  519. }
  520. .no-sidebar {
  521. .twentysixteen {
  522. .site-main {
  523. margin-right: 15%;
  524. margin-left: 15%;
  525. }
  526. .entry-summary {
  527. margin-right: 0;
  528. margin-left: 0;
  529. }
  530. }
  531. }
  532. }
  533. /**
  534. * RTL styles.
  535. */
  536. .rtl {
  537. .woocommerce,
  538. .woocommerce-page {
  539. .col2-set {
  540. .col-1 {
  541. float: right;
  542. }
  543. .col-2 {
  544. float: left;
  545. }
  546. }
  547. }
  548. }