Sha256: 40df1d5b708821b95eb5ee01acb55ecd6ef5538adb670dbe3b458983692ca608

Contents?: true

Size: 498 Bytes

Versions: 24

Compression:

Stored size: 498 Bytes

Contents

add(a, b)
  a + b

pad(x, y)
  padding y x y x

body
  pad(5px, 10px)

form .button
  padding-left add(10px, 5px)

-opposite-position(pos)
  if pos == top
    bottom
  else if pos == bottom
    top
  else if pos == left
    right
  else if pos == right
    left
  else
    error('Invalid position ' + pos)

opposite(positions)
  for pos in positions
    pos = -opposite-position(pos)
    ret = ret is defined ? ret pos : pos

body
  foo opposite(top)
  foo opposite(left)
  foo opposite(top left)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
stylus-source-0.23.0 vendor/test/cases/functions.styl
stylus-source-0.22.6 vendor/test/cases/functions.styl
stylus-source-0.22.5 vendor/test/cases/functions.styl
stylus-source-0.22.4 vendor/test/cases/functions.styl
stylus-source-0.22.3 vendor/test/cases/functions.styl
stylus-source-0.22.2 vendor/test/cases/functions.styl
stylus-source-0.22.1 vendor/test/cases/functions.styl
stylus-source-0.22.0 vendor/test/cases/functions.styl
stylus-source-0.21.2 vendor/test/cases/functions.styl
stylus-source-0.21.1 vendor/test/cases/functions.styl
stylus-source-0.21.0 vendor/test/cases/functions.styl
stylus-source-0.20.1 vendor/test/cases/functions.styl
stylus-source-0.20.0 vendor/test/cases/functions.styl
stylus-source-0.19.8 vendor/test/cases/functions.styl
stylus-source-0.19.7 vendor/test/cases/functions.styl
stylus-source-0.19.6 vendor/test/cases/functions.styl
stylus-source-0.19.5 vendor/test/cases/functions.styl
stylus-source-0.19.4 vendor/test/cases/functions.styl
stylus-source-0.19.3 vendor/test/cases/functions.styl
stylus-source-0.19.2 vendor/test/cases/functions.styl