New lines and spacing.

This commit is contained in:
Tiago Noronha 2017-08-30 12:14:55 +01:00
parent 5f5eaa4bbf
commit 649b59d063
5 changed files with 909 additions and 613 deletions

View File

@ -42,7 +42,7 @@
} }
} }
.ui-slider .ui-slider-range { .ui-slider .ui-slider-range {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
display: block; display: block;

768
style.css

File diff suppressed because it is too large Load Diff

View File

@ -3,25 +3,12 @@ Theme Name: _s
WooCommerce styles override WooCommerce styles override
*/ */
/**
* WooCommerce Plugin path variables
*/
/** /**
* WooCommerce color variables * WooCommerce color variables
*/ */
/** /**
* Imports * Imports
*/ */
/**
* Fonts
*/
@font-face {
font-family: 'star';
src: url("../../plugins/woocommerce/assets/fonts/star.eot");
src: url("../../plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("../../plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("../../plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("../../plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
font-weight: normal;
font-style: normal; }
/** /**
* Shop tables * Shop tables
*/ */
@ -29,39 +16,58 @@ WooCommerce styles override
* Shop tables * Shop tables
*/ */
table.shop_table_responsive thead { table.shop_table_responsive thead {
display: none; } display: none;
}
table.shop_table_responsive tbody th { table.shop_table_responsive tbody th {
display: none; } display: none;
}
table.shop_table_responsive tr td { table.shop_table_responsive tr td {
display: block; display: block;
text-align: right; text-align: right;
clear: both; } clear: both;
table.shop_table_responsive tr td:before { }
content: attr(data-title) ": ";
float: left; } table.shop_table_responsive tr td:before {
table.shop_table_responsive tr td.product-remove a { content: attr(data-title) ": ";
text-align: left; } float: left;
table.shop_table_responsive tr td.product-remove:before { }
display: none; }
table.shop_table_responsive tr td.actions:before, table.shop_table_responsive tr td.download-actions:before { table.shop_table_responsive tr td.product-remove a {
display: none; } text-align: left;
table.shop_table_responsive tr td.download-actions .button { }
display: block;
text-align: center; } table.shop_table_responsive tr td.product-remove:before {
display: none;
}
table.shop_table_responsive tr td.actions:before, table.shop_table_responsive tr td.download-actions:before {
display: none;
}
table.shop_table_responsive tr td.download-actions .button {
display: block;
text-align: center;
}
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
table.shop_table_responsive thead { table.shop_table_responsive thead {
display: table-header-group; } display: table-header-group;
table.shop_table_responsive tbody th { }
display: table-cell; } table.shop_table_responsive tbody th {
table.shop_table_responsive tr th, table.shop_table_responsive tr td { display: table-cell;
text-align: left; } }
table.shop_table_responsive tr td { table.shop_table_responsive tr th, table.shop_table_responsive tr td {
display: table-cell; } text-align: left;
table.shop_table_responsive tr td:before { }
display: none; } } table.shop_table_responsive tr td {
display: table-cell;
}
table.shop_table_responsive tr td:before {
display: none;
}
}
/** /**
* Products * Products
@ -70,44 +76,63 @@ table.shop_table_responsive tr td {
* Products * Products
*/ */
ul.products { ul.products {
content: ""; content: "";
display: table; display: table;
table-layout: fixed; table-layout: fixed;
margin: 0; margin: 0;
padding: 0; } padding: 0;
ul.products li.product { }
list-style: none;
position: relative; ul.products li.product {
margin-bottom: 2em; } list-style: none;
ul.products li.product .woocommerce-loop-product__title { position: relative;
font-size: 1rem; } margin-bottom: 2em;
ul.products li.product img { }
display: block; }
ul.products li.product .button { ul.products li.product .woocommerce-loop-product__title {
display: block; } font-size: 1rem;
}
ul.products li.product img {
display: block;
}
ul.products li.product .button {
display: block;
}
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
ul.products li.product { ul.products li.product {
width: 30.7966666667%; width: 30.7966666667%;
float: left; float: left;
margin-right: 3.8%; } margin-right: 3.8%;
ul.products li.product.first { }
clear: both; } ul.products li.product.first {
ul.products li.product.last { clear: both;
margin-right: 0; } }
.columns-1 ul.products li.product { ul.products li.product.last {
float: none; margin-right: 0;
width: 100%; } }
.columns-2 ul.products li.product { .columns-1 ul.products li.product {
width: 48.1%; } float: none;
.columns-3 ul.products li.product { width: 100%;
width: 30.7966666667%; } }
.columns-4 ul.products li.product { .columns-2 ul.products li.product {
width: 22.15%; } width: 48.1%;
.columns-5 ul.products li.product { }
width: 16.96%; } .columns-3 ul.products li.product {
.columns-6 ul.products li.product { width: 30.7966666667%;
width: 13.4933333333%; } } }
.columns-4 ul.products li.product {
width: 22.15%;
}
.columns-5 ul.products li.product {
width: 16.96%;
}
.columns-6 ul.products li.product {
width: 13.4933333333%;
}
}
/** /**
* Single product * Single product
@ -116,69 +141,113 @@ ul.products {
* Single Product * Single Product
*/ */
.single-product div.product { .single-product div.product {
content: ""; content: "";
display: table; display: table;
table-layout: fixed; table-layout: fixed;
position: relative; } position: relative;
.single-product div.product .woocommerce-product-gallery { }
position: relative; }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger { .single-product div.product .woocommerce-product-gallery {
position: absolute; position: relative;
top: 1em; }
right: 1em;
display: block; .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
z-index: 99; } position: absolute;
.single-product div.product .woocommerce-product-gallery .flex-viewport { top: 1em;
margin-bottom: 1em; } right: 1em;
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { display: block;
content: ""; z-index: 99;
display: table; }
table-layout: fixed;
margin: 0; .single-product div.product .woocommerce-product-gallery .flex-viewport {
padding: 0; } margin-bottom: 1em;
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { }
list-style: none;
cursor: pointer; .single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
float: left; } content: "";
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { display: table;
opacity: .5; } table-layout: fixed;
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { margin: 0;
opacity: 1; } padding: 0;
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img { }
opacity: 1; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li { .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
width: 48.1%; } list-style: none;
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) { cursor: pointer;
margin-right: 0; } float: left;
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) { }
clear: both; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li { .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
width: 30.7966666667%; } opacity: .5;
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) { }
margin-right: 0; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) { .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
clear: both; } opacity: 1;
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li { }
width: 22.15%; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) { .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
margin-right: 0; } opacity: 1;
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) { }
clear: both; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li { .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li {
width: 16.96%; } width: 48.1%;
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) { }
margin-right: 0; }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) { .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) {
clear: both; } margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) {
clear: both;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
width: 30.7966666667%;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) {
clear: both;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
width: 22.15%;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) {
margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
clear: both;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
width: 16.96%;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) {
margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) {
clear: both;
}
.stock:empty:before { .stock:empty:before {
display: none; } display: none;
}
.stock.in-stock { .stock.in-stock {
color: #0f834d; } color: #0f834d;
}
.stock.out-of-stock { .stock.out-of-stock {
color: #e2401c; } color: #e2401c;
}
/** /**
* Checkout * Checkout
@ -187,15 +256,19 @@ ul.products {
* Checkout * Checkout
*/ */
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.col2-set .form-row-first { .col2-set .form-row-first {
float: left; float: left;
margin-right: 3.8%; } margin-right: 3.8%;
.col2-set .form-row-last { }
float: right; .col2-set .form-row-last {
margin-right: 0; } float: right;
.col2-set .form-row-first, margin-right: 0;
.col2-set .form-row-last { }
width: 48.1%; } } .col2-set .form-row-first,
.col2-set .form-row-last {
width: 48.1%;
}
}
/** /**
* General WooCommerce components * General WooCommerce components
@ -204,146 +277,189 @@ ul.products {
* Header cart * Header cart
*/ */
.site-header-cart { .site-header-cart {
position: relative; position: relative;
margin: 0; margin: 0;
padding: 0; padding: 0;
content: ""; content: "";
display: table; display: table;
table-layout: fixed; } table-layout: fixed;
.site-header-cart .cart-contents { }
text-decoration: none; }
.site-header-cart .cart-contents .icon { .site-header-cart .cart-contents {
display: none; } text-decoration: none;
.site-header-cart .widget_shopping_cart { }
display: none; }
.site-header-cart .product_list_widget { .site-header-cart .cart-contents .icon {
margin: 0; display: none;
padding: 0; } }
.site-header-cart .widget_shopping_cart {
display: none;
}
.site-header-cart .product_list_widget {
margin: 0;
padding: 0;
}
/** /**
* Star rating * Star rating
*/ */
.star-rating { .star-rating {
overflow: hidden; overflow: hidden;
position: relative; position: relative;
height: 1.618em; height: 1.618em;
line-height: 1.618; line-height: 1.618;
font-size: 1em; font-size: 1em;
width: 5.3em; width: 5.3em;
font-family: 'star'; font-family: 'star';
font-weight: 400; } font-weight: 400;
.star-rating:before { }
content: "\53\53\53\53\53";
opacity: .25; .star-rating:before {
float: left; content: "\53\53\53\53\53";
top: 0; opacity: .25;
left: 0; float: left;
position: absolute; } top: 0;
.star-rating span { left: 0;
overflow: hidden; position: absolute;
float: left; }
top: 0;
left: 0; .star-rating span {
position: absolute; overflow: hidden;
padding-top: 1.5em; } float: left;
.star-rating span:before { top: 0;
content: "\53\53\53\53\53"; left: 0;
top: 0; position: absolute;
position: absolute; padding-top: 1.5em;
left: 0; }
color: royalblue; }
.star-rating span:before {
content: "\53\53\53\53\53";
top: 0;
position: absolute;
left: 0;
color: royalblue;
}
p.stars a { p.stars a {
position: relative; position: relative;
height: 1em; height: 1em;
width: 1em; width: 1em;
text-indent: -999em; text-indent: -999em;
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
margin-right: 1px; margin-right: 1px;
font-weight: 400; } font-weight: 400;
p.stars a:before { }
display: block;
position: absolute; p.stars a:before {
top: 0; display: block;
left: 0; position: absolute;
width: 1em; top: 0;
height: 1em; left: 0;
line-height: 1; width: 1em;
font-family: "star"; height: 1em;
content: "\53"; line-height: 1;
color: #404040; font-family: "star";
text-indent: 0; content: "\53";
opacity: .25; } color: #404040;
p.stars a:hover ~ a:before { text-indent: 0;
content: "\53"; opacity: .25;
color: #404040; }
opacity: .25; }
p.stars a:hover ~ a:before {
content: "\53";
color: #404040;
opacity: .25;
}
p.stars:hover a:before { p.stars:hover a:before {
content: "\53"; content: "\53";
color: royalblue; color: royalblue;
opacity: 1; } opacity: 1;
}
p.stars.selected a.active:before { p.stars.selected a.active:before {
content: "\53"; content: "\53";
color: royalblue; color: royalblue;
opacity: 1; } opacity: 1;
}
p.stars.selected a.active ~ a:before { p.stars.selected a.active ~ a:before {
content: "\53"; content: "\53";
color: #404040; color: #404040;
opacity: .25; } opacity: .25;
}
p.stars.selected a:not(.active):before { p.stars.selected a:not(.active):before {
content: "\53"; content: "\53";
color: royalblue; color: royalblue;
opacity: 1; } opacity: 1;
}
/** /**
* Tabs * Tabs
*/ */
.woocommerce-tabs ul.tabs { .woocommerce-tabs ul.tabs {
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
text-align: left; } text-align: left;
.woocommerce-tabs ul.tabs li { }
display: block;
margin: 0; .woocommerce-tabs ul.tabs li {
position: relative; } display: block;
.woocommerce-tabs ul.tabs li a { margin: 0;
padding: 1em 0; position: relative;
display: block; } }
.woocommerce-tabs ul.tabs li a {
padding: 1em 0;
display: block;
}
.woocommerce-tabs .panel h2:first-of-type { .woocommerce-tabs .panel h2:first-of-type {
margin-bottom: 1em; } margin-bottom: 1em;
}
/** /**
* Password strength meter * Password strength meter
*/ */
.woocommerce-password-strength { .woocommerce-password-strength {
text-align: right; } text-align: right;
.woocommerce-password-strength.strong { }
color: #0f834d; }
.woocommerce-password-strength.short { .woocommerce-password-strength.strong {
color: #e2401c; } color: #0f834d;
.woocommerce-password-strength.bad { }
color: #e2401c; }
.woocommerce-password-strength.good { .woocommerce-password-strength.short {
color: #3D9CD2; } color: #e2401c;
}
.woocommerce-password-strength.bad {
color: #e2401c;
}
.woocommerce-password-strength.good {
color: #3D9CD2;
}
/** /**
* Forms * Forms
*/ */
.form-row.woocommerce-validated input.input-text { .form-row.woocommerce-validated input.input-text {
box-shadow: inset 2px 0 0 #0f834d; } box-shadow: inset 2px 0 0 #0f834d;
}
.form-row.woocommerce-invalid input.input-text { .form-row.woocommerce-invalid input.input-text {
box-shadow: inset 2px 0 0 #e2401c; } box-shadow: inset 2px 0 0 #e2401c;
}
.required { .required {
color: red; } color: red;
}
/** /**
* Notices * Notices
@ -353,48 +469,56 @@ p.stars.selected a:not(.active):before {
.woocommerce-error, .woocommerce-error,
.woocommerce-noreviews, .woocommerce-noreviews,
p.no-comments { p.no-comments {
content: ""; content: "";
display: table; display: table;
table-layout: fixed; table-layout: fixed;
background-color: #0f834d; background-color: #0f834d;
clear: both; } clear: both;
}
.woocommerce-info, .woocommerce-info,
.woocommerce-noreviews, .woocommerce-noreviews,
p.no-comments { p.no-comments {
background-color: #3D9CD2; } background-color: #3D9CD2;
}
.woocommerce-error { .woocommerce-error {
background-color: #e2401c; } background-color: #e2401c;
}
.demo_store { .demo_store {
position: fixed; position: fixed;
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
margin: 0; margin: 0;
padding: 1em; padding: 1em;
background-color: #3D9CD2; background-color: #3D9CD2;
z-index: 9999; } z-index: 9999;
}
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
/** /**
* Header cart * Header cart
*/ */
.site-header-cart .widget_shopping_cart { .site-header-cart .widget_shopping_cart {
position: absolute; position: absolute;
top: 100%; top: 100%;
width: 100%; width: 100%;
z-index: 999999; z-index: 999999;
font-size: ms(-1); font-size: ms(-1);
left: -999em; left: -999em;
display: block; display: block;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); } box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
.site-header-cart .cart-contents .icon { }
display: inline; } .site-header-cart .cart-contents .icon {
.site-header-cart:hover .widget_shopping_cart, .site-header-cart.focus .widget_shopping_cart { display: inline;
left: 0; }
display: block; } } .site-header-cart:hover .widget_shopping_cart, .site-header-cart.focus .widget_shopping_cart {
left: 0;
display: block;
}
}
/** /**
* WooCommerce widgets * WooCommerce widgets
@ -403,46 +527,60 @@ p.no-comments {
* WooCommerce Price Filter * WooCommerce Price Filter
*/ */
.widget_price_filter .price_slider { .widget_price_filter .price_slider {
margin-bottom: 1.5em; } margin-bottom: 1.5em;
}
.widget_price_filter .price_slider_amount { .widget_price_filter .price_slider_amount {
text-align: right; text-align: right;
line-height: 2.4em; } line-height: 2.4em;
.widget_price_filter .price_slider_amount .button { }
float: left; }
.widget_price_filter .price_slider_amount .button {
float: left;
}
.widget_price_filter .ui-slider { .widget_price_filter .ui-slider {
position: relative; position: relative;
text-align: left; } text-align: left;
}
.widget_price_filter .ui-slider .ui-slider-handle { .widget_price_filter .ui-slider .ui-slider-handle {
position: absolute; position: absolute;
z-index: 2; z-index: 2;
width: 1em; width: 1em;
height: 1em; height: 1em;
cursor: ew-resize; cursor: ew-resize;
outline: none; outline: none;
background: royalblue; background: royalblue;
box-sizing: border-box; box-sizing: border-box;
margin-top: -.25em; margin-top: -.25em;
opacity: 1; } opacity: 1;
.widget_price_filter .ui-slider .ui-slider-handle:last-child { }
margin-left: -1em; }
.widget_price_filter .ui-slider .ui-slider-handle:hover, .widget_price_filter .ui-slider .ui-slider-handle.ui-state-active { .widget_price_filter .ui-slider .ui-slider-handle:last-child {
box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1); } margin-left: -1em;
}
.widget_price_filter .ui-slider .ui-slider-handle:hover, .widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}
.widget_price_filter .ui-slider .ui-slider-range { .widget_price_filter .ui-slider .ui-slider-range {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
display: block; display: block;
border: 0; border: 0;
background: royalblue; } background: royalblue;
}
.widget_price_filter .price_slider_wrapper .ui-widget-content { .widget_price_filter .price_slider_wrapper .ui-widget-content {
background: rgba(0, 0, 0, 0.1); } background: rgba(0, 0, 0, 0.1);
}
.widget_price_filter .ui-slider-horizontal { .widget_price_filter .ui-slider-horizontal {
height: .5em; } height: .5em;
}
.widget_price_filter .ui-slider-horizontal .ui-slider-range { .widget_price_filter .ui-slider-horizontal .ui-slider-range {
height: 100%; } height: 100%;
}