-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
513 lines (466 loc) · 20.2 KB
/
demo.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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SassPlate Demo</title>
<meta name="description" content="SassPlate sass boilerplate's demo">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="css/demo.css">
</head>
<body>
<main class="container">
<h1>SassPlate Demo</h1>
<section class="demo-page-section">
<h2>Core</h2>
<section class="demo-page-subsection">
<h3>Colors</h3>
<p>
<span class="color-sample color-primary">Primary</span>
<span class="color-sample color-secondary">Secondary</span>
</p>
<p>
<span class="color-sample color-bg-1">clr-bg-1</span>
<span class="color-sample color-bg-2">clr-bg-2</span>
<span class="color-sample color-bg-3">clr-bg-3</span>
<span class="color-sample color-bg-4">clr-bg-4</span>
<span class="color-sample color-bg-5">clr-bg-5</span>
<span class="color-sample color-bg-6">clr-bg-6</span>
</p>
<p>
<span class="color-sample color-fg-1">clr-fg-1</span>
<span class="color-sample color-fg-2">clr-fg-2</span>
<span class="color-sample color-fg-3">clr-fg-3</span>
<span class="color-sample color-fg-4">clr-fg-4</span>
<span class="color-sample color-fg-5">clr-fg-5</span>
<span class="color-sample color-fg-6">clr-fg-6</span>
</p>
<p>
<span class="color-sample color-success">Success</span>
<span class="color-sample color-danger">Danger</span>
<span class="color-sample color-warning">Warning</span>
<span class="color-sample color-info">Info</span>
</p>
</section>
<section class="demo-page-subsection">
<h3>Metrics</h3>
<div class="flex">
<div>
<h4>Paddings</h4>
<div class="padding-xs">Extra small</div>
<div class="padding-sm">Small</div>
<div class="padding-md">Medium</div>
<div class="padding-lg">Large</div>
<div class="padding-xl">Extra large</div>
</div>
<div>
<h4>Borders</h4>
<div class="border-xs">Extra small</div>
<div class="border-sm">Small</div>
<div class="border-md">Medium</div>
<div class="border-lg">Large</div>
<div class="border-xl">Extra large</div>
</div>
<div>
<h4>Borders radii</h4>
<div class="border-radius-xs">Extra small</div>
<div class="border-radius-sm">Small</div>
<div class="border-radius-md">Medium</div>
<div class="border-radius-lg">Large</div>
<div class="border-radius-xl">Extra large</div>
</div>
</div>
</section>
<section class="demo-page-subsection">
<h3>Font sizes</h3>
<div class="inline-block-md font-xs">Extra small</div>
<div class="inline-block-md font-sm">Small</div>
<div class="inline-block-md font-md">Medium</div>
<div class="inline-block-md font-lg">Large</div>
<div class="inline-block-md font-xl">Extra large</div>
<div class="inline-block-md font-xxl">XX large</div>
<div class="inline-block-md font-xxxl">XXX large</div>
</section>
<section class="demo-page-subsection">
<h3>Shadows</h3>
<div class="inline-block-md shadow-1">Level 1</div>
<div class="inline-block-md shadow-2">Level 2</div>
<div class="inline-block-md shadow-3">Level 3</div>
<div class="inline-block-md shadow-4">Level 4</div>
<div class="inline-block-md shadow-5">Level 5</div>
</section>
</section>
<section class="demo-page-section">
<h2>HTML Elements</h2>
<section class="demo-page-subsection">
<h3>Headings</h3>
<div class="sample">
<h1>Heading h1</h1>
<h2>Heading h2</h2>
<h3>Heading h3</h3>
<h4>Heading h4</h4>
<h5>Heading h5</h5>
<h6>Heading h6</h6>
</div>
</section>
<section class="demo-page-subsection">
<h3>Paragraph</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non adipisci sit ex quam quibusdam commodi similique fugiat eos consequatur placeat. Rerum natus quisquam facilis, nihil earum culpa neque ullam modi!</p>
<p>Quia unde, perferendis atque vitae et minus provident amet quas alias consequatur velit autem quidem id quo earum temporibus nam, ducimus ut animi veritatis, eum illo optio! Magni, dignissimos, perferendis.</p>
<p>Id est, debitis maxime mollitia ducimus dolorem commodi, possimus, aut sunt doloribus eligendi earum sequi eaque voluptates. Dolore consequuntur, sapiente dignissimos debitis ratione totam, earum dolorum, minima laboriosam officiis adipisci!</p>
</section>
<section class="demo-page-subsection">
<h3>hr</h3>
<hr>
</section>
<section class="demo-page-subsection">
<h3>Pre</h3>
<div class="sample">
<pre>Tiger, tiger, burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?</pre>
</div>
</section>
<section class="demo-page-subsection">
<h3>Blockquote and cite</h3>
<div class="sample">
<blockquote>
<p>Anyone who has never made a mistake has never tried anything new.
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Enim dolore perspiciatis, alias ratione recusandae debitis ducimus maxime libero officia voluptatum qui aspernatur quo, nam perferendis earum, dignissimos rem? Ad, voluptates.
</blockquote>
<p><cite>Albert Einstein</cite>
</div>
</section>
<section class="demo-page-subsection">
<h3>Lists</h3>
<h4>Ordered list</h4>
<div class="sample">
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
</ol>
</div>
<h4>Unordered list</h4>
<div class="sample">
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
</ul>
</div>
<h4>Description list</h4>
<div class="sample">
<dl>
<dt>Pascal</dt>
<dd>A 17-th century Scientist</dd>
<dt>Java</dt>
<dd>An island</dd>
<dt>Python</dt>
<dd>A large snake</dd>
<dt>Javascript</dt>
<dd>A programming language</dd>
</dl>
</div>
</section>
<section class="demo-page-subsection">
<h3>Table</h3>
<table>
<caption>Continents</caption>
<thead>
<tr>
<th>Continent
<th>Area (km<sup>2</sup>)
<th>Population
</thead>
<tbody>
<tr>
<td>Africa
<td>30,370,000
<td>20.4%
<tr>
<td>Antarctica
<td>13,720,000
<td>9.2%
<tr>
<td>Asia
<td>43,820,000
<td>29.5%
<tr>
<td>Europe
<td>10,180,000
<td>6.8%
<tr>
<td>North America
<td>24,490,000
<td>16.5%
<tr>
<td>Australia
<td>9,008,500
<td>5.9%
<tr>
<td>South America
<td>17,840,000
<td>12.0%
</tbody>
</table>
</section>
<section class="demo-page-subsection">
<h3>Figure and figcaption</h3>
<figure>
<svg width="225.67px" height="225.68px" viewBox="0 0 451.349 451.35">
<path d="M83.559,395.768l35.47-35.462c2.817,6.083,6.67,11.79,11.671,16.803l10.684,10.672
c11.117,11.133,25.9,17.248,41.624,17.248c15.725,0,30.512-6.115,41.621-17.248l19.078-19.075l12.559,12.56
c5.05,5.049,13.253,5.049,18.307,0c5.061-5.062,5.061-13.265,0-18.322l-12.552-12.543l12.215-12.215l12.543,12.551
c5.058,5.062,13.261,5.062,18.322,0c5.053-5.053,5.053-13.256,0-18.306l-12.56-12.56l12.207-12.202l12.555,12.547
c5.062,5.054,13.265,5.054,18.318,0c5.05-5.049,5.05-13.252,0-18.313l-12.552-12.56l32.048-32.043
c11.112-11.117,17.231-25.896,17.231-41.617c0-15.724-6.119-30.505-17.231-41.621l-10.68-10.688
c-4.801-4.795-10.299-8.592-16.246-11.445c72.947-66.203,123.152-68,123.152-68L367.411,0
c-2.545,48.327-84.444,139.386-84.444,139.386l-54.938,54.932l-11.445-11.445c-5.058-5.055-7.153,1.046-12.208,6.111
c-5.058,5.055-11.163,7.147-6.107,12.205l11.447,11.445l-12.209,12.208l-11.447-11.445c-5.051-5.058-7.149,1.042-12.204,6.105
c-5.056,5.063-11.163,7.153-6.109,12.205l11.445,11.453l-12.205,12.207l-11.447-11.445c-5.055-5.054-7.151,1.042-12.207,6.107
c-5.057,5.053-11.163,7.145-6.107,12.206l11.445,11.445l-93.601,93.598c-7.867,7.866-7.867,20.622,0,28.489
C62.936,403.634,75.694,403.634,83.559,395.768z M202.427,365.596c-10.369,10.362-28.447,10.379-38.834,0l-10.684-10.681
c-5.646-5.642-8.229-13.156-7.922-20.569l32.171-32.168l44.346,44.342L202.427,365.596z M239.818,328.198l-44.344-44.343
l12.209-12.206l44.35,44.342L239.818,328.198z M270.338,297.678l-44.342-44.351l12.206-12.206l44.343,44.35L270.338,297.678z
M332.911,196.273c5.186,5.189,8.035,12.083,8.035,19.416c0,7.34-2.85,14.23-8.035,19.424l-32.044,32.043l-44.35-44.346
l45.155-45.156c0.389-0.018,0.758-0.11,1.143-0.11c7.329,0,14.218,2.855,19.42,8.039L332.911,196.273z"/>
<path d="M128.131,255.143l18.795-18.791c1.956-1.959,1.431-5.654-1.184-8.279c-2.615-2.609-6.313-3.134-8.277-1.182l-18.793,18.803
c-1.956,1.943-1.427,5.654,1.188,8.263C122.475,256.577,126.169,257.098,128.131,255.143z"/>
<path d="M159.417,223.86l18.791-18.792c1.956-1.956,1.431-5.663-1.184-8.277c-2.615-2.613-6.31-3.138-8.271-1.184l-18.795,18.794
c-1.954,1.956-1.429,5.661,1.184,8.275C153.756,225.291,157.456,225.816,159.417,223.86z"/>
<path d="M189.938,193.338l18.795-18.795c1.956-1.953,1.429-5.656-1.184-8.271c-2.615-2.615-6.314-3.14-8.277-1.184l-18.793,18.792
c-1.956,1.956-1.427,5.659,1.188,8.273C184.279,194.767,187.976,195.292,189.938,193.338z"/>
<polygon points="57.739,413.7 37.649,393.607 0.007,406.84 44.518,451.35"/>
</svg>
<figcaption>
A trumpet is a blown musical instrument.
<p>
<small>Image courtesy of <a href="https://www.freepik.com/?__hstc=57440181.ddf9b9dd7e7581d1aba4d6eda872ef8a.1561464013983.1561466113348.1561800778062.3&__hssc=57440181.1.1561800778062&__hsfp=1701199064" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>
<br>licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></small>
</figcaption>
</figure>
</section>
<section class="demo-page-subsection">
<h3>Link</h3>
<div class="sample">
<a href="http://example.com" target="_blank">Link example</a>
<a href="" target="_blank">Visited link</a>
</div>
</section>
<section class="demo-page-subsection">
<h3>Address</h3>
<p><address>1 Example st., Web, Neverland</address>
</section>
<section class="demo-page-subsection">
<h3>Text level (inline) elements</h3>
<div class="sample">
<p>The <em>em</em> element
<p>The <strong>strong</strong> element
<p>The <small>small</small> element
<p>The <s>s</s> element
<p>The <q>q</q> element
<p>The <dfn>dfn</dfn> element
<p>The <abbr title="Abbreviation">abbr</abbr> element
<p>The <time>time</time> element
<p>The <code>code</code> element
<p>The <var>var</var> element
<p>The <samp>samp</samp> element
<p>The <kbd>kbd</kbd> element
<p>The <sup>sup</sup> element
<p>The <sub>sub</sub> element
<p>The <i>i</i> element
<p>The <b>b</b> element
<p>The <u>u</u> element
<p>The <mark>mark</mark> element
<p>The <ins>ins</ins> element
<p>The <del>del</del> element
<p>Ruby and rt: <ruby>君<rt>くん</ruby><ruby>子<rt>し</ruby>は<ruby>和<rt>わ</ruby>して<ruby>同<rt>どう</ruby>ぜず。
</div>
</section>
<section class="demo-page-subsection">
<h3>Button</h3>
<p><button>Button</button>
</section>
<section class="demo-page-subsection">
<h3>Forms</h3>
<form>
<p><label>Text <input type="text" placeholder="Text"></label>
<p><label>Textarea <textarea placeholder="Textarea"></textarea></label>
<p><label>Number <input type="number" placeholder="Number"></label>
<p><label>Search <input type="search" placeholder="Search"></label>
<p><label>Password <input type="password" placeholder="Password"></label>
<p><label>Tel <input type="tel" placeholder="Tel"></label>
<p><label>Email <input type="email" placeholder="Email"></label>
<p><label>URL <input type="URL" placeholder="URL"></label>
<p><label>Datetime <input type="datetime" placeholder="Datetime" step="3600"></label>
<p><label>Datetime-local <input type="datetime-local" placeholder="Datetime" min="2012-01-01T00:00" max="2012-12-31T23:59" step=3600></label>
<p><label>Date <input type="date" placeholder="Date"></label>
<p><label>Time <input type="time" placeholder="Time"></label>
<p><label>Month <input type="month" placeholder="Month"></label>
<p><label>Week <input type="week" placeholder="Week"></label>
<p>
<label>Select
<select>
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
</label>
</p>
<p>
<fieldset>
<legend>Radio</legend>
<label><input type="radio" name="name"> One</label>
<label><input type="radio" name="name"> Two</label>
<label><input type="radio" name="name"> Three</label>
</fieldset>
</p>
<p><label><input type="checkbox"> Checkbox</label>
<p><label>Range <input type="range" min="0" max="10"></label>
<p><b>Color</b> <input type="color">
<p><b>Submit</b> <input type="submit">
<p><b>Reset</b> <input type="reset">
<p><b>Button</b> <input type="button" value="Button">
<p><label>File upload <input type="file"></label>
</form>
</section>
</section>
<section class="demo-page-section">
<h2>Other components</h2>
<section class="demo-page-subsection">
<h3>Radio group</h3>
<p>Horizontal</p>
<p class="radio-group">
<input type="radio" name="radio-group-input" id="radio-group-item-1">
<label for="radio-group-item-1">One</label>
<input type="radio" name="radio-group-input" id="radio-group-item-2">
<label for="radio-group-item-2">Two</label>
<input type="radio" name="radio-group-input" id="radio-group-item-3">
<label for="radio-group-item-3">Three</label>
</p>
<p>Vertical</p>
<p class="radio-group-vertical">
<input type="radio" name="radio-group-2-input" id="radio-group-2-item-1">
<label for="radio-group-2-item-1">One</label>
<input type="radio" name="radio-group-2-input" id="radio-group-2-item-2">
<label for="radio-group-2-item-2">Two</label>
<input type="radio" name="radio-group-2-input" id="radio-group-2-item-3">
<label for="radio-group-2-item-3">Three</label>
</p>
</section>
<section class="demo-page-subsection">
<h3>Progress bar and meter</h3>
<p>
<progress value="6" max="10"></progress>
</p>
<p>
<meter value="6" max="10"></meter>
</p>
</section>
<section class="demo-page-subsection">
<h3>Tooltip</h3>
<p>
<span aria-label="I am on the right" class="has-tooltip tooltip-right">On the right</span>, <span aria-label="I am on the left" class="has-tooltip tooltip-left">left</span>, <span aria-label="I am at the top" class="has-tooltip tooltip-top">top</span> and <span aria-label="I am at the bottom" class="has-tooltip tooltip-bottom">bottom</span>.
</p>
<p>
<span aria-label="I am on the South-East" class="has-tooltip tooltip-se">South-East</span>, <span aria-label="I am on the South-West" class="has-tooltip tooltip-sw">South-West</span>, <span aria-label="I am at the North-East" class="has-tooltip tooltip-ne">North-East</span> and <span aria-label="I am at the North-West" class="has-tooltip tooltip-nw">North-West</span>.
</p>
</section>
<section class="demo-page-subsection">
<h3>Tabs</h3>
<div class="tabs">
<div class="tabs-nav" role="tablist">
<button id="tab-1" class="tabs-tab active" role="tab" aria-selected="true" aria-controls="tab-panel-1">Tab 1</button>
<button id="tab-2" class="tabs-tab" role="tab" aria-selected="false" aria-controls="tab-panel-2" tabindex="-1">Tab 2</button>
<button id="tab-3" class="tabs-tab" role="tab" aria-selected="false" aria-controls="tab-panel-3" tabindex="-1">Tab 3</button>
</div>
<div id="tab-panel-1" class="tabs-panel" tabindex="0" role="tabpanel" aria-labelledby="tab-1">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur ea dolore ipsum doloribus, ad alias maiores, accusantium repellendus quod impedit in aperiam perspiciatis, iste nulla quae exercitationem quas fugiat atque!
</p>
</div>
<div id="tab-panel-2" class="tabs-panel" tabindex="0" role="tabpanel" aria-labelledby="tab-2" hidden>
<p>
Ex voluptatem iste accusamus distinctio, eum laudantium iure soluta cum sapiente commodi eos dignissimos eaque fugiat rerum temporibus tenetur nesciunt neque! Vero repudiandae accusamus placeat, vel consectetur atque, laboriosam dolor!
</p>
</div>
<div id="tab-panel-3" class="tabs-panel" tabindex="0" role="tabpanel" aria-labelledby="tab-3" hidden>
<p>
Impedit quidem magni, nihil repellat, illo alias iure tempora laborum ullam quaerat inventore et commodi? Animi magni excepturi enim numquam quisquam qui reprehenderit ab, aliquid corrupti iure quasi consequuntur! Ad!
</p>
</div>
</div>
</section>
<section class="demo-page-subsection">
<h3>Dialogs</h3>
<div>
<button class="open-dialog" data-toggle="dialog" data-target="#my-dialog">Open dialog</button>
<div id="my-dialog" class="dialog-overlay" role="dialog" aria-modal="true" aria-labelledby="my-dialog-label" tabindex="-1">
<div class="dialog" role="document">
<div class="dialog-header">
<button class="close close-dialog" title="Close" data-dismiss="dialog"></button>
<h4 id="my-dialog-label">Dialog Header</h4>
</div>
<div class="dialog-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam velit amet libero dicta accusantium cupiditate tempore nostrum quae voluptates sapiente repudiandae ipsam repellat adipisci ipsa, illo aliquam delectus asperiores eius.</div>
<div class="dialog-footer"><button class="close-dialog" data-dismiss="dialog">Close</button></div>
</div>
</div>
</div>
</section>
<section class="demo-page-subsection">
<h3>Dropdowns</h3>
<div>
<div class="dropdown">
<button data-toggle="dropdown" id="dropdown-btn-1">Dropdown</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-btn-1">
<li><a href="#" class="dropdown-item">One</a></li>
<li><a href="#" class="dropdown-item">Two</a></li>
<li><a href="#" class="dropdown-item">Three</a></li>
<li><a href="#" class="dropdown-item">Four</a></li>
</ul>
</div>
</div>
</section>
<section class="demo-page-subsection">
<h3>Alert</h3>
<div>
<button class="alert-toggle">Open an alert</button>
</div>
</section>
<section class="demo-page-subsection">
<h3>Breadcrumb</h3>
<nav aria-label="Breadcrumb">
<ol itemscope itemtype="http://schema.org/BreadcrumbList" class="breadcrumb">
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/store"><span itemprop="name">Store</span></a>
<meta itemprop="position" content="1">
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/store/instruments"><span itemprop="name">Instruments</span></a>
<meta itemprop="position" content="2">
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/store/instruments/brass"><span itemprop="name">Brass</span></a>
<meta itemprop="position" content="3">
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/store/instruments/brass/trumpets"><span itemprop="name">Trumpets</span></a>
<meta itemprop="position" content="4">
</li>
</ol>
</nav>
</section>
</section>
</main>
<script src="/include/js/jquery.js"></script>
<script src="js/component/dialog.js"></script>
<script src="js/component/dropdown.js"></script>
<script src="js/component/tabs.js"></script>
<script src="js/demo.js"></script>
</body>
</html>