-
Notifications
You must be signed in to change notification settings - Fork 0
/
typography.html
248 lines (215 loc) · 7.76 KB
/
typography.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!doctype html>
<!--
@license
Copyright (c) FabricElements. All rights reserved.
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>skin-typography demo</title>
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module">
import '@polymer/polymer/lib/elements/custom-style.js';</script>
<script type="module" src="../classes/typography.js"></script>
<script type="module" src="../styles/default-theme.js"></script>
<custom-style>
<style include="skin-typography">
body {
margin: 0;
padding: 1rem;
font-family: sans-serif, Helvetica, Verdana;
}
.redlines {
background: linear-gradient(0deg, transparent, transparent 3.5px, rgba(255, 0, 0, 0.2) 3.5px, rgba(255, 0, 0, 0.2) 4px);
background-size: 100% 4px;
}
.bg-dark {
background-color: var(--paper-grey-900);
}
.paragraph {
margin-bottom: 20px;
}
.mobile-app {
max-width: 320px;
}
.toolbar {
height: 144px;
padding: 16px;
background: var(--default-primary-color);
color: var(--text-primary-color);
@apply --paper-font-display1;
}
.item, .disabled-item {
position: relative;
padding: 8px;
border: 1px solid;
border-color: var(--divider-color);
border-top: 0;
}
.item .primary {
color: var(--primary-text-color);
@apply --paper-font-body2;
}
.item .secondary {
color: var(--secondary-text-color);
@apply --paper-font-body1;
}
.disabled-item {
color: var(--disabled-text-color);
@apply --paper-font-body2;
}
.fab {
position: absolute;
box-sizing: border-box;
padding: 8px;
width: 56px;
height: 56px;
right: 16px;
top: -28px;
border-radius: 50%;
text-align: center;
background: var(--accent-color);
color: var(--text-primary-color);
@apply --paper-font-display1;
}
section {
border-bottom: 4px solid gray;
padding: 30px 10px;
}
</style>
</custom-style>
</head>
<body>
<section id="default-theme">
<h2>default-theme.html</h2>
<article class="mobile-app">
<div class="toolbar">
Title
</div>
<div class="item">
<div class="fab">+</div>
<div class="primary">Primary text</div>
<div class="secondary">Secondary text</div>
</div>
<div class="disabled-item">
Disabled
</div>
</article>
</section>
<section id="typography-light">
<h2>typography-light.html</h2>
<p>
Grumpy wizards make toxic brew for the evil Queen and Jack.
</p>
<article class="redlines paragraph">
<div class="paper-font-display4 light">Display 4</div>
<div class="paper-font-display3 light">Display 3</div>
<div class="paper-font-display2 light">Display 2</div>
<div class="paper-font-display1 light">Display 1</div>
<div class="paper-font-headline light">Headline</div>
<div class="paper-font-title light">Title</div>
<div class="paper-font-subhead light">Subhead</div>
<div class="paper-font-body2 light">Body 2</div>
<div class="paper-font-body1 light">Body 1</div>
<div class="paper-font-caption light">Caption</div>
<div class="paper-font-menu light">Menu</div>
<div class="paper-font-button light">Button</div>
</article>
<h3>Paragraphs</h3>
<h4>body2</h4>
<article class="paper-font-body2 redlines light">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi
tincidunt dui sit amet mi auctor, ac gravida magna aliquam. Fusce quis
purus elementum, tempus nisi vel, volutpat nulla. Vestibulum mollis
dictum tellus, vulputate porttitor arcu. Curabitur imperdiet risus id
egestas accumsan. Donec lectus felis, dignissim id iaculis sit amet,
faucibus in leo.
</p>
<p>
Mauris id urna ac ante ultrices commodo a imperdiet elit. Vivamus
interdum neque magna, eget dapibus est auctor et. Donec accumsan
libero nec augue scelerisque, ac egestas ante tincidunt. Proin
sollicitudin, mi eget sagittis mollis, arcu orci scelerisque turpis, a
sollicitudin tellus quam non sapien.
</p>
</article>
<h4>body1</h4>
<article class="paper-font-body1 redlines light">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi
tincidunt dui sit amet mi auctor, ac gravida magna aliquam. Fusce quis
purus elementum, tempus nisi vel, volutpat nulla. Vestibulum mollis
dictum tellus, vulputate porttitor arcu. Curabitur imperdiet risus id
egestas accumsan. Donec lectus felis, dignissim id iaculis sit amet,
faucibus in leo.
</p>
<p>
Mauris id urna ac ante ultrices commodo a imperdiet elit. Vivamus
interdum neque magna, eget dapibus est auctor et. Donec accumsan
libero nec augue scelerisque, ac egestas ante tincidunt. Proin
sollicitudin, mi eget sagittis mollis, arcu orci scelerisque turpis, a
sollicitudin tellus quam non sapien.
</p>
</article>
</section>
<section id="typography-dark">
<h2>typography-dark.html</h2>
<p>
Grumpy wizards make toxic brew for the evil Queen and Jack.
</p>
<article class="redlines paragraph bg-dark">
<div class="paper-font-display4 dark">Display 4</div>
<div class="paper-font-display3 dark">Display 3</div>
<div class="paper-font-display2 dark">Display 2</div>
<div class="paper-font-display1 dark">Display 1</div>
<div class="paper-font-headline dark">Headline</div>
<div class="paper-font-title dark">Title</div>
<div class="paper-font-subhead dark">Subhead</div>
<div class="paper-font-body2 dark">Body 2</div>
<div class="paper-font-body1 dark">Body 1</div>
<div class="paper-font-caption dark">Caption</div>
<div class="paper-font-menu dark">Menu</div>
<div class="paper-font-button dark">Button</div>
</article>
<h3>Paragraphs</h3>
<h4>body2</h4>
<article class="paper-font-body2 redlines dark bg-dark">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi
tincidunt dui sit amet mi auctor, ac gravida magna aliquam. Fusce quis
purus elementum, tempus nisi vel, volutpat nulla. Vestibulum mollis
dictum tellus, vulputate porttitor arcu. Curabitur imperdiet risus id
egestas accumsan. Donec lectus felis, dignissim id iaculis sit amet,
faucibus in leo.
</p>
<p>
Mauris id urna ac ante ultrices commodo a imperdiet elit. Vivamus
interdum neque magna, eget dapibus est auctor et. Donec accumsan
libero nec augue scelerisque, ac egestas ante tincidunt. Proin
sollicitudin, mi eget sagittis mollis, arcu orci scelerisque turpis, a
sollicitudin tellus quam non sapien.
</p>
</article>
<h4>body1</h4>
<article class="paper-font-body1 redlines dark bg-dark">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi
tincidunt dui sit amet mi auctor, ac gravida magna aliquam. Fusce quis
purus elementum, tempus nisi vel, volutpat nulla. Vestibulum mollis
dictum tellus, vulputate porttitor arcu. Curabitur imperdiet risus id
egestas accumsan. Donec lectus felis, dignissim id iaculis sit amet,
faucibus in leo.
</p>
<p>
Mauris id urna ac ante ultrices commodo a imperdiet elit. Vivamus
interdum neque magna, eget dapibus est auctor et. Donec accumsan
libero nec augue scelerisque, ac egestas ante tincidunt. Proin
sollicitudin, mi eget sagittis mollis, arcu orci scelerisque turpis, a
sollicitudin tellus quam non sapien.
</p>
</article>
</section>
</body>
</html>