Sha256: 4c995c817f0cb33f4b8820c84edd5f7a215a3c3f4505c2060b303cd1277bfde4

Contents?: true

Size: 948 Bytes

Versions: 24

Compression:

Stored size: 948 Bytes

Contents

n = false

if !n
  n = 100

body
  padding n

n = false

if not not n
  n = 50

body
  padding n

if not n
  n = 150

body
  padding n

if n
  n = n / 2
else
  n = 10000

body
  padding n

if n > 100
  n = n * 2
else
  n = -1

body
  padding n

n = 75

if n < 50
  n = n
else
  if n > 50 and n < 100
    n = 1
  else
    n = -1

body
  padding n

negative(n)
  unless n is a 'unit'
    return invalid
  if n < 0
    yes
  else if n > 0
    no
  else
    zero

body
  foo negative(-5)
  foo negative(5)
  foo negative(0)
  foo negative('asdf')

body
  .input
    pad = true
    margin = false
    if pad
      padding 5px
    if margin
      margin 5px
    else
      no unquote('margin')

mixin()
  foo bar
  bar baz

body
  form input
    if true
      foo negative(5)
      mixin()
  something
    mixin()

body
  .nested
    if true
      if true
        if true
          foo bar
          .hidden
            if true
              display none

Version data entries

24 entries across 24 versions & 1 rubygems

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