woocommerce/assets/css/woocommerce.scss

2028 lines
31 KiB
SCSS
Raw Normal View History

2014-10-17 17:21:54 +00:00
/* =Imports
-------------------------------------------------------------- */
@import "bourbon";
@import "mixins";
@import "variables";
2014-11-13 17:42:09 +00:00
@import "animation";
2011-08-09 15:16:18 +00:00
2013-04-05 11:51:34 +00:00
/* =Custom Font
-------------------------------------------------------------- */
@font-face {
font-family: 'star';
src: url('../fonts/star.eot');
src: url('../fonts/star.eot?#iefix') format('embedded-opentype'),
2013-04-05 11:51:34 +00:00
url('../fonts/star.woff') format('woff'),
url('../fonts/star.ttf') format('truetype'),
url('../fonts/star.svg#star') format('svg');
font-weight: normal;
font-style: normal;
}
2013-08-20 10:21:55 +00:00
@font-face {
font-family: 'WooCommerce';
src: url('../fonts/WooCommerce.eot');
src: url('../fonts/WooCommerce.eot?#iefix') format('embedded-opentype'),
2013-08-20 10:21:55 +00:00
url('../fonts/WooCommerce.woff') format('woff'),
url('../fonts/WooCommerce.ttf') format('truetype'),
url('../fonts/WooCommerce.svg#WooCommerce') format('svg');
font-weight: normal;
font-style: normal;
}
2013-04-05 11:51:34 +00:00
2012-11-15 17:30:38 +00:00
/* =Global styles/layout
-------------------------------------------------------------- */
p.demo_store {
position: fixed;
2012-11-15 17:30:38 +00:00
top: 0;
left: 0;
right: 0;
margin: 0;
width: 100%;
font-size: 1em;
2014-11-13 16:26:50 +00:00
padding: 1em 0;
2012-11-15 17:30:38 +00:00
text-align: center;
2014-11-13 16:26:50 +00:00
background-color: $primary;
2014-09-22 17:35:48 +00:00
color: $primarytext;
2013-01-12 13:02:00 +00:00
z-index: 99998;
2014-11-13 16:26:50 +00:00
box-shadow: 0 1px 1em rgba(0,0,0,0.2);
2012-11-15 17:30:38 +00:00
}
2012-12-06 17:29:18 +00:00
.admin-bar { // Styles applied when the admin bar is present
p.demo_store {
2014-11-13 16:26:50 +00:00
top: 32px;
}
}
/* =Utilities
-------------------------------------------------------------- */
.wc-forward,
.wc-forward a {
&:after {
2014-11-14 09:47:45 +00:00
@include dashiconafter( "\f344" );
2014-11-14 09:59:12 +00:00
line-height: inherit;
}
}
2014-10-17 19:39:33 +00:00
.wc-backward,
.wc-backward a {
&:before {
2014-11-14 09:47:45 +00:00
@include dashiconbefore( "\f340" );
2014-11-14 09:59:12 +00:00
line-height: inherit;
}
}
2014-10-17 19:39:33 +00:00
.clear {
clear: both;
}
/* =Main Styles (namespace to avoid conflict with common global class names)
-------------------------------------------------------------- */
2014-11-13 11:43:26 +00:00
.woocommerce {
2014-11-13 18:28:15 +00:00
.blockUI.blockOverlay {
@include loader();
}
.loader {
@include loader();
}
2014-11-14 15:42:00 +00:00
a.remove {
display: block;
font-size: 1.5em;
height: 1em;
width: 1em;
text-align: center;
line-height: 1;
border-radius: 100%;
color: red !important;
text-decoration: none;
font-weight: 700;
&:hover {
color: #fff !important;
background: red;
}
}
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
2014-11-13 16:44:42 +00:00
padding: 1em 2em 1em 3.5em !important;
margin: 0 0 2em !important;
position: relative;
2014-11-13 16:44:42 +00:00
background-color: lighten($secondary,5%);
2014-09-22 17:35:48 +00:00
color: $secondarytext;
2014-11-13 16:44:42 +00:00
border-top: 3px solid $primary;
list-style: none outside !important;
2014-09-22 17:35:48 +00:00
@include clearfix();
width: auto;
&:before {
2014-11-13 16:44:42 +00:00
font-family: "WooCommerce";
content: "\e028";
display: inline-block;
position: absolute;
2014-11-13 16:44:42 +00:00
top: 1em;
left: 1.5em;
}
.button {
float: right;
}
li {
list-style: none outside !important;
padding-left: 0 !important;
margin-left: 0 !important;
}
}
.woocommerce-message {
2014-11-13 16:44:42 +00:00
border-top-color: #8fae1b;
&:before {
2014-11-13 16:44:42 +00:00
content: "\e015";
color: #8fae1b;
}
}
.woocommerce-info {
2014-11-13 16:44:42 +00:00
border-top-color: #1e85be;
&:before {
2014-11-13 16:44:42 +00:00
color: #1e85be;
}
}
.woocommerce-error {
2014-11-13 16:44:42 +00:00
border-top-color: #b81c23;
&:before {
2014-11-13 16:44:42 +00:00
content: "\e016";
color: #b81c23;
}
}
small.note {
display: block;
2014-09-22 17:35:48 +00:00
color: $subtext;
2014-11-14 10:36:19 +00:00
font-size: .857em;
margin-top: 10px;
}
2013-01-03 11:40:10 +00:00
.woocommerce-breadcrumb{
2014-09-22 17:35:48 +00:00
@include clearfix();
margin: 0 0 1em;
padding: 0;
font-size: 0.92em;
2014-09-22 17:35:48 +00:00
color: $subtext;
a {
2014-09-22 17:35:48 +00:00
color: $subtext;
}
}
/* =Product Page
-------------------------------------------------------------- */
div.product {
margin-bottom: 0;
position: relative;
/* Main product title */
.product_title {
clear: none;
margin-top: 0;
padding: 0;
2011-08-09 15:16:18 +00:00
}
/* Price */
span.price,
p.price {
2014-09-22 17:35:48 +00:00
color: $highlight;
font-size: 1.25em;
ins {
background: inherit;
font-weight: 700;
}
del {
opacity: 0.5;
display: block;
}
}
/* Stock */
p.stock {
font-size: 0.92em;
2011-08-09 15:16:18 +00:00
}
.stock {
2014-09-22 17:35:48 +00:00
color: $highlight;
}
.out-of-stock {
color: red;
}
/* Star rating */
.woocommerce-product-rating{
margin-bottom: 1.618em;
}
/* Product image and thumbnail */
div.images {
margin-bottom: 2em;
img {
display: block;
width: 100%;
height: auto;
2014-11-13 13:53:50 +00:00
box-shadow: none;
2011-08-09 15:16:18 +00:00
}
div.thumbnails {
padding-top: 1em;
2011-08-09 15:16:18 +00:00
}
}
/* Summary div (contains title, price etc) */
div.summary {
margin-bottom: 2em;
}
/* Social networking */
div.social {
text-align: right;
margin: 0 0 1em;
2011-08-09 15:16:18 +00:00
span {
margin: 0 0 0 2px;
span {
margin: 0;
}
.stButton .chicklets {
padding-left: 16px;
width: 0;
}
2011-08-09 15:16:18 +00:00
}
iframe {
float: left;
margin-top: 3px;
2011-08-09 15:16:18 +00:00
}
}
/* Tabs on the product page */
2013-01-03 11:40:10 +00:00
.woocommerce-tabs {
ul.tabs {
list-style: none;
padding: 0 0 0 1em;
margin: 0 0 1.618em;
overflow: hidden;
position: relative;
li {
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 10% );
2014-11-13 13:59:55 +00:00
background-color: $secondary;
display: inline-block;
position: relative;
z-index: 0;
2014-10-17 19:18:11 +00:00
border-radius: 4px 4px 0 0;
margin: 0 -5px;
padding: 0 1em;
a {
display: inline-block;
padding: .5em 0;
2014-11-13 14:16:32 +00:00
font-weight: 700;
2014-09-22 17:35:48 +00:00
color: $secondarytext;
text-decoration: none;
&:hover {
text-decoration: none;
2014-09-22 17:48:26 +00:00
color: lighten( $secondarytext, 10% );
}
}
&.active {
2014-09-22 17:35:48 +00:00
background: $contentbg;
z-index: 2;
2014-09-22 17:35:48 +00:00
border-bottom-color: $contentbg;
a {
color: inherit;
text-shadow: inherit;
}
&:before {
2014-09-22 17:35:48 +00:00
box-shadow: 2px 2px 0 $contentbg;
}
&:after {
2014-09-22 17:35:48 +00:00
box-shadow: -2px 2px 0 $contentbg;
}
}
&:before,
&:after {
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 10% );
position: absolute;
bottom: -1px;
width: 5px;
height: 5px;
content: " ";
}
&:before {
left: -6px;
-webkit-border-bottom-right-radius: 4px;
2013-10-19 17:48:07 +00:00
-moz-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
border-width: 0 1px 1px 0;
2014-11-13 13:59:55 +00:00
box-shadow: 2px 2px 0 $secondary;
}
&:after {
right: -6px;
-webkit-border-bottom-left-radius: 4px;
2013-10-19 17:48:07 +00:00
-moz-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
border-width: 0 0 1px 1px;
2014-11-13 13:59:55 +00:00
box-shadow: -2px 2px 0 $secondary;
}
}
&:before {
position: absolute;
content: " ";
width: 100%;
bottom: 0;
left: 0;
2014-09-22 17:48:26 +00:00
border-bottom: 1px solid darken( $secondary, 10% );
z-index: 1;
}
}
.panel {
margin: 0 0 2em;
padding: 0;
}
}
/* Cart button */
p.cart {
margin-bottom: 2em;
2014-09-22 17:35:48 +00:00
@include clearfix();
2011-08-09 15:16:18 +00:00
}
/* add to cart forms */
form.cart {
margin-bottom: 2em;
2014-09-22 17:35:48 +00:00
@include clearfix();
div.quantity {
float: left;
margin: 0 4px 0 0;
}
table {
border-width: 0 0 1px 0;
td {
padding-left: 0;
}
div.quantity {
float: none;
margin: 0;
}
small.stock {
display: block;
float: none;
}
}
.variations {
margin-bottom: 1em;
label {
2014-11-13 14:16:32 +00:00
font-weight: 700;
}
select {
width: 100%;
float: left;
}
td.label {
padding-right: 1em;
}
td {
vertical-align: top;
}
}
.button {
vertical-align: middle;
float: left;
}
.group_table {
td.label {
padding-right: 1em;
padding-left: 1em;
}
td {
vertical-align: top;
padding-bottom: .5em;
2014-11-13 11:47:54 +00:00
border: 0;
}
}
}
2011-08-09 15:16:18 +00:00
}
/* Sale labels */
span.onsale {
2014-11-13 13:52:34 +00:00
min-height: 3.236em;
min-width: 3.236em;
padding: .202em;
font-size: 1em;
2014-11-13 14:16:32 +00:00
font-weight: 700;
position: absolute;
text-align: center;
2014-11-14 10:36:19 +00:00
line-height: 3.236;
2014-11-13 13:52:34 +00:00
top: -.5em;
left: -.5em;
margin: 0;
2014-11-13 13:52:34 +00:00
border-radius: 100%;
background-color: $highlight;
2014-09-22 17:35:48 +00:00
color: $highlightext;
2014-11-13 13:52:34 +00:00
font-size: .857em;
-webkit-font-smoothing: antialiased;
}
2011-08-09 15:16:18 +00:00
2013-05-10 12:02:15 +00:00
/* =Product Loops
-------------------------------------------------------------- */
.products ul,
ul.products {
margin: 0 0 1em;
padding: 0;
list-style: none outside;
clear: both;
2014-09-22 17:35:48 +00:00
@include clearfix();
li {
list-style: none outside;
}
2012-01-06 14:02:34 +00:00
}
ul.products {
li.product {
.onsale {
top: 0;
right: 0;
left: auto;
2014-11-13 13:52:34 +00:00
margin: -.5em -.5em 0 0;
2011-08-09 15:16:18 +00:00
}
h3 {
padding: .5em 0;
margin: 0;
font-size: 1em;
2012-01-12 00:45:20 +00:00
}
a {
text-decoration: none;
}
a img {
width: 100%;
height: auto;
display: block;
2014-11-13 13:43:46 +00:00
margin: 0 0 1em;
2014-11-13 13:43:07 +00:00
box-shadow: none;
}
strong {
display: block;
}
2014-11-13 13:47:38 +00:00
.star-rating {
font-size: .857em;
}
2014-11-13 13:48:47 +00:00
.button {
margin-top: 1em;
}
.price {
2014-09-22 17:35:48 +00:00
color: $highlight;
display: block;
font-weight: normal;
margin-bottom: .5em;
2014-11-13 13:46:41 +00:00
font-size: .857em;
del {
2014-11-13 13:46:41 +00:00
color: inherit;
opacity: 0.5;
display: block;
}
ins {
background: none;
2014-11-13 13:46:41 +00:00
font-weight: 700;
}
.from {
font-size: 0.67em;
margin: -2px 0 0 0;
text-transform: uppercase;
2014-09-22 17:48:26 +00:00
color: rgba(desaturate($highlight, 75%), 0.5);
}
2011-08-09 15:16:18 +00:00
}
}
}
2013-01-03 11:40:10 +00:00
.woocommerce-result-count {
margin: 0 0 1em;
}
2013-01-03 11:40:10 +00:00
.woocommerce-ordering {
margin: 0 0 1em;
select {
vertical-align: top;
}
}
nav.woocommerce-pagination {
text-align: center;
ul {
display: inline-block;
white-space: nowrap;
padding: 0;
clear: both;
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 10% );
border-right: 0;
margin: 1px;
li {
2014-09-22 17:48:26 +00:00
border-right: 1px solid darken( $secondary, 10% );
padding: 0;
margin: 0;
float: left;
display: inline;
overflow: hidden;
a,
span {
margin: 0;
text-decoration: none;
padding: 0;
2014-11-14 10:36:19 +00:00
line-height: 1;
font-size: 1em;
font-weight: normal;
padding: .5em;
min-width: 1em;
display: block;
}
span.current,
a:hover,
a:focus {
2014-09-22 17:35:48 +00:00
background: $secondary;
2014-09-22 17:48:26 +00:00
color: darken( $secondary, 40% );
}
}
}
}
/* =Buttons
-------------------------------------------------------------- */
a.button,
button.button,
input.button,
#respond input#submit {
font-size: 100%;
margin: 0;
2014-11-14 10:36:19 +00:00
line-height: 1;
cursor: pointer;
position: relative;
font-family: inherit;
text-decoration: none;
overflow: visible;
padding: .618em 1em;
font-weight: 700;
border-radius: 3px;
left: auto;
2014-09-22 17:35:48 +00:00
color: $secondarytext;
background-color: $secondary;
border: 0;
2012-11-28 11:35:51 +00:00
white-space: nowrap;
2012-12-10 13:11:05 +00:00
display: inline-block;
background-image: none;
box-shadow: none;
-webkit-box-shadow: none;
2014-11-13 14:02:12 +00:00
text-shadow: none;
&.loading {
2014-11-13 13:42:10 +00:00
opacity: 0.25;
2014-11-13 17:42:09 +00:00
padding-right: 2.618em;
2014-11-13 17:42:09 +00:00
&:after {
2014-11-14 09:47:45 +00:00
font-family: "Dashicons";
content: "\f463";
vertical-align: top;
-webkit-font-smoothing: antialiased;
font-weight: 400;
position: absolute;
2014-11-13 17:42:09 +00:00
top: .618em;
right: 1em;
2014-11-13 18:28:15 +00:00
-webkit-animation: spin 2s linear infinite;
-moz-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
2011-09-13 14:58:06 +00:00
}
2013-02-13 15:56:47 +00:00
&.added {
&:after {
font-family: 'WooCommerce';
content: "\e017";
margin-left: .53em;
2014-11-13 13:42:10 +00:00
vertical-align: bottom;
}
2013-02-13 15:56:47 +00:00
}
&:hover {
background-color: $secondary - #111;
text-decoration: none;
background-image: none;
color: $secondarytext;
}
&.alt {
background-color: $primary;
2014-09-22 17:35:48 +00:00
color: $primarytext;
-webkit-font-smoothing: antialiased;
&:hover {
background-color: $primary - #111;
color: $primarytext;
}
2014-11-18 12:20:59 +00:00
&.disabled,
&:disabled,
&:disabled[disabled],
&.disabled:hover,
&:disabled:hover,
&:disabled[disabled]:hover {
background-color: $primary;
color: $primarytext;
}
2012-01-11 19:07:19 +00:00
}
2013-09-04 06:50:22 +00:00
&:disabled,
2014-11-18 12:20:59 +00:00
&.disabled,
&:disabled[disabled] {
color: inherit;
2013-09-04 06:50:22 +00:00
cursor: not-allowed;
2014-11-18 12:20:59 +00:00
opacity: 0.5;
2014-11-18 12:20:59 +00:00
&:hover {
color: inherit;
background-color: $secondary;
2013-09-20 11:08:56 +00:00
}
2013-09-04 06:50:22 +00:00
}
2012-01-11 19:07:19 +00:00
}
2011-08-09 15:16:18 +00:00
.cart .button,
.cart input.button {
float: none;
}
2012-12-10 13:11:05 +00:00
a.added_to_cart {
2013-02-13 15:56:47 +00:00
padding-top: .5em;
2012-12-10 13:11:05 +00:00
white-space: nowrap;
display: inline-block;
}
/* =Quantity inputs
-------------------------------------------------------------- */
.quantity {
position: relative;
margin: 0 auto;
overflow: hidden;
zoom: 1;
2014-11-13 14:34:16 +00:00
padding-right: 1.1em;
display: inline-block;
2012-12-06 17:29:18 +00:00
input.qty {
2014-11-13 14:24:25 +00:00
width: 2.618em;
height: 2.1em;
float: left;
padding: 0;
margin: 0;
text-align: center;
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 20% );
border-right: 0;
2014-11-13 14:16:32 +00:00
font-weight: 700;
2014-10-17 19:18:11 +00:00
border-radius: 2px 0 0 2px;
-moz-appearance: textfield; /* Hide buttons for Firefox 29 and later */
}
2012-12-06 17:29:18 +00:00
/* Hide buttons for opera */
noindex:-o-prefocus, input[type=number] {
padding-right: 1.2em;
}
.plus,
.minus {
display: block;
padding: 0;
margin: 0;
position: absolute;
text-align: center;
2014-11-13 14:24:25 +00:00
width: 1.387em;
height: 1.12em;
text-decoration: none;
overflow: visible;
text-decoration: none;
2014-11-13 14:16:32 +00:00
font-weight: 700;
cursor: pointer;
2014-09-22 17:35:48 +00:00
color: $secondarytext;
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 20% );
2014-11-13 14:24:25 +00:00
background-color: $secondary;
text-shadow: none;
line-height: 1;
2014-11-13 14:34:16 +00:00
background-image: none;
&:hover {
2014-11-13 14:24:25 +00:00
background-color: $secondary - #111;
}
}
.plus {
top: 0;
right: 0;
border-bottom: 0;
2014-10-17 19:18:11 +00:00
border-radius: 2px 2px 0 0;
}
.minus {
bottom: 0;
right: 0;
2014-10-17 19:18:11 +00:00
border-radius: 0 0 2px 2px;
}
}
/* =Reviews/comments
-------------------------------------------------------------- */
#reviews {
h2 small {
float: right;
2014-09-22 17:35:48 +00:00
color: $subtext;
font-size: 15px;
margin: 10px 0 0 0;
a {
text-decoration: none;
2014-09-22 17:35:48 +00:00
color: $subtext;
}
2011-08-09 15:16:18 +00:00
}
h3 {
margin: 0;
2011-08-09 15:16:18 +00:00
}
#respond {
2011-08-27 11:59:12 +00:00
margin: 0;
border: 0;
padding: 0;
}
#comment {
height: 75px;
}
#comments {
.add_review {
2014-09-22 17:35:48 +00:00
@include clearfix();
}
h2 {
clear: none;
}
ol.commentlist {
2014-09-22 17:35:48 +00:00
@include clearfix();
margin: 0;
width: 100%;
background: none;
2013-01-10 13:52:42 +00:00
list-style: none;
li {
padding: 0;
margin: 0 0 20px;
border: 0;
position: relative;
background: 0;
border: 0;
.meta {
2014-09-22 17:35:48 +00:00
color: $subtext;
font-size: 0.75em;
2011-08-09 15:16:18 +00:00
}
img.avatar {
float: left;
position: absolute;
top: 0;
left: 0;
padding: 3px;
width: 32px;
height: auto;
2014-09-22 17:35:48 +00:00
background: $secondary;
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 3% );
margin: 0;
2014-11-13 14:00:47 +00:00
box-shadow: none;
}
.comment-text {
margin: 0 0 0 50px;
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 3% );
2014-10-17 19:18:11 +00:00
border-radius: 4px;
padding: 1em 1em 0;
2014-09-22 17:35:48 +00:00
@include clearfix();
p {
margin: 0 0 1em;
}
p.meta {
font-size: 0.83em;
}
2011-08-09 15:16:18 +00:00
}
}
ul.children {
list-style: none outside;
margin: 20px 0 0 50px;
.star-rating {
display: none;
}
}
#respond {
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 3% );
2014-10-17 19:18:11 +00:00
border-radius: 4px;
padding: 1em 1em 0;
margin: 20px 0 0 50px;
}
2011-08-09 15:16:18 +00:00
}
.commentlist > li:before {
content: "";
}
}
2011-08-09 15:16:18 +00:00
}
2013-01-12 10:53:24 +00:00
/* Star rating */
.star-rating {
float: right;
2013-01-14 10:51:06 +00:00
overflow: hidden;
position: relative;
height: 1em;
2014-11-14 10:36:19 +00:00
line-height: 1;
2013-01-14 10:51:06 +00:00
font-size: 1em;
width: 5.4em;
2013-04-05 11:51:34 +00:00
font-family: 'star';
2013-01-14 10:51:06 +00:00
&:before {
2013-04-05 11:51:34 +00:00
content: "\73\73\73\73\73";
2014-09-22 17:48:26 +00:00
color: darken( $secondary, 10% );
2013-01-14 10:51:06 +00:00
float: left;
top: 0;
left: 0;
position: absolute;
}
span {
2013-01-14 10:51:06 +00:00
overflow: hidden;
float: left;
top: 0;
left: 0;
position: absolute;
padding-top: 1.5em;
}
2013-01-14 10:51:06 +00:00
span:before {
2013-04-05 11:51:34 +00:00
content: "\53\53\53\53\53";
2013-01-14 10:51:06 +00:00
top: 0;
position: absolute;
left: 0;
2011-08-09 15:16:18 +00:00
}
2011-09-05 09:04:17 +00:00
}
.woocommerce-product-rating {
@include clearfix();
2014-11-14 10:36:19 +00:00
line-height: 2;
display: block;
.star-rating {
margin: .5em 4px 0 0;
float: left;
}
}
2013-01-12 10:53:24 +00:00
.products {
.star-rating {
display: block;
margin: 0 0 .5em;
float: none;
}
}
.hreview-aggregate {
.star-rating {
margin: 10px 0 0 0;
2011-09-05 09:04:17 +00:00
}
}
2011-08-09 15:16:18 +00:00
#review_form {
#respond {
2014-09-22 17:35:48 +00:00
@include clearfix();
position: static;
margin: 0;
width: auto;
padding: 0 0 0;
background: transparent none;
border: 0;
p {
margin: 0 0 10px;
}
.form-submit {
input {
left: auto;
}
}
textarea {
2014-11-13 11:12:21 +00:00
@include box-sizing(border-box);
width: 100%;
}
}
2011-08-09 15:16:18 +00:00
}
p.stars {
position: relative;
font-size: 1em;
a {
display: inline-block;
font-weight: 700;
margin-right: 1em;
text-indent: -9999px;
2013-04-17 10:19:52 +00:00
position: relative;
&:last-child {
border-right: 0;
}
&.star-1,
&.star-2,
&.star-3,
&.star-4,
&.star-5 {
border-right: 1px solid #ccc;
&:after {
font-family: "WooCommerce";
text-indent: 0;
position: absolute;
top: 0;
left: 0;
}
}
&.star-1 {
width: 2em;
&:after {
content: "\e021";
}
&:hover:after,
&.active:after {
content: "\e020"
}
}
&.star-2 {
width: 3em;
&:after {
content: "\e021\e021";
}
&:hover:after,
&.active:after {
content: "\e020\e020"
}
}
&.star-3 {
width: 4em;
&:after {
content: "\e021\e021\e021";
}
&:hover:after,
&.active:after {
content: "\e020\e020\e020"
}
}
&.star-4 {
width: 5em;
&:after {
content: "\e021\e021\e021\e021";
}
&:hover:after,
&.active:after {
content: "\e020\e020\e020\e020"
}
2013-04-17 10:19:52 +00:00
}
&.star-5 {
width: 6em;
border: 0;
&:after {
content: "\e021\e021\e021\e021\e021";
}
&:hover:after,
&.active:after {
content: "\e020\e020\e020\e020\e020"
}
2013-04-17 10:19:52 +00:00
}
}
}
/* =Tables
-------------------------------------------------------------- */
table.shop_attributes {
border: 0;
border-top: 1px dotted rgba(0,0,0,0.1);
margin-bottom: 1.618em;
width: 100%;
th {
width: 150px;
2014-11-13 14:16:32 +00:00
font-weight: 700;
padding: 8px;
border-top: 0;
border-bottom: 1px dotted rgba(0,0,0,0.1);
margin: 0;
2014-11-14 10:36:19 +00:00
line-height: 1.5;
}
td {
font-style: italic;
padding: 0;
border-top: 0;
border-bottom: 1px dotted rgba(0,0,0,0.1);
margin: 0;
2014-11-14 10:36:19 +00:00
line-height: 1.5;
p {
margin: 0;
padding: 8px 0;
}
}
.alt td,
.alt th {
background: rgba(0,0,0,0.025);
}
}
table.shop_table {
border: 1px solid rgba(0,0,0,0.1);
margin: 0px -1px 24px 0px;
text-align: left;
width: 100%;
border-collapse: separate;
2014-10-17 19:18:11 +00:00
border-radius: 5px;
th {
2014-11-13 14:16:32 +00:00
font-weight: 700;
padding: 9px 12px;
}
td {
border-top: 1px solid rgba(0,0,0,0.1);
padding: 6px 12px;
vertical-align: middle;
small {
font-weight: normal;
}
}
2014-10-16 16:00:56 +00:00
tbody {
tr:first-child {
th,
td {
border-top: 0;
}
}
}
2014-10-16 16:00:56 +00:00
tfoot td,
tfoot th,
tbody th {
2014-11-13 14:16:32 +00:00
font-weight: 700;
border-top: 1px solid rgba(0,0,0,0.1);
}
}
table.my_account_orders {
font-size: 0.85em;
th,
td {
padding: 4px 8px;
vertical-align: middle;
}
.button {
white-space: nowrap;
}
.order-actions {
text-align: right;
.button {
margin: .125em 0 .125em .25em;
}
}
}
td.product-name {
dl.variation {
2013-06-20 10:20:49 +00:00
margin: .25em 0;
2014-09-22 17:35:48 +00:00
@include clearfix();
2013-11-19 10:30:53 +00:00
dt,
dd {
2013-11-15 16:38:21 +00:00
display: inline-block;
float: left;
margin-bottom: 1em;
2013-06-20 10:20:49 +00:00
}
dt {
2014-11-13 14:16:32 +00:00
font-weight: 700;
2013-06-20 10:20:49 +00:00
padding: 0 0 .25em 0;
margin: 0 4px 0 0;
clear: left;
}
dd {
2013-06-20 10:20:49 +00:00
padding: 0 0 .25em 0;
2013-11-15 16:38:21 +00:00
p:last-child {
margin-bottom: 0;
2013-11-15 16:38:21 +00:00
}
}
}
p.backorder_notification {
font-size: 0.83em;
}
}
td.product-quantity {
min-width: 80px;
}
/* =Cart Sidebar
-------------------------------------------------------------- */
ul.cart_list,
ul.product_list_widget {
list-style: none outside;
padding: 0;
2011-08-27 11:59:12 +00:00
margin: 0;
li {
padding: 4px 0;
margin: 0;
2014-09-22 17:35:48 +00:00
@include clearfix();
list-style: none;
a {
display: block;
2014-11-13 14:16:32 +00:00
font-weight: 700;
}
img {
float: right;
margin-left: 4px;
width: 32px;
height: auto;
2014-11-13 16:11:30 +00:00
box-shadow: none;
2012-01-12 15:25:13 +00:00
}
dl {
margin: 0;
padding-left: 1em;
border-left: 2px solid rgba(0,0,0,0.1);
2014-09-22 17:35:48 +00:00
@include clearfix();
dt,
dd {
2013-11-15 16:38:21 +00:00
display: inline-block;
float: left;
margin-bottom: 1em;
2013-06-20 10:20:49 +00:00
}
dt {
2014-11-13 14:16:32 +00:00
font-weight: 700;
2013-06-20 10:20:49 +00:00
padding: 0 0 .25em 0;
margin: 0 4px 0 0;
clear: left;
}
dd {
2013-06-20 10:20:49 +00:00
padding: 0 0 .25em 0;
2013-11-15 16:38:21 +00:00
p:last-child {
margin-bottom: 0;
2013-11-15 16:38:21 +00:00
}
}
}
.star-rating {
float: none;
2012-01-12 15:25:13 +00:00
}
2012-01-12 16:41:44 +00:00
}
2011-08-09 15:16:18 +00:00
}
&.widget_shopping_cart,
.widget_shopping_cart {
.total {
2014-09-22 17:35:48 +00:00
border-top: 3px double $secondary;
padding: 4px 0 0;
strong {
min-width: 40px;
display: inline-block;
}
}
2014-11-14 15:42:00 +00:00
.cart_list {
li {
padding-left: 2em;
position: relative;
padding-top: 0;
a.remove {
position: absolute;
top: 0;
left: 0;
}
}
}
.buttons {
2014-09-22 17:35:48 +00:00
@include clearfix();
2011-08-09 15:16:18 +00:00
}
}
/* =Forms
-------------------------------------------------------------- */
2011-08-09 15:16:18 +00:00
form {
.form-row {
padding: 3px;
margin: 0 0 6px;
2013-03-27 14:59:52 +00:00
[placeholder]:focus::-webkit-input-placeholder {
-webkit-transition: opacity 0.5s 0.5s ease;
-moz-transition: opacity 0.5s 0.5s ease;
transition: opacity 0.5s 0.5s ease;
opacity: 0;
}
label {
2014-11-14 10:36:19 +00:00
line-height: 2;
}
label.hidden {
visibility: hidden;
}
2013-10-25 15:10:09 +00:00
label.inline {
display: inline;
}
select {
cursor: pointer;
margin: 0;
}
.required {
color: red;
2014-11-13 14:16:32 +00:00
font-weight: 700;
border: 0;
}
.input-checkbox {
display: inline;
margin: -2px 8px 0 0;
text-align: center;
vertical-align: middle;
}
input.input-text,
textarea {
@include box-sizing(border-box);
width: 100%;
margin: 0;
outline: 0;
2014-11-14 10:36:19 +00:00
line-height: 1;
}
textarea {
height: 4em;
2014-11-14 10:36:19 +00:00
line-height: 1.5;
display: block;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
2014-11-14 10:50:44 +00:00
&.woocommerce-invalid {
.chosen-single,
.chosen-drop,
input.input-text,
select {
2014-11-14 10:50:44 +00:00
border-color: $red;
}
}
&.woocommerce-validated {
.chosen-single,
.chosen-drop,
input.input-text,
select {
border-color: $green - #111;
2012-12-10 14:50:49 +00:00
}
}
2012-12-10 14:50:49 +00:00
::-webkit-input-placeholder {
line-height: normal;
2012-12-10 14:50:49 +00:00
}
2012-12-10 14:50:49 +00:00
:-moz-placeholder {
line-height: normal;
2012-12-10 14:50:49 +00:00
}
2012-12-10 14:50:49 +00:00
:-ms-input-placeholder {
line-height: normal;
2012-12-10 14:50:49 +00:00
}
}
2011-08-09 15:16:18 +00:00
}
form.login,
form.checkout_coupon,
form.register {
2014-09-22 17:48:26 +00:00
border: 1px solid darken( $secondary, 10% );
padding: 20px;
margin: 2em 0 2em 0px;
text-align: left;
2014-10-17 19:18:11 +00:00
border-radius: 5px;
}
ul#shipping_method {
2012-05-13 20:02:07 +00:00
list-style: none outside;
margin: 0;
padding: 0;
li {
margin: 0;
padding: .25em 0 .25em 22px;
text-indent: -22px;
list-style: none outside;
}
.amount {
2014-11-13 14:16:32 +00:00
font-weight: 700;
}
2012-05-13 20:02:07 +00:00
}
p.woocommerce-shipping-contents {
margin: 0;
}
2012-05-13 20:02:07 +00:00
2014-11-13 11:43:26 +00:00
/* =Order Page
-------------------------------------------------------------- */
2014-11-13 11:43:26 +00:00
.order_details {
@include clearfix();
margin: 0 0 1.5em;
list-style: none;
2014-11-13 11:43:26 +00:00
li {
float: left;
margin-right: 2em;
text-transform: uppercase;
font-size: 0.715em;
2014-11-14 10:36:19 +00:00
line-height: 1;
2014-11-13 11:43:26 +00:00
border-right: 1px dashed darken( $secondary, 10% );
padding-right: 2em;
2014-11-13 11:43:26 +00:00
strong {
display: block;
font-size: 1.4em;
text-transform: none;
2014-11-14 10:36:19 +00:00
line-height: 1.5;
}
2014-11-13 11:43:26 +00:00
&:last-of-type {
border: none;
}
2013-03-28 23:13:23 +00:00
}
}
2011-08-09 15:16:18 +00:00
2014-11-13 11:43:26 +00:00
/* =Layered Nav Widget
-------------------------------------------------------------- */
2014-11-13 11:43:26 +00:00
.widget_layered_nav {
ul {
2011-08-27 11:59:12 +00:00
margin: 0;
2014-11-13 11:43:26 +00:00
padding: 0;
border: 0;
list-style: none outside;
li {
2014-11-13 11:43:26 +00:00
@include clearfix();
padding: 0 0 1px;
list-style: none;
2014-11-13 11:43:26 +00:00
a,
span {
padding: 1px 0;
}
2014-11-13 11:43:26 +00:00
}
2014-11-13 11:43:26 +00:00
li.chosen {
a {
&:before {
2014-11-14 10:49:01 +00:00
@include dashiconbefore( "\f153" );
color: $red;
2014-11-13 11:43:26 +00:00
}
}
2011-08-09 15:16:18 +00:00
}
}
2014-11-13 11:43:26 +00:00
}
.widget_layered_nav_filters {
ul {
margin: 0;
padding: 0;
border: 0;
list-style: none outside;
overflow: hidden;
zoom: 1;
li {
float: left;
padding: 0 1px 1px 0;
list-style: none;
a {
2013-08-20 10:21:55 +00:00
&:before {
2014-11-14 10:49:01 +00:00
@include dashiconbefore( "\f153" );
color: $red;
2013-08-20 10:21:55 +00:00
}
}
}
2011-08-09 15:16:18 +00:00
}
}
2012-01-13 12:34:44 +00:00
/* =Price Filter Widget
-------------------------------------------------------------- */
2012-01-13 12:34:44 +00:00
.widget_price_filter {
.price_slider {
margin-bottom: 1em;
2012-01-13 12:34:44 +00:00
}
.price_slider_amount {
text-align: right;
2014-11-14 10:36:19 +00:00
line-height: 2.4;
font-size: 0.8751em;
.button {
font-size: 1.15em;
}
.button {
float: left;
}
2012-01-13 12:34:44 +00:00
}
.ui-slider {
position: relative;
text-align: left;
}
.ui-slider .ui-slider-handle {
position: absolute;
z-index: 2;
2014-11-13 16:22:13 +00:00
width: 1em;
height: 1em;
background-color: $primary;
2014-10-17 19:18:11 +00:00
border-radius: 1em;
2014-11-13 16:22:13 +00:00
cursor: ew-resize;
outline: none;
top: -.3em;
&:last-child {
2014-11-13 16:22:13 +00:00
margin-left: -.8em;
}
}
.ui-slider .ui-slider-range {
position: absolute;
z-index: 1;
font-size: .7em;
display: block;
border: 0;
2014-10-17 19:18:11 +00:00
border-radius: 1em;
2014-11-13 11:14:57 +00:00
background-color: $primary;
}
.price_slider_wrapper .ui-widget-content {
2014-10-17 19:18:11 +00:00
border-radius: 1em;
2014-11-13 16:22:13 +00:00
background-color: $primary - #444;
border: 0;
}
.ui-slider-horizontal {
height: .5em;
}
.ui-slider-horizontal .ui-slider-range {
top: 0;
height: 100%;
}
.ui-slider-horizontal .ui-slider-range-min {
left: -1px;
2012-01-13 12:34:44 +00:00
}
.ui-slider-horizontal .ui-slider-range-max {
right: -1px;
}
2012-01-13 12:34:44 +00:00
}
2014-11-13 11:43:26 +00:00
} // end .woocommerce namespacing wrap
/* =Account Page
-------------------------------------------------------------- */
.woocommerce-account {
.addresses {
.title {
@include clearfix();
h3 {
float: left;
}
.edit {
float: right;
}
}
}
2013-04-05 15:17:39 +00:00
2014-11-13 11:43:26 +00:00
ol.commentlist.notes {
li.note {
p.meta {
2014-11-13 14:16:32 +00:00
font-weight: 700;
2014-11-13 11:43:26 +00:00
margin-bottom: 0;
}
.description {
p:last-child {
margin-bottom: 0;
}
}
}
}
ul.digital-downloads {
margin-left: 0;
padding-left: 0;
li {
list-style: none;
margin-left: 0;
padding-left: 0;
&:before {
@include iconbefore( "\e00a" );
}
.count {
float: right;
}
}
}
} // end .woocommerce-account namespacing wrap
/* =Cart Page
-------------------------------------------------------------- */
.woocommerce-cart {
table.cart {
.product-thumbnail {
min-width: 32px;
}
img {
width: 32px;
2014-11-14 10:36:52 +00:00
box-shadow: none;
2014-11-13 11:43:26 +00:00
}
th,
td {
vertical-align: middle;
}
td.actions {
.coupon {
.input-text {
float: left;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid darken( $secondary, 10% );
padding: 6px 6px 5px;
margin: 0 4px 0 0;
outline: 0;
2014-11-14 10:36:19 +00:00
line-height: 1;
2014-11-13 11:43:26 +00:00
}
}
}
input {
margin: 0;
vertical-align: middle;
2014-11-14 10:36:19 +00:00
line-height: 1;
2014-11-13 11:43:26 +00:00
}
}
.wc-proceed-to-checkout {
@include clearfix;
padding: 1em 0;
a.checkout-button {
display: block;
text-align: center;
margin-bottom: 1em;
}
}
.cart-collaterals {
.shipping_calculator {
.button {
width: 100%;
float: none;
display: block;
}
.shipping-calculator-button {
&:after {
2014-11-14 09:47:45 +00:00
@include iconafter( "\e019" );
2014-11-13 11:43:26 +00:00
}
}
}
.cart_totals {
p {
margin: 0;
small {
color: $subtext;
font-size: 0.83em;
}
}
table {
border-collapse: separate;
border-radius: 5px;
margin: 0 0 6px;
padding: 0;
tr:first-child {
th,
td {
border-top: 0;
}
}
th {
padding: 6px 12px 0 0;
width: 25%;
}
td {
padding: 6px 0;
}
td,
th {
vertical-align: top;
}
small {
display: block;
color: $subtext;
}
select {
width: 100%;
}
}
.discount td {
color: $highlight;
}
tr td,
tr th {
border-top: 1px solid $secondary;
}
}
.cross-sells {
ul.products {
li.product {
margin-top: 0;
}
}
}
}
} // end .woocommerce-cart namespacing wrap
/* =Checkout
-------------------------------------------------------------- */
.woocommerce-checkout {
.checkout {
.col-2 {
h3#ship-to-different-address {
float: left;
clear: none;
}
.notes {
clear: left;
}
.form-row-first {
clear: left;
}
}
.create-account small {
font-size: 11px;
color: $subtext;
font-weight: normal;
}
div.shipping-address {
padding: 0;
clear: left;
width: 100%;
}
.shipping_address {
clear: both;
}
}
/* Payment box - appears on checkout and page page */
#payment {
background: $secondary;
border-radius: 5px;
ul.payment_methods {
@include clearfix();
text-align: left;
padding: 1em;
border-bottom: 1px solid darken( $secondary, 10% );
margin: 0;
list-style: none outside;
li {
2014-11-14 10:36:19 +00:00
line-height: 2;
2014-11-13 11:43:26 +00:00
text-align: left;
margin: 0;
font-weight: normal;
input {
margin: 0 1em 0 0;
}
img {
vertical-align: middle;
margin: -2px 0 0 .5em;
padding: 0;
position: relative;
box-shadow: none;
}
img + img {
margin-left: 2px;
}
}
}
div.form-row {
padding: 1em;
}
div.payment_box {
position: relative;
width: 96%;
padding: 1em 2%;
margin: 1em 0 1em 0;
font-size: 0.92em;
border-radius: 2px;
2014-11-14 10:36:19 +00:00
line-height: 1.5;
2014-11-14 10:29:20 +00:00
background-color: darken( $secondary, 5% );
2014-11-13 11:43:26 +00:00
color: $secondarytext;
input.input-text, textarea {
border-color: darken( $secondary, 15% );
border-top-color: darken( $secondary, 20% );
}
::-webkit-input-placeholder {
color: darken( $secondary, 20% );
}
:-moz-placeholder {
color: darken( $secondary, 20% );
}
:-ms-input-placeholder {
color: darken( $secondary, 20% );
}
.wc-credit-card-form-card-number,
.wc-credit-card-form-card-expiry,
.wc-credit-card-form-card-cvc {
font-size: 1.5em;
padding: 8px;
background-repeat: no-repeat;
background-position: right;
&.visa {
background-image: url(../images/icons/credit-cards/visa.png);
}
&.mastercard {
background-image: url(../images/icons/credit-cards/mastercard.png);
}
&.laser {
background-image: url(../images/icons/credit-cards/laser.png);
}
&.dinersclub {
background-image: url(../images/icons/credit-cards/diners.png);
}
&.maestro {
background-image: url(../images/icons/credit-cards/maestro.png);
}
&.jcb {
background-image: url(../images/icons/credit-cards/jcb.png);
}
&.amex {
background-image: url(../images/icons/credit-cards/amex.png);
}
&.discover {
background-image: url(../images/icons/credit-cards/discover.png);
}
}
span.help {
2014-11-14 10:36:19 +00:00
font-size: .857em;
2014-11-13 11:43:26 +00:00
color: $subtext;
font-weight: normal;
}
.form-row {
margin: 0 0 1em;
}
p:last-child {
margin-bottom: 0;
}
&:after {
content: "";
display: block;
border: 8px solid darken( $secondary, 5% ); /* arrow size / color */
border-right-color: transparent;
border-left-color: transparent;
border-top-color: transparent;
position: absolute;
top: -3px;
left: 0;
margin: -1em 0 0 2em;
}
}
.payment_method_paypal {
.about_paypal {
float: right;
line-height: 52px;
font-size: 0.83em;
}
img {
max-height: 52px;
vertical-align: middle;
}
}
}
} // end .woocommerce-checkout namespacing wrap
2013-04-05 15:17:39 +00:00
2014-11-13 14:06:47 +00:00
/* =Twenty Eleven Specific styles
-------------------------------------------------------------- */
#content.twentyeleven {
.woocommerce-pagination {
a {
font-size: 1em;
line-height: 1;
}
}
}
2013-04-05 15:17:39 +00:00
/* =Twenty Thirteen Specific styles
-------------------------------------------------------------- */
2014-02-11 16:20:05 +00:00
.single-product {
.twentythirteen {
2014-02-17 12:49:19 +00:00
.entry-summary,
#reply-title,
#respond #commentform {
2014-02-11 16:20:05 +00:00
padding: 0;
}
2014-02-17 12:49:19 +00:00
p.stars {
clear: both;
}
2013-04-05 15:17:39 +00:00
}
}
2014-04-30 10:07:51 +00:00
.twentythirteen {
.woocommerce-breadcrumb {
padding-top: 40px;
}
}
2014-01-22 10:44:53 +00:00
/* =Twenty Fourteen Specific styles
-------------------------------------------------------------- */
.twentyfourteen {
ul.products {
li.product {
margin-top: 0 !important;
}
}
}