Skip to content

Instantly share code, notes, and snippets.

@artlipsky
Last active April 10, 2019 11:24
Show Gist options
  • Save artlipsky/8d4edf3ff5c44bbb61949201c6190cff to your computer and use it in GitHub Desktop.
Save artlipsky/8d4edf3ff5c44bbb61949201c6190cff to your computer and use it in GitHub Desktop.
/*----------------------Default Styles----------------------*/
.woocommerce ul.products li.product .onsale {
background: #00ADEF;
font-size: 12px;
padding: 6px 12px;
line-height: 1.2;
border-radius: 20px;
min-width: 0;
min-height: 0;
margin: 0;
top: 32px;
right: 32px;
}
.woocommerce .woocommerce-ordering select {
cursor: pointer;
line-height: 1.6;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
background: transparent;
font-size: 12px;
border: 1px solid #d3ced2;
font-family: 'Montserrat';
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: 0;
padding: 8px 36px 8px 12px;
outline: none;
color: black;
position: relative;
background: url(https://cdns.iconmonstr.com/wp-content/assets/preview/2017/96/iconmonstr-arrow-65.png), white;
background-size: 6px;
background-repeat: no-repeat;
background-position: 94%;
transition: all ease 0.2s;
}
.woocommerce .woocommerce-ordering select:focus {
border: 1px solid #00ADEF;
box-shadow: 0px 0px 6px #00ADEF;
}
.woocommerce ul.products li.product a img {
border: 1px solid #d3ced2;
}
.woocommerce .woocommerce-ordering {
margin: 20px;
}
.woocommerce nav.woocommerce-pagination ul li a {
color: #00ADEF;
transition: all ease 0.2s;
padding: 8px 12px;
min-width: 36px;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
color: #E96199;
background: none;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
padding: 8px 12px;
min-width: 36px;
}
.woocommerce nav.woocommerce-pagination ul li:last-child {
border: none;
}
.woocommerce nav.woocommerce-pagination ul {
overflow: hidden;
border: 1px solid #d3ced2;
}
.woocommerce ul.products {
display: flex;
flex-wrap: wrap;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
display: flex;
flex-direction: column;
}
.woocommerce ul.products li.product .button {
margin-top: auto;
text-align: center;
border-radius: 0;
color: white;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
background: #E96199;
padding: 16px 24px;
transition: all ease 0.2s;
line-height: 1.2;
}
.woocommerce ul.products li.product .button:hover {
background: #085888;
}
.woocommerce a.added_to_cart {
display: block;
text-align: center;
border: 1px solid #00ADEF;
padding: 16px 32px;
line-height: 1.2;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
color: #00ADEF;
margin-top: 12px;
transition: all ease 0.2s;
}
.woocommerce a.added_to_cart:hover {
border-color: #085888;
color: #085888;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
font-weight: 400;
font-size: 16px;
color: #00ADEF;
padding-top: 0;
transition: all ease 0.2s;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
color: #E96199;
}
.woocommerce ul.products li.product .price {
color: black;
font-size: 20px;
font-weight: 700;
line-height: 1.2;
margin-bottom: 24px;
}
.woocommerce ul.products li.product .price ins {
text-decoration: none;
}
.woocommerce ul.products li.product .price del {
display: block;
font-size: 12px;
font-weight: 400;
margin-bottom: 4px;
}
.woocommerce div.product .woocommerce-product-rating {
display: flex;
align-items: center;
margin-bottom: 12px;
}
.woocommerce .star-rating::before {
position: relative;
color: #dddddd;
}
.woocommerce .woocommerce-product-rating .star-rating {
width: auto;
letter-spacing: 2px;
margin: 0 4px 0 0;
}
.woocommerce .star-rating span{
color: #E96199;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
margin: 0;
width: 25%;
padding: 20px;
}
.woocommerce .woocommerce-result-count {
margin: 20px;
}
.woocommerce-pagination {
margin-top: 48px;
display: flex;
flex-direction: column;
align-items: center;
}
.woocommerce ul.products li.product a {
display: flex;
flex-direction: column;
}
@media (max-width: 768px) {
.woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
width: 50%;
margin: 0px;
}
}
@media (max-width: 480px) {
.woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
width: 100%;
margin: 0px;
}
}
@media (max-width: 524px) {
.woocommerce .woocommerce-ordering {
float: left;
}
.woocommerce .woocommerce-result-count {
margin-bottom: 0;
}
}
/*----------------------Custom Styles----------------------*/
/* Primary Button Styles */
.woocommerce ul.products li.product .button {
border-radius:;
font-size:;
font-weight:;
font-family:;
color:;
border:;
text-transform:;
background:;
letter-spacing:;
line-height:;
text-align:;
}
.woocommerce ul.products li.product .button:hover {
background:;
}
/* Secondary Button Styles */
.woocommerce a.added_to_cart {
border-radius:;
font-size:;
font-weight:;
font-family:;
color:;
border:;
text-transform:;
letter-spacing:;
line-height:;
text-align:;
}
.woocommerce a.added_to_cart:hover {
border:;
color:;
}
/* Align Product Item Text (left, right, center) */
.woocommerce ul.products li.product a {
align-items:;
text-align:;
}
/* Pagination */
.woocommerce-pagination {
align-items:; /* Item Align */
font-size:; /* Font Size */
}
.woocommerce nav.woocommerce-pagination ul {
border-radius:; /* Rounded Borders */
}
.woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li {
border-color:;/* Border Color */
}
.woocommerce nav.woocommerce-pagination ul li a {
color:; /* Links Color */
background:; /* Background Color */
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
color:; /* Hover Text Color */
background:; /* Hover Background Color */
}
.woocommerce nav.woocommerce-pagination ul li span.current {
color:; /* Current Text Color */
background:; /* Current Background Color */
}
/* Sorting Select */
.woocommerce .woocommerce-ordering select {
line-height:;
font-size:;
border:;
border-radius:;
padding:;
color:;
letter-spacing:;
text-transform:;
}
.woocommerce .woocommerce-ordering select:focus {
border:;
box-shadow:;
}
/* Image Styles */
.woocommerce ul.products li.product a img {
border:;
border-radius:;
}
/* Columns Layout */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
width:; /*(25, 33.33, 50%)*/
padding:; /* Inside padding */
}
/* Sales Badge Styles */
.woocommerce ul.products li.product .onsale {
background:;
font-size:;
padding:;
font-family:;
line-height:;
border-radius:;
border:;
top:;
right:;
box-shadow:;
}
/* Product Title Styles */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
font-weight:;
font-size:;
font-family:;
color:;
letter-spacing:;
padding:;
margin:;
text-align:;
line-height:;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
color:;
font-weight:;
}
/* Ratign Stars Styles */
.woocommerce .star-rating::before {
color:;/* Inactive stars color */
}
.woocommerce .star-rating span{
color:;/* Active Stars color */
}
/* Price Styles */
.woocommerce ul.products li.product .price { /* Default Price */
color:;
font-size:;
font-weight:;
font-family:;
line-height:;
margin:;
}
.woocommerce ul.products li.product .price del { /* Sales Price */
opacity:;
color:;
font-size:;
font-weight:;
font-family:;
line-height:;
margin:;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment