forked from tobiasahlin/bendable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayground.html
167 lines (140 loc) · 5.08 KB
/
playground.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bendable Playground</title>
<link rel="stylesheet" type="text/css" href="bendable.css">
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<style type="text/css">
:root { font-family: 'Inter var', sans-serif; }
body {
padding: 4vw;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
line-height: 1em;
}
.row {
display: flex;
margin-bottom: 80px;
padding-bottom: 80px;
border-bottom: 1px solid #ddd;
}
.intro {
margin-bottom: 40px;
padding-bottom: 40px;
border-bottom: 1px solid #ddd;
}
.header {
margin-top: 80px;
}
.description {
width: 65%;
max-width: 550px;
font-family: monospace;
}
.subheader {
width: 15%;
padding-right: 15px;
font-family: monospace;
color: #666;
--fs-max: 16;
--fs-min: 12;
}
.subheader + * {
width: 80%;
}
</style>
</head>
<body>
<div class="intro container-inline">
<h1 class="h6 header">Header utilities</h1>
<p class="description fs-container f7">h1 - h6, automatically scales with the viewport. 4 sizing steps between min and max.</p>
</div>
<div class="row">
<span class="subheader bend">.h1</span>
<h1 class="h1">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.h2</span>
<div style="display: flex; flex-direction: column;">
<h1 class="h2">Whereas recognition of the inherent dignity</h1>
<h6 class="h5" style="font-weight: 300">Whereas recognition of the inherent dignity</h6>
</div>
</div>
<div class="row">
<span class="subheader bend">.h3</span>
<h1 class="h3">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.h4</span>
<h1 class="h4">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.h5</span>
<h1 class="h5">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.h6</span>
<h1 class="h6">Whereas recognition of the inherent dignity</h1>
</div>
<div class="intro container-inline">
<h1 class="h6 header">Body utilities</h1>
<p class="description fs-container f7">f1 - f7, automatically scales with the viewport. 2 sizing steps between min and max.</p>
</div>
<div class="row">
<span class="subheader bend">.f1</span>
<h1 class="f1">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.f2</span>
<h1 class="f2">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.f3</span>
<h1 class="f3">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.f4</span>
<h1 class="f4">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.f5</span>
<h1 class="f5">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.f6</span>
<h1 class="f6">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">.f7</span>
<h1 class="f7">Whereas recognition of the inherent dignity</h1>
</div>
<div class="intro container-inline">
<h1 class="h6 header">Sizing utilities</h1>
<p class="description fs-container f7">font-1 - font-14, automatically scales with the viewport.</p>
</div>
<div class="row">
<span class="subheader bend">font-2 font-12@4xl</span>
<h1 class="font-6 font-12@4xl">Whereas recognition of the inherent dignity</h1>
</div>
<div class="intro container-inline">
<h1 class="h6 header">Sizing utilities with breakpoints</h1>
<p class="description fs-container f7">font-1 - font-14, with breakpoints and size targets at sm, md, lg, xl, 2xl, 3xl, and 4xl.</p>
</div>
<div class="row">
<span class="subheader bend">font-1 font-1@sm font-3@md font-6@lg font-3@xl</span>
<h1 class="font-1 font-1@sm font-3@md font-4@lg font-6@xl">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">font-1 font-1@sm font-4@3xl 3xl:font-6</span>
<h1 class="font-1 font-1@sm font-4@3xl 3xl:font-6">Whereas recognition of the inherent dignity</h1>
</div>
<div class="row">
<span class="subheader bend">font-1 font-2@sm sm:font-4 font-6@md</span>
<h1 class="font-1 font-2@sm sm:font-4 font-6@md font-3@xl">Whereas recognition of the inherent dignity</h1>
</div>
</body>
</html>