grunt-todo
Version:
Find TODO, FIXME and NOTE inside project files
38 lines (30 loc) • 966 B
text/stylus
// Random Stylesheet for testing
$pixelBase = 10
// NOTE this can probably have a nice refactor
u( $values )
$list = unquote( "" )
$unit = ""
for $value in $values
if ( $value == "auto" ) or ( $value == "inherit" )
$unit = "string"
else
$unit = unit( $value )
if ( $value == 0 ) or ( $unit != "" )
append( $list, $value )
else
if $usePixels
append( $list, unit( $value, "px" ) )
else
append( $list, unit( ( $value / $pixelBase ), "rem" ) )
return $list
// TODO add aliases for these
fslh( $font-size, $line-height )
return unquote( "" + u( $font-size ) + "/" + u( $line-height ) + "" )
// BURP Oops, sorry.
centering( $position = absolute, $top = 0, $right = 0, $bottom = 0, $left = 0, $margin = auto )
position: $position
top: $top
right: $right
bottom: $bottom
left: $left
margin: $margin