woocommerce/assets/css/woocommerce-layout.scss

349 lines
4.9 KiB
SCSS
Raw Normal View History

2014-10-17 17:21:54 +00:00
/* =Imports
-------------------------------------------------------------- */
@import "bourbon";
@import "mixins";
@import "woocommerce-base"; // Contains base colours like $primary
2013-05-10 12:02:15 +00:00
.woocommerce, .woocommerce-page {
/* =General Layout Styles
-------------------------------------------------------------- */
.col2-set {
2014-09-22 17:35:48 +00:00
@include clearfix();
2013-05-10 12:02:15 +00:00
width: 100%;
.col-1 {
float:left;
width: 48%;
}
.col-2 {
float: right;
width: 48%;
}
}
img {
height:auto;
max-width:100%;
}
/* =Product Page
-------------------------------------------------------------- */
div.product, #content div.product {
div.images {
float:left;
width: 48%;
}
div.thumbnails {
2014-09-22 17:35:48 +00:00
@include clearfix();
2013-05-10 12:02:15 +00:00
a {
float:left;
width: 30.75%;
margin-right: 3.8%;
}
a.last {
margin-right: 0;
}
a.first {
clear:both;
}
}
div.summary {
float: right;
width: 48%;
}
2013-05-10 15:29:01 +00:00
/* Tabs on the product page */
.woocommerce-tabs {
clear:both;
2014-03-05 09:37:26 +00:00
ul.tabs {
2014-09-22 17:35:48 +00:00
@include menu();
2014-03-05 09:37:26 +00:00
}
2013-05-10 15:29:01 +00:00
}
#reviews {
.comment {
2014-09-22 17:35:48 +00:00
@include mediaright();
2013-05-10 15:29:01 +00:00
}
}
}
#quantity, #content .quantity {
/* Disable input[type=number] buttons until the world is ready */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
display:none;
}
2013-05-10 12:02:15 +00:00
}
/* =Product Loops
-------------------------------------------------------------- */
.related, .upsells.products {
2014-09-22 17:35:48 +00:00
@include clearfix();
clear: both;
2013-05-10 12:02:15 +00:00
ul.products, ul {
float:none;
li.product {
width: 48%;
img {
width: 100%;
height:auto;
}
}
}
}
ul.products {
2013-05-10 15:29:01 +00:00
clear:both;
2014-09-22 17:35:48 +00:00
@include clearfix();
2013-05-10 12:02:15 +00:00
li.product {
float:left;
margin: 0 3.8% 2.992em 0;
padding: 0;
position: relative;
width: 22.05%;
margin-left: 0;
}
li.first {
clear:both;
}
li.last {
margin-right: 0;
}
}
2013-08-19 14:12:17 +00:00
&.columns-1 {
ul.products {
li.product {
width:100%;
margin-right:0;
}
}
}
&.columns-2 {
ul.products {
li.product {
width:48%;
}
}
}
&.columns-3 {
ul.products {
li.product {
width:30.75%;
}
}
}
&.columns-5 {
ul.products {
li.product {
width:16.95%;
}
}
}
&.columns-6 {
ul.products {
li.product {
width:13.5%;
}
}
}
2013-05-10 12:02:15 +00:00
.woocommerce-result-count {
float: left;
}
.woocommerce-ordering {
float: right;
}
.woocommerce-pagination {
ul.page-numbers {
2014-09-22 17:35:48 +00:00
@include menu();
2013-05-10 12:02:15 +00:00
}
}
/* =Cart Page
-------------------------------------------------------------- */
table.cart, #content table.cart {
img {
height:auto;
}
2013-05-15 16:47:27 +00:00
td.actions {
text-align: right;
.input-text {
width:80px;
}
.coupon {
float:left;
label {
display:none;
}
}
}
2013-05-10 12:02:15 +00:00
}
.cart-collaterals {
2014-09-22 17:35:48 +00:00
@include clearfix();
2013-05-10 12:02:15 +00:00
width: 100%;
.related {
width: 30.75%;
float:left;
}
.cross-sells {
width: 48%;
float:left;
ul.products {
float:none;
li {
width: 48%;
}
}
}
.shipping_calculator {
width: 48%;
2014-09-22 17:35:48 +00:00
@include clearfix();
2013-05-10 12:02:15 +00:00
clear: right;
float: right;
.col2-set {
.col-1, .col-2 {
width: 47%;
}
}
}
.cart_totals {
float: right;
width: 48%;
}
}
2013-05-10 15:29:01 +00:00
/* =Cart Sidebar
-------------------------------------------------------------- */
ul.cart_list, ul.product_list_widget {
li {
2014-09-22 17:35:48 +00:00
@include mediaright();
2013-05-10 15:29:01 +00:00
}
}
2013-05-10 12:02:15 +00:00
/* =Forms
-------------------------------------------------------------- */
form {
2013-05-13 15:02:18 +00:00
.form-row {
2014-09-22 17:35:48 +00:00
@include clearfix();
2013-05-13 15:02:18 +00:00
label {
display:block;
&.checkbox {
display: inline;
}
}
select {
width: 100%;
}
.input-text {
2014-11-13 08:47:35 +00:00
@include box-sizing(border-box);
2013-05-13 15:02:18 +00:00
width:100%;
}
}
2013-05-10 12:02:15 +00:00
.form-row-first, .form-row-last {
float:left;
width: 47%;
overflow: visible;
}
.form-row-last {
float: right;
}
.form-row-wide {
clear: both;
}
}
2013-05-13 15:02:18 +00:00
#payment {
.form-row {
select {
width:auto;
}
}
2013-05-15 16:47:27 +00:00
.terms {
text-align: right;
padding: 0 1em 0;
}
#place_order {
float: right;
}
2013-05-13 15:02:18 +00:00
}
2013-05-10 12:02:15 +00:00
}
2013-12-03 16:53:22 +00:00
/* =Twenty Fourteen Specific styles
-------------------------------------------------------------- */
.twentyfourteen {
.tfwc {
padding: 12px 10px 0;
max-width: 474px;
margin:0 auto;
2014-01-08 16:05:39 +00:00
.product .entry-summary {
2013-12-03 16:53:22 +00:00
padding:0 !important;
margin: 0 0 1.618em !important;
}
div.product.hentry.has-post-thumbnail {
margin-top:0;
}
.product {
.images {
img {
margin-bottom:1em;
}
}
}
2013-12-03 16:53:22 +00:00
}
}
@media screen and (min-width: 673px) {
.twentyfourteen {
.tfwc {
padding-right: 30px;
padding-left: 30px;
}
}
}
@media screen and (min-width: 1040px) {
.twentyfourteen {
.tfwc {
padding-right: 15px;
padding-left: 15px;
}
}
}
@media screen and (min-width: 1110px) {
.twentyfourteen {
.tfwc {
padding-right: 30px;
padding-left: 30px;
}
}
}
@media screen and (min-width: 1218px) {
.twentyfourteen {
.tfwc {
margin-right: 54px;
}
}
2013-12-09 09:55:11 +00:00
.full-width {
.twentyfourteen {
.tfwc {
margin-right: auto;
}
}
}
}