woocommerce/assets/css/twenty-seventeen.scss

652 lines
8.7 KiB
SCSS
Raw Normal View History

/**
* Twenty Seventeen integration styles
*/
2016-11-25 16:10:58 +00:00
@import 'bourbon';
/**
* Fonts
*/
@font-face {
font-family: 'star';
src: url('../fonts/star.eot');
src: url('../fonts/star.eot?#iefix') format('embedded-opentype'),
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;
}
2016-11-28 12:47:04 +00:00
@font-face {
font-family: 'WooCommerce';
src: url('../fonts/WooCommerce.eot');
src: url('../fonts/WooCommerce.eot?#iefix') format('embedded-opentype'),
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;
}
2016-11-25 16:10:58 +00:00
/**
* Mixins
*/
2016-11-25 16:14:57 +00:00
@mixin link() {
2016-11-25 16:10:58 +00:00
box-shadow: 0 1px 0 rgba(15, 15, 15, 1);
@include transition( box-shadow ease-in-out 130ms );
&:hover {
box-shadow: 0 3px 0 rgba(15, 15, 15, 1);
}
}
2016-11-25 16:18:50 +00:00
/**
* Global elements
*/
.woocommerce-breadcrumb {
padding-bottom: 2em;
margin-bottom: 4em;
border-bottom: 1px solid #eee;
font-size: 13px;
font-size: 0.8125rem;
a {
@include link();
}
}
.woocommerce-pagination {
padding-top: 2em;
margin-top: 4em;
border-top: 1px solid #eee;
font-size: 13px;
font-size: 0.8125rem;
ul.page-numbers {
padding: 0;
}
span.page-numbers,
a.page-numbers,
.next.page-numbers,
.prev.page-numbers {
padding: 0.5em 1em;
background: #ddd;
display: inline-block;
font-size: 1em;
float: none;
line-height: 1.5;
border-radius: 2px;
@include transition( background-color ease-in-out .3s );
}
span.page-numbers {
background-color: #fff;
}
a.page-numbers:hover {
background-color: #767676;
color: #fff;
}
}
.onsale {
background-color: #fff;
position: absolute;
top: 0;
left: 0;
display: inline-block;
padding: .5em 1em;
font-size: 13px;
font-size: 0.8125rem;
text-transform: uppercase;
font-weight: 800;
}
.price {
del {
opacity: .5;
}
}
2016-11-28 12:47:04 +00:00
.required {
2016-11-28 13:26:02 +00:00
color: firebrick;
}
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
margin-bottom: 1.5em;
padding: 2em;
background: #eee;
}
.woocommerce-message {
background: teal;
color: #fff;
}
.woocommerce-error {
background: firebrick;
color: #fff;
}
.woocommerce-info {
background: royalblue;
color: #fff;
}
.woocommerce-store-notice {
background: royalblue;
color: #fff;
padding: 1em;
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 999;
}
.admin-bar .woocommerce-store-notice {
top: 32px;
}
.woocommerce-store-notice__dismiss-link {
float: right;
color: #fff;
&:hover {
text-decoration: underline;
color: #fff;
}
2016-11-28 12:47:04 +00:00
}
2016-11-25 16:10:58 +00:00
/**
* Shop page
*/
.woocommerce-result-count {
padding: .75em 0;
}
/**
* Products
*/
ul.products {
li.product {
list-style: none;
.price,
.star-rating {
display: block;
margin-bottom: .75em;
}
.button {
2016-11-25 16:14:57 +00:00
@include link();
2016-11-25 16:10:58 +00:00
&.loading {
opacity: .5;
}
}
.added_to_cart {
2016-11-25 16:14:57 +00:00
@include link();
2016-11-25 16:10:58 +00:00
margin-left: .5em;
}
}
}
.star-rating {
overflow: hidden;
position: relative;
height: 1em;
line-height: 1;
font-size: 1em;
width: 5.4em;
font-family: 'star';
&::before {
content: '\73\73\73\73\73';
float: left;
top: 0;
left: 0;
position: absolute;
}
span {
overflow: hidden;
float: left;
top: 0;
left: 0;
position: absolute;
padding-top: 1.5em;
}
span::before {
content: '\53\53\53\53\53';
top: 0;
position: absolute;
left: 0;
}
}
.woocommerce-loop-product__title {
font-size: 13px;
font-size: 0.8125rem;
text-transform: uppercase;
font-weight: 800;
letter-spacing: 0.15em;
}
2016-11-28 14:49:18 +00:00
a.remove {
display: inline-block;
width: 1em;
height: 1em;
line-height: 1;
text-align: center;
border-radius: 100%;
box-shadow: none !important;
-webkit-box-shadow: none !important;
border: 1px solid #000;
&:hover {
background: #000;
color: #fff !important;
}
}
dl.variation {
dt {
float: left;
clear: both;
margin-right: .25em;
display: inline-block;
}
dd {
margin: 0;
}
}
/**
* Single product
*/
.single-product {
div.product {
position: relative;
}
.single-featured-image-header {
display: none;
}
2016-11-28 12:47:04 +00:00
.summary {
2016-11-28 15:28:12 +00:00
margin-bottom: 3em;
2016-11-28 13:12:17 +00:00
p.price {
margin-bottom: 2em;
}
}
.woocommerce-product-rating {
margin-bottom: 2em;
line-height: 1;
.star-rating {
float: left;
margin-right: .25em;
}
}
form.cart {
.quantity {
float: left;
margin-right: .5em;
}
input {
width: 5em;
}
}
.woocommerce-variation-add-to-cart {
.button {
padding-top: .72em;
padding-bottom: .72em;
}
}
}
table.variations {
label {
margin: 0;
}
select {
margin-right: .5em;
2016-11-28 12:47:04 +00:00
}
2016-11-28 12:33:46 +00:00
}
.woocommerce-product-gallery {
position: relative;
2016-11-28 15:28:12 +00:00
margin-bottom: 3em;
2016-11-28 12:33:46 +00:00
figure {
margin: 0;
}
.flex-control-thumbs {
li {
list-style: none;
float: left;
cursor: pointer;
}
img {
opacity: .5;
&:hover,
&.flex-active {
opacity: 1;
}
}
}
img {
display: block;
}
}
.woocommerce-product-gallery--columns-3 {
.flex-control-thumbs li {
width: 33.3333%;
}
}
.woocommerce-product-gallery--columns-4 {
.flex-control-thumbs li {
width: 25%;
}
}
.woocommerce-product-gallery--columns-5 {
.flex-control-thumbs li {
width: 20%;
}
}
.woocommerce-product-gallery__trigger {
position: absolute;
top: 1em;
right: 1em;
z-index: 99;
2016-11-28 12:47:04 +00:00
}
.woocommerce-tabs {
margin-bottom: 2em;
li {
margin-right: 1em;
&.active {
a {
box-shadow: 0 3px 0 rgba(15, 15, 15, 1);
}
}
}
a {
@include link();
}
#comments {
padding-top: 0;
}
.comment-reply-title {
font-size: 22px;
font-size: 1.375rem;
font-weight: 300;
line-height: 1.4;
margin: 0 0 0.75em;
display: block;
}
#reviews {
li.comment {
list-style: none;
margin-right: 0;
.avatar {
2016-11-28 13:32:26 +00:00
max-height: 36px;
width: auto;
2016-11-28 12:47:04 +00:00
}
}
p.stars {
a {
position: relative;
height: 1em;
width: 1em;
text-indent: -999em;
display: inline-block;
text-decoration: none;
box-shadow: none;
&::before {
display: block;
position: absolute;
top: 0;
left: 0;
width: 1em;
height: 1em;
line-height: 1;
font-family: 'WooCommerce';
content: '\e021';
text-indent: 0;
}
&:hover {
~ a::before {
content: '\e021';
}
}
}
&:hover {
a {
&::before {
content: '\e020';
}
}
}
&.selected {
a.active {
&::before {
content: '\e020';
}
~ a::before {
content: '\e021';
}
}
a:not( .active ) {
&::before {
content: '\e020';
}
}
}
}
}
}
2016-11-28 14:49:18 +00:00
/**
* Widgets
*/
2016-11-28 15:26:23 +00:00
.widget .product_list_widget,
.site-footer .widget .product_list_widget {
2016-11-28 14:49:18 +00:00
margin-bottom: 1.5em;
a {
display: block;
box-shadow: none;
&:hover {
box-shadow: none;
}
}
li {
padding: 1.5em 0;
a.remove {
float: right;
}
}
img {
display: none;
}
}
.widget_shopping_cart {
.buttons {
a {
display: inline-block;
margin: 0 .5em 0 0;
}
}
}
2016-11-28 14:52:43 +00:00
.widget_layered_nav {
.chosen {
&:before {
content: "×";
display: inline-block;
width: 1em;
height: 1em;
line-height: 1;
text-align: center;
border-radius: 100%;
border: 1px solid black;
margin-right: .25em;
}
}
}
2016-11-28 14:57:36 +00:00
.widget_price_filter {
.price_slider {
margin-bottom: 1em;
}
.price_slider_amount {
text-align: right;
line-height: 2.4;
font-size: 0.8751em;
.button {
float: left;
padding: .4em 1em;
}
}
.ui-slider {
position: relative;
text-align: left;
margin-left: 0.5em;
margin-right: 0.5em;
}
.ui-slider .ui-slider-handle {
position: absolute;
z-index: 2;
width: 1em;
height: 1em;
background-color: #000;
border-radius: 1em;
cursor: ew-resize;
outline: none;
top: -0.3em;
margin-left: -0.5em;
}
.ui-slider .ui-slider-range {
position: absolute;
z-index: 1;
font-size: 0.7em;
display: block;
border: 0;
border-radius: 1em;
background-color: #000;
}
.price_slider_wrapper .ui-widget-content {
border-radius: 1em;
background-color: #666;
border: 0;
}
.ui-slider-horizontal {
height: 0.5em;
}
.ui-slider-horizontal .ui-slider-range {
top: 0;
height: 100%;
}
.ui-slider-horizontal .ui-slider-range-min {
left: -1px;
}
.ui-slider-horizontal .ui-slider-range-max {
right: -1px;
}
}
2016-11-28 15:01:14 +00:00
.widget_rating_filter {
li {
text-align: right;
.star-rating {
float: left;
margin-top: .3em;
}
}
}
2016-11-28 15:06:32 +00:00
.widget_product_search {
form {
position: relative;
}
.search-field {
padding-right: 100px;
}
input[type=submit] {
position: absolute;
top: .5em;
right: .5em;
padding-left: 1em;
padding-right: 1em;
}
}
/**
* Layout stuff
*/
@media screen and (min-width: 48em) {
.has-sidebar.woocommerce-page:not(.error404) {
#primary {
width: 74%;
}
#secondary {
width: 20%;
}
}
2016-11-25 16:10:58 +00:00
}