A Pen by Matt Vanderpol on CodePen.
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.container | |
%span.with-js JS is available | |
%span.without-js JS is not available |
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.tiles__container | |
%h2.sub-heading | |
= "3 Up" | |
%div{:class => 'tiles tiles--3-up' } | |
- (1..9).each do |i| | |
- width = 180 + Random.rand(20) | |
- height = 70 + Random.rand(30) | |
%div{class: 'tile-item tile-item--logo'} | |
%img{src: "http://lorempixel.com/#{width}/#{height}/nature?a=#{i}"} |
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{:class => 'grid grid--6-up grid--centered' } | |
%ul{class: 'list list--grid'} | |
- (1..18).each do |i| | |
%li{class: 'list__item grid-item'} | |
%img{src: "http://lorempixel.com/110/70/sports?a=#{i}"} |
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
<span class="seven-seg animating"> | |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="44" height="82" viewBox="0, 0, 44, 82"> | |
<g class="Layer_1"> | |
<g class="off-segs"> | |
<path d="M7.041,44 L12,49.209 L11.973,67.143 L6.986,72 L2,67.171 L2,49.101 L7.041,44 z" fill="#DBDADA" class="Shape"/> | |
<path d="M37.041,10 L42,15.209 L41.973,33.143 L36.986,38 L32,33.171 L32,15.101 L37.041,10 z" fill="#DBDADA" class="Shape"/> | |
<path d="M37.041,44 L42,49.209 L41.973,67.143 L36.986,72 L32,67.171 L32,49.101 L37.041,44 z" fill="#DBDADA" class="Shape"/> | |
<path d="M36,41.041 L30.791,46 L12.857,45.973 L8,40.986 L12.829,36 L30.899,36 L36,41.041 z" fill="#DBDADA" class="Shape"/> | |
<path d="M36,7.041 L30.791,12 L12.857,11.973 L8,6.986 L12.829,2 L30.899,2 L36,7.041 z" fill="#DBDADA" class="Shape"/> | |
<path d="M36,75.041 L30.791,80 L12.857,79.973 L8,74.986 L12.829,70 L30.899,70 L36,75.041 z" fill="#DBDADA" class="Shape"/> |
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
// Susy Get | |
// -------- | |
// Return one setting from a grid | |
// - $key : <keyword> | |
// - $layout : <settings> | |
@function susy-get( | |
$key, | |
$layout: map-merge($susy-defaults, $susy) | |
) { | |
$layout: parse-grid($layout); |
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
// Get Layout | |
// ---------- | |
// Return a new layout based on current and given settings | |
// - $layout: <settings> | |
// - $clean: boolean | |
@function _get-layout( | |
$layout, | |
$clean: false | |
) { | |
$layout: layout($layout); |
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
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
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
@mixin placeholders() { | |
::-webkit-input-placeholder { | |
@content; | |
} | |
::-moz-placeholder { | |
@content; | |
} | |
:-ms-input-placeholder { | |
@content; |