Adding shapes demo
parent
7a962634d0
commit
c1da3b374d
@ -1,404 +1,72 @@
|
||||
---
|
||||
layout: default
|
||||
title: Shuffle Adaptive Demo
|
||||
bodyClass: masonry
|
||||
bodyClass: null
|
||||
extraJS: [ "gallery.js" ]
|
||||
extraCSS: [ "http://twitter.github.io/bootstrap/assets/css/bootstrap.css", "http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css", "/css/gallery.css" ]
|
||||
extraCSS: [ "/css/gallery.css" ]
|
||||
---
|
||||
<section class="gallery container">
|
||||
<div class="hero">
|
||||
<img src="http://placekitten.com/1170/400" alt="">
|
||||
<div class="ghost-center-wrap full">
|
||||
<div class="hero-text ghost-center">
|
||||
<div>Example</div>
|
||||
<h1>Responsive bootstrap</h1>
|
||||
<h2>With compounded filters</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Filters</h2>
|
||||
<div class="product-filter">
|
||||
<div class="filter-options row">
|
||||
<section class="container">
|
||||
<div class="row">
|
||||
<h2 class="span12">Adaptive Layout with Compound Filters</h2>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<ul class="span6 unstyled megapixels">
|
||||
<li data-megapixels="14-16" class="btn">14-16MP</li>
|
||||
<li data-megapixels="16-18" class="btn">16-18MP</li>
|
||||
<li data-megapixels="18-20" class="btn">18-20MP</li>
|
||||
<li data-megapixels="20+" class="btn">20MP+</li>
|
||||
</ul>
|
||||
<section class="gallery container">
|
||||
|
||||
<ul class="span6 unstyled features">
|
||||
<li>
|
||||
<label><input type="checkbox" value="lcd"> LCD</label>
|
||||
</li>
|
||||
<li>
|
||||
<label><input type="checkbox" value="touchscreen"> Touchscreen LCD</label>
|
||||
</li>
|
||||
<li>
|
||||
<label><input type="checkbox" value="panorama"> Intelligent Sweep Panorama</label>
|
||||
</li>
|
||||
<li>
|
||||
<label><input type="checkbox" value="lightweight"> Lightweight</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="filter-options row">
|
||||
|
||||
</div>
|
||||
<div class="span6">
|
||||
<div class="filter-group filter--colors js-colors">
|
||||
<button data-filter-value="green"><span class="visuallyhidden">Green</span></button>
|
||||
<button data-filter-value="blue"><span class="visuallyhidden">Blue</span></button>
|
||||
<button data-filter-value="red"><span class="visuallyhidden">Red</span></button>
|
||||
<button data-filter-value="orange"><span class="visuallyhidden">Orange</span></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="products">
|
||||
|
||||
<div class="span6 h2 product box" data-groups='["lcd", "lightweight"]' data-megapixels="20+" data-price="649">
|
||||
<div class="product-img">
|
||||
<img src="/img/baseball.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (41)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>20.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>3" <span class="product-meta-name">lcd</span></li>
|
||||
<li>Explore <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$649.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span6 product link box" data-groups='["lcd", "touchscreen", "panorama", "lightweight"]' data-megapixels="16-18" data-price="1199">
|
||||
<p>Massive Sensor Loruem Ipsum</p>
|
||||
<a href="#" class="btn">Explore Sensor</a>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["panorama", "lightweight"]' data-megapixels="16-18" data-price="329">
|
||||
<div class="product-img">
|
||||
<img src="/img/pumpkin.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (10)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>Waterproof <span class="product-meta-name">body</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$329.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["lcd", "lightweight"]' data-megapixels="18-20" data-price="369">
|
||||
<div class="product-img">
|
||||
<img src="/img/tennis-ball.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (41)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>20.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>3" <span class="product-meta-name">lcd</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$649.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["lcd", "touchscreen"]' data-megapixels="18-20" data-price="269">
|
||||
<div class="product-img">
|
||||
<img src="/img/imac.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (6)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.1 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>5x <span class="product-meta-name">optical zoom</span></li>
|
||||
<li>720p <span class="product-meta-name">hd video</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$1199.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span3 product box" data-groups='["lcd", "panorama"]' data-megapixels="14-16" data-price="109">
|
||||
<div class="product-img">
|
||||
<img src="/img/master-chief.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (10)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>Waterproof <span class="product-meta-name">body</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$329.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span6 h2 product box" data-groups='["lcd", "panorama", "lightweight"]' data-megapixels="18-20" data-price="479">
|
||||
<div class="product-img">
|
||||
<img src="/img/es-blue.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (41)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>20.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>3" <span class="product-meta-name">lcd</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$649.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span3 product box" data-groups='["lcd", "touchscreen", "lightweight"]' data-megapixels="18-20" data-price="209">
|
||||
<div class="product-img">
|
||||
<img src="/img/vestride-red.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (6)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.1 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>5x <span class="product-meta-name">optical zoom</span></li>
|
||||
<li>720p <span class="product-meta-name">hd video</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$1199.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span3 product box" data-groups='["touchscreen", "panorama", "lightweight"]' data-megapixels="20+" data-price="2799">
|
||||
<div class="product-img">
|
||||
<img src="/img/newegg.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (10)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>Waterproof <span class="product-meta-name">body</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$329.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span6 link product box" data-groups='["panorama", "lightweight"]' data-megapixels="20+" data-price="329">
|
||||
<p>Great Summer Travel Loruem Ipsum</p>
|
||||
<a href="#" class="btn">Products for Summer Vacation</a>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["lightweight"]' data-megapixels="14-16" data-price="199">
|
||||
<div class="product-img">
|
||||
<img src="/img/eightfoldarc.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (6)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.1 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>5x <span class="product-meta-name">optical zoom</span></li>
|
||||
<li>720p <span class="product-meta-name">hd video</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$1199.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["panorama"]' data-megapixels="14-16" data-price="149">
|
||||
<div class="product-img">
|
||||
<img src="/img/ground.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (10)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>Waterproof <span class="product-meta-name">body</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$149.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["lcd"]' data-megapixels="16-18" data-price="789">
|
||||
<div class="product-img">
|
||||
<img src="/img/grassy-hills.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (10)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>Waterproof <span class="product-meta-name">body</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$789.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["lcd", "touchscreen"]' data-megapixels="16-18" data-price="529">
|
||||
<div class="product-img">
|
||||
<img src="/img/tennis-ball.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (10)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>Waterproof <span class="product-meta-name">body</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$529.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<ul class="filter-group unstyled filter--shapes js-shapes">
|
||||
<li>
|
||||
<input type="checkbox" value="circle" id="cb-circle"> <label for="cb-circle">Circle</label>
|
||||
</li>
|
||||
<li>
|
||||
<input type="checkbox" value="diamond" id="cb-diamond"> <label for="cb-diamond">Diamond</label>
|
||||
</li>
|
||||
<li>
|
||||
<input type="checkbox" value="square" id="cb-square"> <label for="cb-square">Square</label>
|
||||
</li>
|
||||
<li>
|
||||
<input type="checkbox" value="triangle" id="cb-triangle"> <label for="cb-triangle">Triangle</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["lcd", "touchscreen"]' data-megapixels="18-20" data-price="999">
|
||||
<div class="product-img">
|
||||
<img src="/img/pumpkin.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (10)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>Waterproof <span class="product-meta-name">body</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$529.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span3 product box" data-groups='["lcd", "touchscreen"]' data-megapixels="20+" data-price="1599">
|
||||
<div class="product-img">
|
||||
<img src="/img/imac.png" alt="" />
|
||||
</div>
|
||||
<div class="product-content">
|
||||
<div class="product-model">ASDF-1</div>
|
||||
<div class="product-name">Camera JKLP</div>
|
||||
<div class="product-rating">***** (10)</div>
|
||||
<div class="product-meta">
|
||||
<ul>
|
||||
<li>16.2 <span class="product-meta-name">megapixels</span></li>
|
||||
<li>Waterproof <span class="product-meta-name">body</span></li>
|
||||
<li>Cool <span class="product-meta-name">sensor</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-price">
|
||||
<span class="muted">Starting at</span>
|
||||
<br>
|
||||
<b>$529.99</b> <span class="muted">MSRP</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="shape-up js-shuffle">
|
||||
{% for shape in site.shapes %}
|
||||
<div class="span3 shape shape--{{ shape.shape }} shape--{{ shape.color }}" data-shape="{{ shape.shape }}" data-color="{{ shape.color }}">
|
||||
<div class="keep-ratio">
|
||||
<div class="shape__inner">
|
||||
<div class="shape__space">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<div class="container">
|
||||
<h1>Another section</h1>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div>
|
||||
<div class="container">
|
||||
<h2>Another section</h2>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div>
|
||||
</section>
|
@ -1,207 +1,124 @@
|
||||
*,
|
||||
::before,
|
||||
::after {
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@import "variables";
|
||||
|
||||
body { background: #EEE; color: #333; }
|
||||
|
||||
body::before {
|
||||
content: 'Default - 940px';
|
||||
position: fixed;
|
||||
z-index: 5;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 25px;
|
||||
background-color: hsla(110, 50%, 60%, .6);
|
||||
-webkit-transition: background .2s ease;
|
||||
-o-transition: background .2s ease;
|
||||
transition: background .2s ease;
|
||||
}
|
||||
.shape {
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
body::before {
|
||||
content: 'Large Desktop - 1200px+';
|
||||
background-color: hsla(10, 50%, 60%, .6);
|
||||
.shape__inner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) and (max-width: 979px) {
|
||||
body::before {
|
||||
content: 'Portrait tablet to landscape and desktop - > 768px && < 979px';
|
||||
background-color: hsla(50, 50%, 60%, .6);
|
||||
.shape__space {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: black;
|
||||
border-style: solid;
|
||||
border-width: 0;
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
body::before {
|
||||
content: 'Phones to Tablets - < 767px';
|
||||
background-color: hsla(210, 50%, 60%, .6);
|
||||
}
|
||||
.shape--blue .shape__space {
|
||||
background-color: $river;
|
||||
border-bottom-color: $river;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
body::before {
|
||||
content: 'Phones - < 480px';
|
||||
background-color: hsla(300, 50%, 60%, .6);
|
||||
}
|
||||
.shape--red .shape__space {
|
||||
background-color: $alizarin;
|
||||
border-bottom-color: $alizarin;
|
||||
}
|
||||
|
||||
/*Hero image*/
|
||||
|
||||
.hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.shape--orange .shape__space {
|
||||
background-color: $orange;
|
||||
border-bottom-color: $orange;
|
||||
}
|
||||
|
||||
.hero img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
.shape--green .shape__space {
|
||||
background-color: $emerald;
|
||||
border-bottom-color: $emerald;
|
||||
}
|
||||
|
||||
.hero-text {
|
||||
color: #fff;
|
||||
.shape--circle .shape__space {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* Gallery */
|
||||
.product {
|
||||
margin: 20px 0 0;
|
||||
height: 200px;
|
||||
overflow: hidden;
|
||||
.shape--square .shape__space {
|
||||
// Nothing to see here
|
||||
}
|
||||
|
||||
.product.w2 {
|
||||
/*width: ;*/
|
||||
// 166 / sqrt(166^2 + 166^2) = scale
|
||||
.shape--diamond .shape__space {
|
||||
-webkit-transform: rotate(45deg) scale(0.707106781);
|
||||
transform: rotate(45deg) scale(0.707106781);
|
||||
}
|
||||
|
||||
.product.link {
|
||||
padding: 70px 20px 0;
|
||||
background-color: hsl(110, 50%, 60%);
|
||||
}
|
||||
|
||||
.product.h2 {
|
||||
height: 420px;
|
||||
$triangleSize: 166px;
|
||||
.shape--triangle .shape__space {
|
||||
height: 0;
|
||||
width: 0;
|
||||
border-width: 0 ($triangleSize / 2) $triangleSize ($triangleSize / 2);
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.product {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.product.h2 {
|
||||
height: 430px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) and (max-width: 979px) {
|
||||
/*.product {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.product.h2 {
|
||||
height: 420px;
|
||||
}*/
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.product {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.product.h2 {
|
||||
height: 410px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Show what the data-* attributes are */
|
||||
.product:before {
|
||||
content: attr(data-groups);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
color: white;
|
||||
text-shadow: -1px 0 0 black, 0 -1px 0 black, 1px 0 0 black, 0 1px 0 black;
|
||||
font-family: Menlo;
|
||||
}
|
||||
|
||||
/* Show what the data-* attributes are */
|
||||
.product:after {
|
||||
content: attr(data-megapixels) 'MP :: $' attr(data-price);
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
left: 0;
|
||||
color: white;
|
||||
text-shadow: -1px 0 0 black, 0 -1px 0 black, 1px 0 0 black, 0 1px 0 black;
|
||||
font-family: Menlo;
|
||||
}
|
||||
|
||||
.product-content {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.product-img {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.product-meta-name {
|
||||
text-transform: uppercase;
|
||||
font-family: sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Helpers */
|
||||
.box {
|
||||
background: #444;
|
||||
color: #f2f2f2;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,.3);
|
||||
}
|
||||
|
||||
.full {
|
||||
position: absolute;
|
||||
|
||||
|
||||
|
||||
|
||||
body::before {
|
||||
content: 'Default - 940px';
|
||||
position: fixed;
|
||||
z-index: 5;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 5;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ghost-center-wrap:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
height: 25px;
|
||||
background-color: hsla(110, 50%, 60%, .6);
|
||||
-webkit-transition: background .2s ease;
|
||||
-o-transition: background .2s ease;
|
||||
transition: background .2s ease;
|
||||
}
|
||||
|
||||
.ghost-center {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 0;
|
||||
@media (min-width: 1200px) {
|
||||
body::before {
|
||||
content: 'Large Desktop - 1200px+';
|
||||
background-color: hsla(10, 50%, 60%, .6);
|
||||
}
|
||||
}
|
||||
|
||||
/* filters */
|
||||
|
||||
.filter-options {
|
||||
margin: 20px 0;
|
||||
@media (min-width: 768px) and (max-width: 979px) {
|
||||
body::before {
|
||||
content: 'Portrait tablet to landscape and desktop - > 768px && < 979px';
|
||||
background-color: hsla(50, 50%, 60%, .6);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
|
||||
.product {
|
||||
display: table;
|
||||
}
|
||||
|
||||
.product-img {
|
||||
display: table-cell;
|
||||
width: 33.33%;
|
||||
vertical-align: middle;
|
||||
body::before {
|
||||
content: 'Phones to Tablets - < 767px';
|
||||
background-color: hsla(210, 50%, 60%, .6);
|
||||
}
|
||||
}
|
||||
|
||||
.product-content {
|
||||
display: table-cell;
|
||||
width: 66.66%;
|
||||
@media (max-width: 480px) {
|
||||
body::before {
|
||||
content: 'Phones - < 480px';
|
||||
background-color: hsla(300, 50%, 60%, .6);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue