Created
July 8, 2015 21:59
-
-
Save Gmattgreenfield/770070892cdc27c4b473 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="one"> | |
<li class="grid__item hproduct h-product product-summary product-summary--has-image product-summary--has-basket"> | |
<span class="product-summary__sale-banner">SALE</span> | |
<a class="url u-url product-summary__body link-complex" href="/ourshop/prod_3718473-DW-Broken-Glass.html" rel="product" style="border-color:#d1cab6"> | |
<div class="product-summary__image image-tile"> | |
<img src="https://create-cdn.net/siteimages/34/8/0/348003/96/3/0/9630062/255x198.jpg?1423664952" alt="DW Broken Glass"> | |
</div> | |
<ul class="multi-list product-summary__details"> | |
<li class="all-cols product-summary__details__title link-complex__target"><span class="fn name p-name" title="DW Broken Glass">DW Broken Glass</span></li> | |
<li class="all-cols product-summary__details__rating"> | |
<img width="80px" src="http://www.clker.com/cliparts/v/L/7/d/9/m/3-5-star-rating-black-hi.png" /> | |
</li> | |
<li class="all-cols product-summary__details__price link-complex__target"> | |
<span class="price p-price">£12.00</span> | |
</li><!-- | |
--><li class="all-cols product-summary__add-basket link-complex__target"> | |
<span class="i i-basket"></span> | |
<span class="btn btn--primary">Add to basket</span> | |
</li> | |
</ul> | |
</a> | |
</li> | |
</span> | |
<!-- TWO --> | |
<span class="two"> | |
<li class="grid__item hproduct h-product product-summary product-summary--has-image product-summary--has-basket"> | |
<span class="product-summary__sale-banner">SALE</span> | |
<a class="url u-url product-summary__body link-complex" href="/ourshop/prod_3718473-DW-Broken-Glass.html" rel="product" style="border-color:#d1cab6"> | |
<div class="product-summary__image image-tile"> | |
<img src="https://create-cdn.net/siteimages/34/8/0/348003/96/3/0/9630062/255x198.jpg?1423664952" alt="DW Broken Glass"> | |
</div> | |
<ul class="multi-list product-summary__details"> | |
<li class="all-cols product-summary__details__title link-complex__target"><span class="fn name p-name" title="DW Broken Glass">DW Broken Glass</span></li> | |
<li class="all-cols product-summary__details__rating"> | |
<img width="80px" src="http://www.clker.com/cliparts/v/L/7/d/9/m/3-5-star-rating-black-hi.png" /> | |
</li> | |
<li class="all-cols product-summary__details__price link-complex__target"> | |
<span class="price p-price">£12.00</span> | |
</li><!-- | |
--><li class="all-cols product-summary__add-basket link-complex__target"> | |
<span class="i i-basket"></span> | |
<span class="btn btn--primary">Add to basket</span> | |
</li> | |
</ul> | |
</a> | |
</li> | |
</span> | |
<!-- Three --> | |
<span class="three"> | |
<li class="grid__item hproduct h-product product-summary product-summary--has-image product-summary--has-basket"> | |
<span class="product-summary__sale-banner">SALE</span> | |
<a class="url u-url product-summary__body link-complex" href="/ourshop/prod_3718473-DW-Broken-Glass.html" rel="product" style="border-color:#d1cab6"> | |
<div class="product-summary__image image-tile"> | |
<img src="https://create-cdn.net/siteimages/34/8/0/348003/96/3/0/9630062/255x198.jpg?1423664952" alt="DW Broken Glass"> | |
</div> | |
<ul class="multi-list product-summary__details"> | |
<li class="all-cols product-summary__details__title link-complex__target"><span class="fn name p-name" title="DW Broken Glass">DW Broken Glass</span></li> | |
<li class="all-cols product-summary__details__rating"> | |
<img width="80px" src="http://www.clker.com/cliparts/v/L/7/d/9/m/3-5-star-rating-black-hi.png" /> | |
</li> | |
<li class="all-cols product-summary__details__price link-complex__target"> | |
<span class="price p-price">£12.00</span> | |
</li><!-- | |
--><li class="all-cols product-summary__add-basket link-complex__target"> | |
<span class="i i-basket"></span> | |
<span class="btn btn--primary">Add to basket</span> | |
</li> | |
</ul> | |
</a> | |
</li> | |
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
body { | |
font-family: sans-serif; | |
background: lightgrey; | |
padding: 20px; | |
box-sizing: border-box; | |
} | |
ul { | |
padding: 0; | |
margin: 0; | |
} | |
li { | |
list-style-type: none; | |
} | |
a { | |
color: inherit; | |
text-decoration: none; | |
} | |
.btn { | |
padding: 10px; | |
background: #8E2626; | |
color: white; | |
} | |
.i:after { | |
content: "\1F50D"; | |
display: block; | |
} | |
.one, | |
.two, | |
.three { | |
display: inline-block; | |
margin-right: 50px; | |
vertical-align: top; | |
} | |
.one { | |
.product-summary { | |
position: relative; | |
} | |
.product-summary__body { | |
display: inline-block; | |
border: 1px solid grey; | |
background: white; | |
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) | |
} | |
.product-summary__details__rating{ | |
border-bottom: 1px solid lightgrey; | |
padding-bottom: 15px; | |
img { | |
margin: auto; | |
display: block; | |
} | |
} | |
.product-summary__image { | |
padding: 20px 5px; | |
} | |
.product-summary__sale-banner { | |
background: red; | |
color: white; | |
position: absolute; | |
top: 0; | |
left: 0; | |
padding: 5px 15px; | |
font-size: .8em; | |
} | |
.product-summary__add-basket { | |
.btn { | |
display: none; | |
} | |
display: inline-block; | |
width: 24%; | |
text-align: center; | |
} | |
.product-summary__details__title { | |
padding: 10px; | |
text-align: center; | |
text-transform: uppercase; | |
color: #766D5E; | |
} | |
.product-summary__details__price { | |
border-right: 1px solid lightgrey; | |
width: 60%; | |
display: inline-block; | |
padding: 20px; | |
color: grey; | |
text-align: center; | |
} | |
} // end .one | |
.two { | |
.product-summary { | |
position: relative; | |
} | |
.product-summary__body { | |
display: inline-block; | |
border: 1px solid grey; | |
background: white; | |
padding: 20px 5px; | |
} | |
.product-summary__image { | |
padding: 30px 0; | |
} | |
.product-summary__details__rating{ | |
position: absolute; | |
top: 10px; | |
right: 10px; | |
} | |
.product-summary__sale-banner { | |
background: red; | |
color: white; | |
position: absolute; | |
top: 0; | |
left: 25px; | |
padding: 5px 15px; | |
font-size: .8em; | |
transform: rotate(90deg); | |
transform-origin: top left; | |
} | |
.product-summary__add-basket { | |
.btn { | |
display: none; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} | |
.i { | |
display: none; | |
} | |
} | |
.product-summary__body:hover .product-summary__add-basket .btn { | |
display: block; | |
} | |
.product-summary__details__title { | |
padding: 10px; | |
text-align: center; | |
text-transform: uppercase; | |
color: #766D5E; | |
} | |
.product-summary__details__price { | |
color: #8E2626; | |
font-size: 1.2em; | |
font-weight: bold; | |
text-align: center; | |
} | |
} // end .two | |
.three { | |
.product-summary { | |
position: relative; | |
} | |
li { | |
margin-bottom: 10px; | |
&:last-child { | |
margin-bottom: 0; | |
} | |
} | |
.product-summary__body { | |
display: inline-block; | |
border: 1px solid grey; | |
background: white; | |
padding: 10px; | |
} | |
.product-summary__image { | |
padding: 20px 0; | |
} | |
.product-summary__details__rating img { | |
margin: auto; | |
display: block; | |
} | |
.product-summary__sale-banner { | |
border: 2px solid red; | |
font-weight: bold; | |
color: red; | |
position: absolute; | |
top: 10px; | |
right: 10px; | |
padding: 5px 15px; | |
font-size: .8em; | |
} | |
.product-summary__add-basket { | |
.btn { | |
text-align: center; | |
display: block; | |
} | |
.i { | |
display: none; | |
position: absolute; | |
top: 135px; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
font-size: 50px; | |
} | |
} | |
.product-summary:hover { | |
.product-summary__image { | |
opacity: .5; | |
} | |
.i { | |
display: block; | |
} | |
} | |
.product-summary__details__title { | |
text-align: center; | |
text-transform: uppercase; | |
color: #766D5E; | |
} | |
.product-summary__details__price { | |
color: #8E2626; | |
font-size: 1.2em; | |
font-weight: bold; | |
text-align: center; | |
} | |
} // end .three |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: sans-serif; | |
background: lightgrey; | |
padding: 20px; | |
box-sizing: border-box; | |
} | |
ul { | |
padding: 0; | |
margin: 0; | |
} | |
li { | |
list-style-type: none; | |
} | |
a { | |
color: inherit; | |
text-decoration: none; | |
} | |
.btn { | |
padding: 10px; | |
background: #8E2626; | |
color: white; | |
} | |
.i:after { | |
content: "\1F50D"; | |
display: block; | |
} | |
.one, | |
.two, | |
.three { | |
display: inline-block; | |
margin-right: 50px; | |
vertical-align: top; | |
} | |
.one .product-summary { | |
position: relative; | |
} | |
.one .product-summary__body { | |
display: inline-block; | |
border: 1px solid grey; | |
background: white; | |
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); | |
} | |
.one .product-summary__details__rating { | |
border-bottom: 1px solid lightgrey; | |
padding-bottom: 15px; | |
} | |
.one .product-summary__details__rating img { | |
margin: auto; | |
display: block; | |
} | |
.one .product-summary__image { | |
padding: 20px 5px; | |
} | |
.one .product-summary__sale-banner { | |
background: red; | |
color: white; | |
position: absolute; | |
top: 0; | |
left: 0; | |
padding: 5px 15px; | |
font-size: .8em; | |
} | |
.one .product-summary__add-basket { | |
display: inline-block; | |
width: 24%; | |
text-align: center; | |
} | |
.one .product-summary__add-basket .btn { | |
display: none; | |
} | |
.one .product-summary__details__title { | |
padding: 10px; | |
text-align: center; | |
text-transform: uppercase; | |
color: #766D5E; | |
} | |
.one .product-summary__details__price { | |
border-right: 1px solid lightgrey; | |
width: 60%; | |
display: inline-block; | |
padding: 20px; | |
color: grey; | |
text-align: center; | |
} | |
.two .product-summary { | |
position: relative; | |
} | |
.two .product-summary__body { | |
display: inline-block; | |
border: 1px solid grey; | |
background: white; | |
padding: 20px 5px; | |
} | |
.two .product-summary__image { | |
padding: 30px 0; | |
} | |
.two .product-summary__details__rating { | |
position: absolute; | |
top: 10px; | |
right: 10px; | |
} | |
.two .product-summary__sale-banner { | |
background: red; | |
color: white; | |
position: absolute; | |
top: 0; | |
left: 25px; | |
padding: 5px 15px; | |
font-size: .8em; | |
transform: rotate(90deg); | |
transform-origin: top left; | |
} | |
.two .product-summary__add-basket .btn { | |
display: none; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} | |
.two .product-summary__add-basket .i { | |
display: none; | |
} | |
.two .product-summary__body:hover .product-summary__add-basket .btn { | |
display: block; | |
} | |
.two .product-summary__details__title { | |
padding: 10px; | |
text-align: center; | |
text-transform: uppercase; | |
color: #766D5E; | |
} | |
.two .product-summary__details__price { | |
color: #8E2626; | |
font-size: 1.2em; | |
font-weight: bold; | |
text-align: center; | |
} | |
.three .product-summary { | |
position: relative; | |
} | |
.three li { | |
margin-bottom: 10px; | |
} | |
.three li:last-child { | |
margin-bottom: 0; | |
} | |
.three .product-summary__body { | |
display: inline-block; | |
border: 1px solid grey; | |
background: white; | |
padding: 10px; | |
} | |
.three .product-summary__image { | |
padding: 20px 0; | |
} | |
.three .product-summary__details__rating img { | |
margin: auto; | |
display: block; | |
} | |
.three .product-summary__sale-banner { | |
border: 2px solid red; | |
font-weight: bold; | |
color: red; | |
position: absolute; | |
top: 10px; | |
right: 10px; | |
padding: 5px 15px; | |
font-size: .8em; | |
} | |
.three .product-summary__add-basket .btn { | |
text-align: center; | |
display: block; | |
} | |
.three .product-summary__add-basket .i { | |
display: none; | |
position: absolute; | |
top: 135px; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
font-size: 50px; | |
} | |
.three .product-summary:hover .product-summary__image { | |
opacity: .5; | |
} | |
.three .product-summary:hover .i { | |
display: block; | |
} | |
.three .product-summary__details__title { | |
text-align: center; | |
text-transform: uppercase; | |
color: #766D5E; | |
} | |
.three .product-summary__details__price { | |
color: #8E2626; | |
font-size: 1.2em; | |
font-weight: bold; | |
text-align: center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="one"> | |
<li class="grid__item hproduct h-product product-summary product-summary--has-image product-summary--has-basket"> | |
<span class="product-summary__sale-banner">SALE</span> | |
<a class="url u-url product-summary__body link-complex" href="/ourshop/prod_3718473-DW-Broken-Glass.html" rel="product" style="border-color:#d1cab6"> | |
<div class="product-summary__image image-tile"> | |
<img src="https://create-cdn.net/siteimages/34/8/0/348003/96/3/0/9630062/255x198.jpg?1423664952" alt="DW Broken Glass"> | |
</div> | |
<ul class="multi-list product-summary__details"> | |
<li class="all-cols product-summary__details__title link-complex__target"><span class="fn name p-name" title="DW Broken Glass">DW Broken Glass</span></li> | |
<li class="all-cols product-summary__details__rating"> | |
<img width="80px" src="http://www.clker.com/cliparts/v/L/7/d/9/m/3-5-star-rating-black-hi.png" /> | |
</li> | |
<li class="all-cols product-summary__details__price link-complex__target"> | |
<span class="price p-price">£12.00</span> | |
</li><!-- | |
--><li class="all-cols product-summary__add-basket link-complex__target"> | |
<span class="i i-basket"></span> | |
<span class="btn btn--primary">Add to basket</span> | |
</li> | |
</ul> | |
</a> | |
</li> | |
</span> | |
<!-- TWO --> | |
<span class="two"> | |
<li class="grid__item hproduct h-product product-summary product-summary--has-image product-summary--has-basket"> | |
<span class="product-summary__sale-banner">SALE</span> | |
<a class="url u-url product-summary__body link-complex" href="/ourshop/prod_3718473-DW-Broken-Glass.html" rel="product" style="border-color:#d1cab6"> | |
<div class="product-summary__image image-tile"> | |
<img src="https://create-cdn.net/siteimages/34/8/0/348003/96/3/0/9630062/255x198.jpg?1423664952" alt="DW Broken Glass"> | |
</div> | |
<ul class="multi-list product-summary__details"> | |
<li class="all-cols product-summary__details__title link-complex__target"><span class="fn name p-name" title="DW Broken Glass">DW Broken Glass</span></li> | |
<li class="all-cols product-summary__details__rating"> | |
<img width="80px" src="http://www.clker.com/cliparts/v/L/7/d/9/m/3-5-star-rating-black-hi.png" /> | |
</li> | |
<li class="all-cols product-summary__details__price link-complex__target"> | |
<span class="price p-price">£12.00</span> | |
</li><!-- | |
--><li class="all-cols product-summary__add-basket link-complex__target"> | |
<span class="i i-basket"></span> | |
<span class="btn btn--primary">Add to basket</span> | |
</li> | |
</ul> | |
</a> | |
</li> | |
</span> | |
<!-- Three --> | |
<span class="three"> | |
<li class="grid__item hproduct h-product product-summary product-summary--has-image product-summary--has-basket"> | |
<span class="product-summary__sale-banner">SALE</span> | |
<a class="url u-url product-summary__body link-complex" href="/ourshop/prod_3718473-DW-Broken-Glass.html" rel="product" style="border-color:#d1cab6"> | |
<div class="product-summary__image image-tile"> | |
<img src="https://create-cdn.net/siteimages/34/8/0/348003/96/3/0/9630062/255x198.jpg?1423664952" alt="DW Broken Glass"> | |
</div> | |
<ul class="multi-list product-summary__details"> | |
<li class="all-cols product-summary__details__title link-complex__target"><span class="fn name p-name" title="DW Broken Glass">DW Broken Glass</span></li> | |
<li class="all-cols product-summary__details__rating"> | |
<img width="80px" src="http://www.clker.com/cliparts/v/L/7/d/9/m/3-5-star-rating-black-hi.png" /> | |
</li> | |
<li class="all-cols product-summary__details__price link-complex__target"> | |
<span class="price p-price">£12.00</span> | |
</li><!-- | |
--><li class="all-cols product-summary__add-basket link-complex__target"> | |
<span class="i i-basket"></span> | |
<span class="btn btn--primary">Add to basket</span> | |
</li> | |
</ul> | |
</a> | |
</li> | |
</span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment