woocommerce/assets/css/woocommerce-smallscreen.scss

235 lines
3.0 KiB
SCSS
Raw Normal View History

2013-05-15 16:47:27 +00:00
/**
2014-11-18 12:52:00 +00:00
* woocommerce-smallscreen.scss
* Optimises the default WooCommerce frontend layout when viewed on smaller screens.
2013-05-15 16:47:27 +00:00
*/
/**
* Imports
*/
2014-10-17 17:21:54 +00:00
@import "bourbon";
@import "mixins";
@import "variables";
2013-05-15 16:47:27 +00:00
/**
* Style begins
*/
.woocommerce,
.woocommerce-page {
2013-05-15 16:47:27 +00:00
table.shop_table_responsive {
thead {
display: none;
}
tbody {
tr:first-child {
td:first-child {
border-top: 0;
}
}
2014-10-16 16:00:56 +00:00
th {
display: none;
}
}
tr {
display: block;
td {
display: block;
text-align: right !important; // Important to overwrite order status inline styling
&.order-actions {
text-align: left !important; // This must always align left on handheld
}
&:before {
2014-10-16 16:00:56 +00:00
content: attr(data-title) ': ';
font-weight: 700;
float: left;
}
&.product-remove,
&.actions {
&:before {
display: none;
}
}
}
&:nth-child(2n) {
td {
background-color: rgba(0,0,0,0.025);
}
}
}
}
table.my_account_orders {
tr {
td {
&.order-actions {
text-align: left;
&:before {
display: none;
}
.button {
float: none;
margin: .125em .25em .125em 0;
}
}
}
}
}
2013-05-15 16:47:27 +00:00
/**
* General layout
*/
.col2-set {
.col-1,
.col-2 {
2013-05-15 16:47:27 +00:00
float: none;
width: 100%;
2013-05-15 16:47:27 +00:00
}
}
/**
* Products
*/
&, &[class*="columns-"] {
ul.products {
li.product {
width: 48%;
float: left;
clear: both;
margin: 0 0 2.992em;
&:nth-child(2n) {
float: right;
clear: none !important; // This should never clear.
}
2013-05-15 16:47:27 +00:00
}
}
}
/**
* Product Details
*/
div.product,
#content div.product {
div.images,
div.summary {
2013-05-15 16:47:27 +00:00
float: none;
width: 100%;
2013-05-15 16:47:27 +00:00
}
}
/**
* Cart
*/
table.cart,
#content table.cart {
2013-05-15 16:47:27 +00:00
.product-thumbnail {
display: none;
}
2013-05-15 16:47:27 +00:00
td.actions {
text-align: left;
2013-05-15 16:47:27 +00:00
.coupon {
float: none;
2014-09-22 17:35:48 +00:00
@include clearfix();
padding-bottom: .5em;
input,
.button,
.input-text {
width: 48%;
box-sizing: border-box;
}
.input-text + .button,
.button.alt {
float: right;
}
2013-05-15 16:47:27 +00:00
}
.button {
display: block;
width: 100%;
2013-05-15 16:47:27 +00:00
}
}
}
2013-05-15 16:47:27 +00:00
.cart-collaterals {
.cart_totals,
.shipping_calculator,
.cross-sells {
width: 100%;
2013-05-15 16:47:27 +00:00
float: none;
text-align: left;
}
}
/**
* Checkout
*/
&.woocommerce-checkout {
form.login {
.form-row {
width: 100%;
float: none;
}
}
}
2013-05-15 16:47:27 +00:00
#payment {
.terms {
text-align: left;
padding: 0;
2013-05-15 16:47:27 +00:00
}
2013-05-15 16:47:27 +00:00
#place_order {
float: none;
width: 100%;
box-sizing: border-box;
margin-bottom: 1em;
2013-05-15 16:47:27 +00:00
}
}
/**
* Account
*/
.lost_reset_password {
.form-row-first,
.form-row-last {
width: 100%;
float: none;
margin-right: 0;
}
}
2014-02-11 16:20:05 +00:00
}
.woocommerce-account {
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
float: none;
width: 100%;
}
}
/**
* Twenty Thirteen specific styles
*/
2014-02-11 16:20:05 +00:00
.single-product {
.twentythirteen {
.panel {
padding-left: 20px !important;
padding-right: 20px !important;
}
}
}