Skip to content

Instantly share code, notes, and snippets.

View jonyablonski's full-sized avatar

Jon Yablonski jonyablonski

View GitHub Profile
@jonyablonski
jonyablonski / Sass-Dropdown-Nav-Menu.markdown
Created January 14, 2015 02:35
Sass Dropdown Nav Menu
@jonyablonski
jonyablonski / Uncle Dave’s Ol’ Padded Box
Created December 23, 2014 17:40
Proportional Aspect Ratios for Responsive Background Images
/**
* Proportional Aspect Ratios for Responsive Background Images
* http://daverupert.com/2012/04/uncle-daves-ol-padded-box/
*/
#meowmeow {
background: url(http://placekitten.com/720/405/) no-repeat center center;
background-size: cover;
height: 0;
padding-bottom: 56.25%; /* 16:9 */
}
@jonyablonski
jonyablonski / Progressively-Enhanced-Navigation.markdown
Created December 23, 2014 02:24
Progressively Enhanced Navigation
@jonyablonski
jonyablonski / gist:eb41c322e0212af1daa0
Created December 22, 2014 14:08
Normalize CSS box model
*,
*:before,
*:after {
box-sizing: border-box;
}
@jonyablonski
jonyablonski / gist:fe163d851d22bdbdb556
Created December 22, 2014 14:07
Normalize text-rendering in Firefox on OSX
-moz-osx-font-smoothing: grayscale;