Sha256: d46a27984ec3b5f863211a27c91037efc368a4a3280cdbb16a413f746666a183

Contents?: true

Size: 397 Bytes

Versions: 24

Compression:

Stored size: 397 Bytes

Contents

fix-to(a, b)
  position fixed
  {a} 0
  {b} 0

.button
  fix-to bottom left


fix-to(pos...)
  position fixed
  if length(pos) == 2
    {pos[0]} 0
    {pos[1]} 0
  else if length(pos) == 4
    a = pos[0..1]
    b = pos[2..3]
    {a[0]} a[1]
    {b[0]} b[1]
  else
    error('invalid arguments. fix-to: <pos> [n] <pos> [n];')
    
.button
  fix-to bottom left

.button
  fix-to bottom 5px left 5px

Version data entries

24 entries across 24 versions & 1 rubygems

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