-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.styl
More file actions
64 lines (56 loc) · 1.21 KB
/
example.styl
File metadata and controls
64 lines (56 loc) · 1.21 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@import 'stylus/roundto'
@import 'stylus/body-line-height'
@import 'stylus/px-rem'
@import 'stylus/margin'
@import 'stylus/padding'
@import 'stylus/width'
@import 'stylus/height'
@import 'stylus/font-size'
// Variables
// ============================================================
html-font-size-px = 10px;
body-font-size-px = 1.6 * html-font-size-px;
body-line-height = 1.5;
body-line-height-px = body-line-height * body-font-size-px;
// Styles
// ============================================================
html {
font-size: html-font-size-px;
}
body {
font-family: Helvetica Neue, sans-serif;
font-size: body-font-size-px;
line-height: body-line-height-px;
}
pre {
font-size: 14px;
}
p {
margin: 0 0 .5 0;
}
// Tests
// ============================================================
.blh {
margin: 0 auto 1 auto;
padding: 1 2px 1.5 3;
width: 20;
border: 1px solid aqua;
text-align: justify;
}
.px-rem {
font-size: 18px;
}
.font-size {
font-size: h1;
font-size: h2;
font-size: h3;
font-size: h4;
font-size: h5;
font-size: h6;
font-size: body;
font-size: small;
font-size: 23.453px;
font-size: 2em;
font-size: 2rem;
font-size: 20%;
}