Sha256: da9dd522d43f5836c98610b8b74d148aeac25556ea68b0160b5fa48479c240a1

Contents?: true

Size: 970 Bytes

Versions: 14

Compression:

Stored size: 970 Bytes

Contents

// helper

-pos(type, args)
  i = 0
  position: unquote(type)
  for j in (1..4)
    if length(args) > i
      {args[i]}: args[i + 1] is a 'unit' ? args[i += 1] : 0
    i += 1

/*
 * Position utility.
 * 
 * Synopsis:
 * 
 *   fixed: <pos> [n] <pos> [n]
 * 
 * Examples:
 * 
 *     fixed: top left
 *     fixed: top 5px left
 *     fixed: top left 5px
 *     fixed: top 5px left 5px
 * 
 */

fixed()
  -pos('fixed', arguments)

/*
 * Position utility.
 * 
 * Synopsis:
 * 
 *   absolute: <pos> [n] <pos> [n]
 * 
 * Examples:
 * 
 *     absolute: top left
 *     absolute: top 5px left
 *     absolute: top left 5px
 *     absolute: top 5px left 5px
 * 
 */

absolute()
  -pos('absolute', arguments)

/*
 * Position utility.
 * 
 * Synopsis:
 * 
 *   relative: <pos> [n] <pos> [n]
 * 
 * Examples:
 * 
 *     relative: top left
 *     relative: top 5px left
 *     relative: top left 5px
 *     relative: top 5px left 5px
 * 
 */

relative()
  -pos('relative', arguments)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-4.1.5 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-4.1.4 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-4.1.3 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-4.1.2 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-4.1.1 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-4.1.0 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-3.3.0 node_modules/poised.old/node_modules/nib/lib/nib/positions.styl
ela-3.2.0 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-3.1.1 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-3.1.0 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-3.0.0 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-2.0.0 node_modules/poised/node_modules/nib/lib/nib/positions.styl
ela-1.1.0 node_modules/poised/node_modules/nib/lib/nib/positions.styl