Skip to content

Instantly share code, notes, and snippets.

View hatefulcrawdad's full-sized avatar

Chris Michel hatefulcrawdad

View GitHub Profile
.element {
font-size: ms(0); /* 0 = first in scale, 1,2,3 and so on... */
}
@hatefulcrawdad
hatefulcrawdad / f3-orientation.html
Created June 30, 2012 18:04 — forked from smileyj68/f3-orientation.html
Foundation 3 Orientation Detection
<strong class="show-for-landscape">You are in landscape orientation.</strong>
<strong class="show-for-portrait">You are in portrait orientation.</strong>
@hatefulcrawdad
hatefulcrawdad / app1.scss
Created July 25, 2012 05:38
import foundation
// You custom settings file to override Foundation defaults
@import "settings";
// Comment out this import if you are customizing you imports below
@import "foundation";
@hatefulcrawdad
hatefulcrawdad / app2.scss
Created July 25, 2012 05:41
must haves for custom imports
// Import specific parts of Foundation by commenting the import "foundation"
// and uncommenting what you want below. You must uncomment the following if customizing
// @import "compass/css3";
// @import "foundation/settings";
// @import "foundation/functions/all";
@hatefulcrawdad
hatefulcrawdad / app3.scss
Created July 25, 2012 05:43
common imports and styles
// Control which mixins you have access too
// @import "foundation/mixins/clearfix";
// @import "foundation/mixins/css-triangle";
// @import "foundation/mixins/font-size";
// Must include next two for semantic grid to work
// @import "foundation/mixins/respond-to";
// @import "foundation/mixins/semantic-grid";
@hatefulcrawdad
hatefulcrawdad / app4.scss
Created July 25, 2012 05:44
components
// Control which components you get if customizing
// @import "foundation/components/modules/buttons";
// @import "foundation/components/modules/tabs";
// @import "foundation/components/modules/ui";
// @import "foundation/components/modules/topbar";
// @import "foundation/components/modules/navbar";
// @import "foundation/components/modules/orbit";
// @import "foundation/components/modules/reveal";
// @import "foundation/components/modules/offcanvas";
@hatefulcrawdad
hatefulcrawdad / foundation-mqViewer.html
Created August 6, 2012 21:01
Markup Needed for Foundation Media Query Viewer
<div id="fqv" style="position:fixed;top:4px;left:4px;z-index:999;color:#fff;"><p style="font-size:12px;background:rgba(0,0,0,0.75);padding:5px;margin-bottom:1px;line-height:1.2;"><span class="left">Media:</span> <span style="font-weight:bold;" class="show-for-xlarge">Extra Large</span><span style="font-weight:bold;" class="show-for-large">Large</span><span style="font-weight:bold;" class="show-for-medium">Medium</span><span style="font-weight:bold;" class="show-for-small">Small</span><span style="font-weight:bold;" class="show-for-landscape">Landscape</span><span style="font-weight:bold;" class="show-for-portrait">Portrait</span><span style="font-weight:bold;" class="show-for-touch">Touch</span></p></div>
@hatefulcrawdad
hatefulcrawdad / blockgrid.js
Created August 7, 2012 15:23
IE8 Block Grid Clear
// UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE8 SUPPORT AND ARE USING .block-grids
// $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'both'});
// $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'both'});
// $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'both'});
// $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'both'});
@hatefulcrawdad
hatefulcrawdad / error-forms.html
Created August 8, 2012 22:58
Forms with Errors
<div class="row">
<div class="five columns">
<label class="error">Field with Error</label>
<input type="text" class="error" />
<small class="error">Invalid entry</small>
</div>
<div class="five columns end error">
<label>Another Error</label>
<input type="text" />
<ul class="breadcrumbs">
<li><a href="#">Home</a></li>
<li><a href="#">Features</a></li>
<li class="unavailable"><a href="#">Gene Splicing</a></li>
<li class="current"><a href="#">Home</a></li>
</ul>
<ul class="breadcrumbs">
<li><span>Home</span></li>
<li><span>Features</span></li>