Skip to content

Instantly share code, notes, and snippets.

@atinypixel
Created November 12, 2009 15:40
Show Gist options
  • Save atinypixel/232994 to your computer and use it in GitHub Desktop.
Save atinypixel/232994 to your computer and use it in GitHub Desktop.
=cf
display: inline-block
&:after
content: "."
display: block
height: 0
clear: both
visibility: hidden
* html &
height: 1px
=support_hover
_azimuth: expression(this.onmousedown = this.onmousedown || new Function("this.className += ' active'"), this.onmouseup = this.onmouseup || new Function("this.className = this.className.replace('active','')"), this.onmouseenter = this.onmouseenter || new Function("this.className += ' hover'"), this.onmouseleave = this.onmouseleave || new Function("this.className = this.className.replace('hover','')"), 'inherit')
=border-radius($radius: "0")
-moz-border-radius: $radius
-webkit-border-radius: $radius
=border-radius-custom($top_left: "0", $top_right: "0", $bottom_left: "0", $bottom_right: "0")
-moz-border-radius-topleft: $top_left
-moz-border-radius-topright: $top_right
-moz-border-radius-bottomleft: $bottom_left
-moz-border-radius-bottomright: $bottom_right
-webkit-border-top-left-radius: $top_left
-webkit-border-top-right-radius: $top_right
-webkit-border-bottom-left-radius: $bottom_left
-webkit-border-bottom-right-radius: $bottom_right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment