stylobate
Version:
Framework for writing really abstract CSS in Stylus
33 lines (23 loc) • 775 B
text/stylus
unless ie
stylobate_defaults('kind-content', __before('&:before'), __after('&:after'))
kind-content($this)
$sides = utilus_get_sides($this.arguments)
if ie or ('' + $sides == '0 0 0 0')
padding: $sides
else
padding: 0 $sides[1] 0 $sides[3]
unless $this.elements.before
padding-top: $sides[0]
unless $this.elements.after
padding-bottom: $sides[2]
kind-content__before($this)
if not ('' + utilus_get_sides($this.parent.arguments) == '0 0 0 0')
pseudo-with-content()
display: table
margin-bottom: any_get_sides($this)[0]
kind-content__after($this)
if not ('' + utilus_get_sides($this.parent.arguments) == '0 0 0 0')
pseudo-with-content()
display: table
clear: both
margin-top: any_get_sides($this)[2]