This repository has been archived by the owner on Jul 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
413 lines (383 loc) · 16.9 KB
/
index.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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Layout</title>
<link href="//fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en" rel='stylesheet'>
<link rel="stylesheet" href="demo.css">
<style>
/* Autogenerated with gensamples.dart */
div.loading { display: none; }
body.wsk-upgrading > * { display: none; }
body.wsk-upgrading div.loading { display: block; }
</style>
</head>
<body class="wsk-upgrading"> <div class="loading">Loading...</div>
<h3>Default layout</h3>
<p>Uses a header for large screen sizes and a collapsible drawer for smaller
screens.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--overlay-drawer-button">
<div class="wsk-layout__header">
<!-- Icon -->
<img class="wsk-layout-icon" src="images/app-icon.png"/>
<!-- Title -->
<span class="wsk-layout-title">Web Starter Kit</span>
<!-- Add spacer, to align navigation to the right -->
<div class="wsk-layout-spacer"></div>
<!-- Navigation -->
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__drawer">
<span class="wsk-layout-title">Web Starter Kit</span>
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__content">
<div class="demo-content"></div>
</div>
</div>
</div>
<h3>Scrolling header</h3>
<p>Same as the standard layout, but the header scrolls with the content.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--overlay-drawer-button">
<div class="wsk-layout__header wsk-layout__header--scroll">
<!-- Icon -->
<img class="wsk-layout-icon" src="images/app-icon.png"/>
<!-- Title -->
<span class="wsk-layout-title">Web Starter Kit</span>
<!-- Add spacer, to align navigation to the right -->
<div class="wsk-layout-spacer"></div>
<!-- Navigation -->
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__drawer">
<span class="wsk-layout-title">Web Starter Kit</span>
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__content">
<div class="demo-content"></div>
</div>
</div>
</div>
<h3>Fixed drawer with header</h3>
<p>The drawer is always open in large screen sizes, functioning as side
navigation.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--fixed-drawer wsk-layout--overlay-drawer-button">
<div class="wsk-layout__header">
<span class="wsk-layout-title">Fixed drawer layout demo</span>
<div class="wsk-layout-spacer"></div>
<div class="wsk-input wsk-input--right">
<label class="wsk-textfield-expandable-icon wsk-label" for="sample-expandable">
<span class="wsk-textfield-expandable-icon-search"></span>
</label>
<div class="wsk-input__expandable-holder">
<input class="wsk-textfield wsk-js-textfield wsk-textfield--expandable" type="text" name="sample" id="sample-expandable" />
<label class="wsk-label" for="sample"></label>
</div>
</div>
</div>
<div class="wsk-layout__drawer">
<span class="wsk-layout-title">Web Starter Kit</span>
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__content">
<div class="demo-content"></div>
</div>
</div>
</div>
<h3>Fixed drawer (no header)</h3>
<p>Same as the previous layout, but with no header.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--fixed-drawer wsk-layout--overlay-drawer-button">
<div class="wsk-layout__drawer">
<span class="wsk-layout-title">Web Starter Kit</span>
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__content">
<div class="demo-content"></div>
</div>
</div>
</div>
<h3>Fixed header</h3>
<p>Always shows a header, even in smaller screens.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--fixed-header wsk-layout--overlay-drawer-button">
<div class="wsk-layout__header">
<!-- Icon -->
<img class="wsk-layout-icon" src="images/app-icon.png"/>
<!-- Title -->
<span class="wsk-layout-title">Web Starter Kit</span>
<!-- Add spacer, to align navigation to the right -->
<div class="wsk-layout-spacer"></div>
<!-- Navigation. We use CSS to hide it in small screens. -->
<nav class="wsk-navigation" id="fixed_header_nav">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__drawer">
<span class="wsk-layout-title">Web Starter Kit</span>
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__content">
<div class="demo-content"></div>
</div>
</div>
</div>
<h3>Fixed drawer and fixed header</h3>
<p>The drawer is always open in large screens. The header is always shown,
even in small screens.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--fixed-drawer wsk-layout--fixed-header">
<div class="wsk-layout__header">
<span class="wsk-layout-title">Fixed drawer and header</span>
<div class="wsk-layout-spacer"></div>
<div class="wsk-input wsk-input--right">
<label class="wsk-textfield-expandable-icon wsk-label" for="sample-expandable2">
<span class="wsk-textfield-expandable-icon-search"></span>
</label>
<div class="wsk-input__expandable-holder">
<input class="wsk-textfield wsk-js-textfield wsk-textfield--expandable" type="text" name="sample" id="sample-expandable2" />
<label class="wsk-label" for="sample"></label>
</div>
</div>
</div>
<div class="wsk-layout__drawer">
<span class="wsk-layout-title">Web Starter Kit</span>
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__content">
<div class="demo-content"></div>
</div>
</div>
</div>
<h3>Multi-row layout</h3>
<p>Example of a more complex waterfall header, with multiple rows (on large
screens only).</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--overlay-drawer-button">
<div class="wsk-layout__header wsk-layout__header--multi-row wsk-layout__header--waterfall wsk-layout__header--tall">
<!-- Top row -->
<div class="wsk-layout__header-row">
<!-- Icon -->
<img class="wsk-layout-icon" src="images/app-icon.png"/>
<!-- Title -->
<span id="my_text_changes">Web Starter Kit</span>
<div class="wsk-layout-spacer"></div>
<!-- Only show when compact, check CSS -->
<nav class="wsk-navigation" id="compact_navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<!-- Middle row, subtitle -->
<div class="wsk-layout__header-row">
<span class="wsk-typography--title">
Multi-row layout demo
</span>
</div>
<!-- Bottom row -->
<div class="wsk-layout__header-row">
<div class="wsk-layout-spacer"></div>
<!-- Only show when expanded, check CSS -->
<nav class="wsk-navigation" id="expanded_navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
</div>
<div class="wsk-layout__drawer">
<span class="wsk-layout-title">Web Starter Kit</span>
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__content">
<div class="demo-content"></div>
</div>
</div>
</div>
<h3>Transparent header</h3>
<p>Uses a transparent header that draws on top of the layout's background.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout" id="transparent_demo">
<div class="wsk-layout__header wsk-layout__header--transparent">
<!-- Icon -->
<img class="wsk-layout-icon" src="images/app-icon.png"/>
<!-- Title -->
<span class="wsk-layout-title">Web Starter Kit</span>
<!-- Add spacer, to align navigation to the right -->
<div class="wsk-layout-spacer"></div>
<!-- Navigation -->
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__drawer">
<span class="wsk-layout-title">Web Starter Kit</span>
<nav class="wsk-navigation">
<a class="wsk-navigation__link" href="">Hello</a>
<a class="wsk-navigation__link" href="">World.</a>
<a class="wsk-navigation__link" href="">How</a>
<a class="wsk-navigation__link" href="">Are</a>
<a class="wsk-navigation__link" href="">You?</a>
</nav>
</div>
<div class="wsk-layout__content">
</div>
</div>
</div>
<h3>Scrollable tabs</h3>
<p>Simple header with scrollable tabs.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--fixed-header">
<div class="wsk-layout__header">
<!-- Icon -->
<img class="wsk-layout-icon" src="images/app-icon.png"/>
<!-- Title -->
<span class="wsk-layout-title">Web Starter Kit</span>
</div>
<div class="wsk-layout__tab-bar wsk-js-ripple-effect">
<a href="#blue-panel-scroll" class="wsk-layout__tab is-active">Blue</a>
<a href="#green-panel-scroll" class="wsk-layout__tab">Green</a>
<a href="#red-panel-scroll" class="wsk-layout__tab">Red</a>
<a href="#blue-panel-scroll" class="wsk-layout__tab">Blue Two</a>
<a href="#green-panel-scroll" class="wsk-layout__tab">Green Two</a>
<a href="#red-panel-scroll" class="wsk-layout__tab">Red Two</a>
<a href="#blue-panel-scroll" class="wsk-layout__tab">Blue Three</a>
<a href="#green-panel-scroll" class="wsk-layout__tab">Green Three</a>
<a href="#red-panel-scroll" class="wsk-layout__tab">Red Three</a>
<a href="#blue-panel-scroll" class="wsk-layout__tab">Blue Four</a>
<a href="#green-panel-scroll" class="wsk-layout__tab">Green Four</a>
<a href="#red-panel-scroll" class="wsk-layout__tab">Red Four</a>
<a href="#blue-panel-scroll" class="wsk-layout__tab">Blue Five</a>
<a href="#green-panel-scroll" class="wsk-layout__tab">Green Five</a>
<a href="#red-panel-scroll" class="wsk-layout__tab">Red Five</a>
<a href="#blue-panel-scroll" class="wsk-layout__tab">Blue Six</a>
<a href="#green-panel-scroll" class="wsk-layout__tab">Green Six</a>
<a href="#red-panel-scroll" class="wsk-layout__tab">Red Six</a>
</div>
<div class="wsk-layout__content">
<div class="wsk-layout__tab-panel is-active" id="blue-panel-scroll">
<div class="demo-content"></div>
</div>
<div class="wsk-layout__tab-panel" id="green-panel-scroll">
<div class="demo-content-green"></div>
</div>
<div class="wsk-layout__tab-panel" id="red-panel-scroll">
<div class="demo-content-red"></div>
</div>
</div>
</div>
</div>
<h3>Fixed tabs</h3>
<p>Simple header with fixed tabs.</p>
<div class="demo-container">
<div class="wsk-layout wsk-js-layout wsk-layout--fixed-header wsk-layout--fixed-tabs">
<div class="wsk-layout__header">
<!-- Icon -->
<img class="wsk-layout-icon" src="images/app-icon.png"/>
<!-- Title -->
<span class="wsk-layout-title">Web Starter Kit</span>
</div>
<div class="wsk-layout__tab-bar wsk-js-ripple-effect">
<a href="#blue-panel-fixed" class="wsk-layout__tab is-active">Blue</a>
<a href="#green-panel-fixed" class="wsk-layout__tab">Green</a>
<a href="#red-panel-fixed" class="wsk-layout__tab">Red</a>
</div>
<div class="wsk-layout__content">
<div class="wsk-layout__tab-panel is-active" id="blue-panel-fixed">
<div class="demo-content"></div>
</div>
<div class="wsk-layout__tab-panel" id="green-panel-fixed">
<div class="demo-content-green"></div>
</div>
<div class="wsk-layout__tab-panel" id="red-panel-fixed">
<div class="demo-content-red"></div>
</div>
</div>
</div>
</div>
<!-- build:js(app/styleguide/layout/) ../../scripts/main.min.js -->
<!-- <script src="../wskComponentHandler.js"></script> -->
<!-- <script src="layout.js"></script> -->
<!-- <script src="../textfield/textfield.js"></script> -->
<!-- <script src="../ripple/ripple.js"></script> -->
<!-- <script src="../third_party/rAF.js"></script> -->
<!-- endbuild -->
<!-- start Autogenerated with gensamples.dart -->
<script type="application/dart" src="main.dart"></script>
<script type="text/javascript" src="packages/browser/dart.js"></script>
<!-- end Autogenerated with gensamples.dart -->
</body>
</html>