File: arithmetic.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 (31 lines) | stat: -rw-r--r-- 335 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

size = 12px
large = size * (3 - 1)
huge = size * 3

body
  font-size size

h1
  font-size huge

h2
  font-size large
  font 5px % 3
  font 5px % 5
  font 2px ** 4
  y = 10
  x = 15

body {
  foo: 50% * 2;
  foo: 2 * 50%;
  foo: 50 + 50%;
  foo: 50 - 50%;
  foo: 50% - 50%;
  foo: 50% + 20%;
}
body {
  foo: 5 + 5em;
  foo: 5em + 5;
}