Last active
February 24, 2016 15:02
-
-
Save csswizardry/2986b9299bd4e408e6cd 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
<ol class="c-item-detail-group"> | |
<li> | |
<article class="c-item-detail"> | |
<div class="c-item-detail__meta"> | |
<span class="c-text-price">ab CHF <strong>8990.95</strong></span> | |
</div> | |
<div class="c-item-detail__main"> | |
<div class="o-flag"> | |
<div class="o-flag__img"> | |
<img src="http://lorempixel.com/128/128/technics/" alt="" class="c-item-detail__thumb" /> | |
</div> | |
<div class="o-flag__body"> | |
<h3 class="c-heading-beta c-item-detail__title">Lorem ipsum dolor sit amet</h3> | |
<dl class="c-list-stats c-item-detail__stats"> | |
<dt class="c-list-stats__title">Seller</dt> | |
<dd class="c-list-stats__item">Apple</dd> | |
<dt class="c-list-stats__title">Size</dt> | |
<dd class="c-list-stats__item">13″</dd> | |
<dt class="c-list-stats__title">Processor</dt> | |
<dd class="c-list-stats__item">2.7GHz</dd> | |
</dl> | |
<p>Lorem ipsum dolor sit amet</p> | |
</div> | |
</div> | |
</div> | |
</article> | |
</li> | |
<li> | |
<article class="c-item-detail"> | |
<div class="c-item-detail__meta"> | |
<span class="c-text-price c-text-price--sale">ab CHF <strong>89.00</strong></span> | |
<p><strong>Only 5 left in stock.</strong></p> | |
<p><a href="#0" class="c-btn">Buy now</a></p> | |
</div> | |
<div class="c-item-detail__main"> | |
<div class="o-flag"> | |
<div class="o-flag__img"> | |
<img src="http://lorempixel.com/128/128/technics/" alt="" class="c-item-detail__thumb" /> | |
</div> | |
<div class="o-flag__body"> | |
<h3 class="c-heading-beta c-item-detail__title">Lorem ipsum dolor sit amet</h3> | |
<dl class="c-list-stats c-item-detail__stats"> | |
<dt class="c-list-stats__title">Seller</dt> | |
<dd class="c-list-stats__item">Apple</dd> | |
<dt class="c-list-stats__title">Size</dt> | |
<dd class="c-list-stats__item">13″</dd> | |
<dt class="c-list-stats__title">Processor</dt> | |
<dd class="c-list-stats__item">2.7GHz</dd> | |
</dl> | |
<p>Lorem ipsum dolor sit amet</p> | |
</div> | |
</div> | |
</div> | |
</article> | |
</li> | |
<li> | |
<article class="c-item-detail"> | |
<div class="c-item-detail__meta"> | |
<span class="c-text-price c-text-price--sale">ab CHF <strong>89.00</strong></span> | |
<p><strong>Only 5 left in stock.</strong></p> | |
<p><a href="#0" class="c-btn c-btn--full">Buy now</a></p> | |
</div> | |
<div class="c-item-detail__main"> | |
<h3 class="c-heading-beta c-item-detail__title">Lorem ipsum dolor sit amet</h3> | |
<dl class="c-list-stats c-item-detail__stats"> | |
<dt class="c-list-stats__title">Seller</dt> | |
<dd class="c-list-stats__item">Apple</dd> | |
<dt class="c-list-stats__title">Size</dt> | |
<dd class="c-list-stats__item">13″</dd> | |
<dt class="c-list-stats__title">Processor</dt> | |
<dd class="c-list-stats__item">2.7GHz</dd> | |
</dl> | |
<p>Lorem ipsum dolor sit amet</p> | |
</div> | |
</article> | |
</li> | |
</ol> | |
<h3 class="c-heading-beta">Extracted</h3> | |
<hr /> | |
<p> | |
<a href="#0" class="c-btn">Button</a> | |
</p> | |
<p> | |
<a href="#0" class="c-btn c-btn--full">Button</a> | |
</p> | |
<hr /> | |
<p> | |
<span class="c-text-price">ab CHF <strong>8990.95</strong></span> / <span class="c-text-price c-text-price--sale">ab CHF <strong>8990.95</strong></span> | |
</p> | |
<hr /> | |
<dl class="c-list-stats c-item-detail__stats"> | |
<dt class="c-list-stats__title">Seller</dt> | |
<dd class="c-list-stats__item">Apple</dd> | |
<dt class="c-list-stats__title">Size</dt> | |
<dd class="c-list-stats__item">13″</dd> | |
<dt class="c-list-stats__title">Processor</dt> | |
<dd class="c-list-stats__item">2.7GHz</dd> | |
</dl> |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
h1, h2, h3, h4, h5, h6, | |
ul, ol, dl, | |
p, | |
hr { | |
margin-bottom: 18px; | |
} | |
html { | |
font: menu; | |
font-size: 12px; | |
line-height: 1.5; | |
padding: 36px; | |
} | |
img { | |
vertical-align: middle; | |
max-width: 100%; | |
} | |
// _objects.flag.scss | |
.o-flag { | |
display: table; | |
width: 100%; | |
} | |
.o-flag__img, | |
.o-flag__body { | |
display: table-cell; | |
vertical-align: top; | |
} | |
.o-flag__img { | |
padding-right: 18px; | |
} | |
.o-flag__img > img { | |
max-width: none; | |
} | |
.o-flag__body { | |
width: 100%; | |
} | |
// _components.list-stats.scss | |
.c-list-stats { | |
color: gray; | |
} | |
.c-list-stats__item, | |
.c-list-stats__title { | |
margin: 0; | |
padding: 0; | |
display: inline-block; | |
} | |
.c-list-stats__title { | |
font-weight: bold; | |
&:after { | |
content: ":"; | |
} | |
} | |
.c-list-stats__item:not(:last-child):after { | |
content: ","; | |
} | |
// _components.headings.scss | |
.c-heading-beta { | |
font-size: 1.25rem; | |
font-size: 20px; | |
line-height: 1.8; | |
} | |
// _components.text-price.scss | |
.c-text-price { | |
font-size: 1.333333333rem; | |
line-height: 1.125; | |
letter-spacing: 0.025em; | |
text-align: middle; | |
} | |
.c-text-price--sale { | |
color: #f34046; | |
} | |
// _components.item-detail.scss | |
.c-item-detail { | |
padding: 18px; | |
border-bottom: 1px solid #ccc; | |
} | |
.c-item-detail__main { | |
overflow: hidden; | |
} | |
.c-item-detail__title { | |
margin-bottom: 0; | |
} | |
.c-item-detail__stats { | |
margin-bottom: 9px; | |
} | |
.c-item-detail__meta { | |
float: right; | |
width: 200px; | |
text-align: right; | |
} | |
.c-item-detail__thumb { | |
width: 128px; | |
} | |
.c-item-detail-group { | |
margin: 0; | |
padding: 0; | |
list-style: none; | |
border-top: 1px solid #ccc; | |
margin-bottom: 18px; | |
} | |
// _components.button.scss | |
.c-btn { | |
display: inline-block; | |
padding: 9px 18px; | |
text-decoration: none; | |
background-color: #f34046; | |
color: #fff; | |
text-align: center; | |
} | |
.c-btn--full { | |
width: 100%; | |
} |
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
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
h1, h2, h3, h4, h5, h6, | |
ul, ol, dl, | |
p, | |
hr { | |
margin-bottom: 18px; | |
} | |
html { | |
font: menu; | |
font-size: 12px; | |
line-height: 1.5; | |
padding: 36px; | |
} | |
img { | |
vertical-align: middle; | |
max-width: 100%; | |
} | |
.o-flag { | |
display: table; | |
width: 100%; | |
} | |
.o-flag__img, | |
.o-flag__body { | |
display: table-cell; | |
vertical-align: top; | |
} | |
.o-flag__img { | |
padding-right: 18px; | |
} | |
.o-flag__img > img { | |
max-width: none; | |
} | |
.o-flag__body { | |
width: 100%; | |
} | |
.c-list-stats { | |
color: gray; | |
} | |
.c-list-stats__item, | |
.c-list-stats__title { | |
margin: 0; | |
padding: 0; | |
display: inline-block; | |
} | |
.c-list-stats__title { | |
font-weight: bold; | |
} | |
.c-list-stats__title:after { | |
content: ":"; | |
} | |
.c-list-stats__item:not(:last-child):after { | |
content: ","; | |
} | |
.c-heading-beta { | |
font-size: 1.25rem; | |
font-size: 20px; | |
line-height: 1.8; | |
} | |
.c-text-price { | |
font-size: 1.333333333rem; | |
line-height: 1.125; | |
letter-spacing: 0.025em; | |
text-align: middle; | |
} | |
.c-text-price--sale { | |
color: #f34046; | |
} | |
.c-item-detail { | |
padding: 18px; | |
border-bottom: 1px solid #ccc; | |
} | |
.c-item-detail__main { | |
overflow: hidden; | |
} | |
.c-item-detail__title { | |
margin-bottom: 0; | |
} | |
.c-item-detail__stats { | |
margin-bottom: 9px; | |
} | |
.c-item-detail__meta { | |
float: right; | |
width: 200px; | |
text-align: right; | |
} | |
.c-item-detail__thumb { | |
width: 128px; | |
} | |
.c-item-detail-group { | |
margin: 0; | |
padding: 0; | |
list-style: none; | |
border-top: 1px solid #ccc; | |
margin-bottom: 18px; | |
} | |
.c-btn { | |
display: inline-block; | |
padding: 9px 18px; | |
text-decoration: none; | |
background-color: #f34046; | |
color: #fff; | |
text-align: center; | |
} | |
.c-btn--full { | |
width: 100%; | |
} |
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
<ol class="c-item-detail-group"> | |
<li> | |
<article class="c-item-detail"> | |
<div class="c-item-detail__meta"> | |
<span class="c-text-price">ab CHF <strong>8990.95</strong></span> | |
</div> | |
<div class="c-item-detail__main"> | |
<div class="o-flag"> | |
<div class="o-flag__img"> | |
<img src="http://lorempixel.com/128/128/technics/" alt="" class="c-item-detail__thumb" /> | |
</div> | |
<div class="o-flag__body"> | |
<h3 class="c-heading-beta c-item-detail__title">Lorem ipsum dolor sit amet</h3> | |
<dl class="c-list-stats c-item-detail__stats"> | |
<dt class="c-list-stats__title">Seller</dt> | |
<dd class="c-list-stats__item">Apple</dd> | |
<dt class="c-list-stats__title">Size</dt> | |
<dd class="c-list-stats__item">13″</dd> | |
<dt class="c-list-stats__title">Processor</dt> | |
<dd class="c-list-stats__item">2.7GHz</dd> | |
</dl> | |
<p>Lorem ipsum dolor sit amet</p> | |
</div> | |
</div> | |
</div> | |
</article> | |
</li> | |
<li> | |
<article class="c-item-detail"> | |
<div class="c-item-detail__meta"> | |
<span class="c-text-price c-text-price--sale">ab CHF <strong>89.00</strong></span> | |
<p><strong>Only 5 left in stock.</strong></p> | |
<p><a href="#0" class="c-btn">Buy now</a></p> | |
</div> | |
<div class="c-item-detail__main"> | |
<div class="o-flag"> | |
<div class="o-flag__img"> | |
<img src="http://lorempixel.com/128/128/technics/" alt="" class="c-item-detail__thumb" /> | |
</div> | |
<div class="o-flag__body"> | |
<h3 class="c-heading-beta c-item-detail__title">Lorem ipsum dolor sit amet</h3> | |
<dl class="c-list-stats c-item-detail__stats"> | |
<dt class="c-list-stats__title">Seller</dt> | |
<dd class="c-list-stats__item">Apple</dd> | |
<dt class="c-list-stats__title">Size</dt> | |
<dd class="c-list-stats__item">13″</dd> | |
<dt class="c-list-stats__title">Processor</dt> | |
<dd class="c-list-stats__item">2.7GHz</dd> | |
</dl> | |
<p>Lorem ipsum dolor sit amet</p> | |
</div> | |
</div> | |
</div> | |
</article> | |
</li> | |
<li> | |
<article class="c-item-detail"> | |
<div class="c-item-detail__meta"> | |
<span class="c-text-price c-text-price--sale">ab CHF <strong>89.00</strong></span> | |
<p><strong>Only 5 left in stock.</strong></p> | |
<p><a href="#0" class="c-btn c-btn--full">Buy now</a></p> | |
</div> | |
<div class="c-item-detail__main"> | |
<h3 class="c-heading-beta c-item-detail__title">Lorem ipsum dolor sit amet</h3> | |
<dl class="c-list-stats c-item-detail__stats"> | |
<dt class="c-list-stats__title">Seller</dt> | |
<dd class="c-list-stats__item">Apple</dd> | |
<dt class="c-list-stats__title">Size</dt> | |
<dd class="c-list-stats__item">13″</dd> | |
<dt class="c-list-stats__title">Processor</dt> | |
<dd class="c-list-stats__item">2.7GHz</dd> | |
</dl> | |
<p>Lorem ipsum dolor sit amet</p> | |
</div> | |
</article> | |
</li> | |
</ol> | |
<h3 class="c-heading-beta">Extracted</h3> | |
<hr /> | |
<p> | |
<a href="#0" class="c-btn">Button</a> | |
</p> | |
<p> | |
<a href="#0" class="c-btn c-btn--full">Button</a> | |
</p> | |
<hr /> | |
<p> | |
<span class="c-text-price">ab CHF <strong>8990.95</strong></span> / <span class="c-text-price c-text-price--sale">ab CHF <strong>8990.95</strong></span> | |
</p> | |
<hr /> | |
<dl class="c-list-stats c-item-detail__stats"> | |
<dt class="c-list-stats__title">Seller</dt> | |
<dd class="c-list-stats__item">Apple</dd> | |
<dt class="c-list-stats__title">Size</dt> | |
<dd class="c-list-stats__item">13″</dd> | |
<dt class="c-list-stats__title">Processor</dt> | |
<dd class="c-list-stats__item">2.7GHz</dd> | |
</dl> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment