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
<div class="wrapper"> | |
<h1>Hello world.</h1> | |
<div class="grid"> | |
<div class="grid__cell grid__cell--nav"> | |
<h2>Hello world.</h2> | |
</div> | |
<div class="grid__cell grid__cell--nav"> | |
<h2>Hello world.</h2> | |
</div> | |
<div class="grid__cell grid__cell--nav"> |
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
<div class="wrapper"> | |
<div class="grid"> | |
<div class="grid-cell main"> | |
<h2>A Big Piece of Garbage</h2> | |
<p>You mean while I'm sleeping in it? And remember, don't do anything that affects anything, unless it turns out you were supposed to, in which case, for the love of God, don't not do it! Bender, you risked your life to save me!</p> | |
<h3>Leela's Homeworld</h3> | |
<p>No! The cat shelter's on to me. Good news, everyone! I've taught the toaster to feel love! Would you censor the Venus de Venus just because you can see her spewers? Oh, I don't have time for this. I have to go and buy a single piece of fruit with a coupon and then return it, making people wait behind me while I complain.</p> | |
</div> | |
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
if(!Modernizr.svg){ | |
var src = $('.svg-image').attr('src'); | |
src = src.replace('.svg', '.png'); | |
$('.svg-image').attr('src', src); | |
} |
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
<div class="spotlight"></div> | |
<div class="shiv"></div> |
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
// function for converting px to em | |
@function em($px, $base: 16px) { @return (($px / $base) * 1em); } | |
// column width functions | |
@function fixed($col) { @return (($col * (em($grid-column) + em($grid-gutter)) - em($grid-gutter))) } | |
@function fluid($col, $avail) { @return (100% / $avail) * $col; } | |
// ========================================================= | |
// breakpoint mixin |
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
$column: 60px; // column-width of your grid in pixels | |
$gutter: 20px; // gutter-width of your grid in pixels | |
$columns: 16; // maximum number of columns needed for layout | |
$fixed-grid: 8; // number of columns to trigger fixed grid | |
$ie-support: false; // number of columns for vintage ie (must match a layout) | |
$show-grid: false; // shows a visual grid overlay |
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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "elements/css/" | |
sass_dir = "sass/" | |
images_dir = "elements/img/" | |
javascripts_dir = "elements/js/" | |
# You can select your preferred output style here (can be overridden via the command line): |
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
// typography config | |
$font-size: 16px !default; // your base font-size in pixels | |
$line-height: 1.5em !default; // 24px line height | |
$em: $font-size / 1em !default; // shorthand for outputting ems | |
// grid size config | |
$column: 48px !default; // column-width of your grid in pixels | |
$gutter: 24px !default; // gutter-width of your grid in pixels | |
// column-widths in a function, in ems |
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
// this throws and error when trying to use a function to generate the min-width | |
@function width($col:1, $base:1) { @return (($col * ($column + $gutter) - $gutter) / $base) / $em; } | |
@mixin respond-to($size) { | |
@for $i from 5 through 16 { | |
@if ($size == $i) { @media (min-width: width($i)) { @content } } | |
} | |
} |
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
/* | |
* CSS Gradient Text | |
* currently webkit only | |
* CMS must duplicate the text into the title attribute so the CSS can pull it into the pseudo-element | |
*/ | |
body { background: #333; font-family: Helvetica, sans-serif; font-size: 2em; padding: 3em 0; color: white; text-shadow: 0 -1px 1px rgba(0,0,0,.3); } | |
h1 { position: relative; width: 10em; margin: 0 auto; font-weight: normal; } | |
/* Duplicate the content and layer it over the original with a gradient mask */ |
NewerOlder