Skip to content

Instantly share code, notes, and snippets.

View andrewdc's full-sized avatar
💭
winning so much at the cyber

Andrew Colclough andrewdc

💭
winning so much at the cyber
View GitHub Profile
//defaults all corners to 3px.
=rounded_corners(!tleft = 3px , !tright = 3px , !bright = 3px , !bleft = 3px)
-moz-border-radius-topleft = !tleft
-moz-border-radius-topright = !tright
-moz-border-radius-bottomright = !bright
-moz-border-radius-bottomleft = !bleft
-webkit-border-top-left-radius = !tleft
-webkit-border-top-right-radius = !tright
-webkit-border-bottom-right-radius = !bright
@andrewdc
andrewdc / Opacity Mixin for Sass,Compass
Created January 14, 2010 18:39
Sass Opacity Mixin
// !opacity should be passed in the x.x format
@mixin opacity($opacity)
:filter alpha(opacity: $opacity * 100)
:-moz-opacity = $opacity
:-khtml-opacity = $opacity
:opacity = $opacity