Skip to content

Instantly share code, notes, and snippets.

@Usse
Usse / reset.css
Created November 7, 2012 14:56
General purpose CSS reset
/*RESET*/
* {margin:0;padding:0;text-decoration:none;font-size:1em;outline:none;}
code, kbd, samp, pre, tt, var, textarea, input, select, isindex, listing, xmp, plaintext{font:inherit;font-size:1em;white-space:normal; }
/*dfn, i, cite, var, address, em { font-style: normal; }*/
a, img, a img, iframe, form, fieldset, abbr, acronym, object, applet, table { border: none; }
table { border-collapse: collapse; border-spacing: 0; }
caption, th, td, center { text-align: left; vertical-align: top; }
q { quotes: "" ""; }
ul, ol, dir, menu { list-style: none; }
sub, sup { vertical-align: baseline; }
@Usse
Usse / SassOpacity.scss
Created November 7, 2012 11:38
Sass Mixin for opacity prefix
// Opacity Prefix
// $level must be between 0 and 1
@mixin opacity($level) {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity="$level*100")";
filter: alpha(opacity=$level*100);
opacity: $level;
}
//Usage: