Skip to content

Instantly share code, notes, and snippets.

View mwawrusch's full-sized avatar

Martin Wawrusch mwawrusch

View GitHub Profile
@mwawrusch
mwawrusch / mixin.sass
Created November 25, 2011 07:06
Some mixins for SASS
$useIEFilters: 1
// might be 0 or 1. disabled by default.
=border-radius($values)
-moz-border-radius: $values
-webkit-border-radius: $values
border-radius: $values
=border-bottom-left-radius($values)
@mwawrusch
mwawrusch / gist:1379839
Created November 20, 2011 05:33 — forked from showell/gist:1379677
refactoring help
$ ->
togglee = (elem) ->
$($(elem).data("toggle"))
toggle = (elem) ->
icon = $(elem).find("span.icon")
isVisible = togglee(elem).is(":visible")
icon.toggleClass 'downarrow',isVisible
icon.toggleClass 'uparrow',!isVisible