This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(15deg, hsl(10, 20%, 30%), red); | |
min-height: 100%; |
This file contains hidden or 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
/** | |
* New Dabbles | |
**/ | |
background: hsl(140,50%,50%); | |
background: linear-gradient(357deg, hsl(140,50%,50%), hsl(240,50%,50%)); | |
min-height: 100%; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<title>Picturefill</title> | |
<pop:stylesheet name="/screen.css"/> |
This file contains hidden or 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
<pop:content> | |
<pop:picture:responsive field="image" resize="fit" width="300"/> | |
</pop:content> |
This file contains hidden or 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
<pop:content> | |
<div class="hero"> | |
<h1>Responsive Image Gallery</h1> | |
<p>Using <a href="https://github.com/scottjehl/picturefill">picture fill</a> and <a href="http://www.webpop.com">Webpop</a></p> | |
<pop:picture:responsive field="image" resize="fit" width="600"/> | |
</div> | |
<ul> | |
<pop:picture:responsive field="image_gallery" resize="fit" width="150" break="li"/> | |
</ul> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<title>Picturefill</title> | |
<pop:stylesheet name="/screen.css"/> | |
</head> | |
This file contains hidden or 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
// This searches the entries of a section to generates a simple | |
// timeline object that represents all the years which entries | |
// with a date in the future belong to. | |
exports.years= function() { | |
if (!section) return null; | |
var result = site.search({ | |
all: true, | |
filters: {section: section, date: "future"}, | |
timeline: {date: "year"}, |
This file contains hidden or 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
<!-- Pull in a collection of tour date entries --> | |
<pop:content from="tour-dates"> | |
<!-- Iterate through a collection of years, each with a 'start' and 'end' attribute --> | |
<pop:years> | |
<!-- Render the Year --> | |
<li> | |
<pop:start format="yyyy" wrap="h2" class="year"/> | |
</li> |
This file contains hidden or 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
# This generates markup for https://github.com/scottjehl/picturefill | |
# Customize this to suit your responsive image needs | |
markupForImage = (image, options) -> | |
resize = options.resize | |
width = options.width | |
height = options.height | |
output = | |
'<div data-picture data-alt="' + image.alt + '">' + |
This file contains hidden or 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
<div data-picture="" data-alt="Eagle Perch"> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/150/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/300/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-device-pixel-ratio: 2.0)"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/300/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-width: 768px)"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/600/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-width: 768px) and (min-device-pixel-ratio: 2.0)"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/450/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-width: 1280px)"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/900/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-width: 1280px) and (min-device-pixel-ratio: 2.0)"> </div> | |
<div data-src="http://c1 |
OlderNewer