File: function.arguments.styl

package info (click to toggle)
node-stylus 0.48.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,196 kB
  • ctags: 766
  • sloc: makefile: 38
file content (40 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

sum()
  n = 0
  for num in arguments
    n = n + num
  n

test(a, b)
  a = b
  (arguments[0] a)

body
  padding sum(1,2,3,4,5)
  padding test(1,2)

foo(p0 = 4px, p1 = 5px)
  p0 arguments[0]
  p1 arguments[1]

.foo
  foo()

color-proxy()
  return rgba(arguments)

.foo
  color: color-proxy(0, 0, 0, 1)

semi-transparent()
  return rgba(arguments, 0.5)

.bar
  color: semi-transparent(0, 0, 0)

width()
  push(arguments, !important)
  {current-property[0]}: arguments;

img
  width: unquote('auto');