woocommerce/assets/css/twenty-seventeen.scss

123 lines
1.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;
}
/**
* 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();
}
}
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;
}