Skip to content

Instantly share code, notes, and snippets.

@neojp
Created March 2, 2012 15:40
Show Gist options
  • Save neojp/1959228 to your computer and use it in GitHub Desktop.
Save neojp/1959228 to your computer and use it in GitHub Desktop.
Stylus: Image replacement mixin
// Image replacement
ir()
width = arguments ? arguments[0] : 100%
height = arguments && arguments[1] ? arguments[1] : false
height = height ? height : width
direction ltr
display block
height height
overflow hidden
text-align left
text-indent 100%
white-space nowrap
width width
.ir
ir()
@import "classes"
#ad
@extends .ir
#banners a
ir(400, 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment