Skip to content

Instantly share code, notes, and snippets.

View badg0003's full-sized avatar

Mike Badgley badg0003

View GitHub Profile
/* makes sizing simpler */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* remove default spacing */
/* force styling of type through styling, rather than elements */
* {
@badg0003
badg0003 / gist:4125787
Created November 21, 2012 16:20 — forked from rickycodes/gist:4125586
Greyscale a thing
.thing {
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
filter: gray;
-webkit-filter: grayscale(100%);
}