-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponents.html
573 lines (490 loc) · 21.2 KB
/
components.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
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="theme-color" content="#460d8d">
<title>Layered's design system</title>
<meta property="og:type" content="website">
<meta property="og:url" content="https://laye.red">
<meta property="og:title" content="Layered Design">
<meta property="og:description" content="Layered design system, based on Bootstrap">
<meta property="og:site_name" content="Layered Design">
<meta name="description" content="Layered design system, based on Bootstrap">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="dist/layered.css">
</head>
<body>
<nav class="navbar navbar-expand-lg fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">Layered Design</a>
<button class="navbar-toggler text-primary-light" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">☰ Menu</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item me-1">
<a class="nav-link" href="brand.html">Brand</a>
</li>
<li class="nav-item me-1 active">
<a class="nav-link" href="components.html">Components</a>
</li>
</ul>
<ul class="navbar-nav ms-auto">
<li class="nav-item ms-4">
<a class="nav-link btn btn-primary text-white" href="#">Sign in</a>
</li>
<li class="nav-item ms-2">
<a class="nav-link" href="#">Create account</a>
</li>
<li class="nav-item dropdown ms-3 active">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<img class="rounded-circle me-1" src="https://files.layered.market/neutral-2.png" alt="Anonymous" width="19" height="19" />
Anonymous
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Account</a>
<a class="dropdown-item" href="#">Billing</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div id="content">
<div class="page-head">
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-2 border-end bg-light py-3">
<div class="sticky-top" style="top: 64px">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" href="#">How to use</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#alerts">Alerts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#badges">Badges</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#buttons">Buttons</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#images">Images</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#navs">Navs</a>
</li>
</ul>
</div>
</div>
<div class="col-md-10">
<section class="py-5" id="get-started">
<div class="container">
<h2>How to use</h2>
<p class="lead">Include it in your projects like this:</p>
<h4>JS & CSS</h4>
<pre class="bg-primary-lighter rounded p-3"><code class="language-html"><link rel="stylesheet" href="dist/layered.css">
<script src="http://jsdelivr.net/..."></script></code></pre>
<h4>JS & SASS</h4>
<p>Install the library <code>npm i @layered/layered-design</code></p>
<p>Then include it in your project</p>
<pre class="bg-primary-lighter rounded p-3"><code class="language-sass">// main.scss
@import '~@layered/layered-design';</code></pre>
</div>
</section>
<hr>
<section class="py-5">
<div class="container" id="Colors">
<h2 class="mb-3">Colors</h2>
<h6 class="card-text">Brand colors</h6>
<div class="row mb-4">
<div class="col">
<div class="bg-primary p-2 rounded-top">
<p class="mb-2"><code>#2A3EB7</code></p>
<p class="text-white mb-0">primary</p>
</div>
<div class="bg-primary-light p-2">
<p class="mb-2"><code>#2A3EB7</code></p>
<p class="text-white mb-0">primary-light</p>
</div>
<div class="bg-primary-lighter p-2 rounded-bottom">
<p class="mb-2"><code>#2A3EB7</code></p>
<p class="mb-0">primary-lighter</p>
</div>
</div>
<div class="col">
<div class="bg-secondary p-2 rounded-top">
<p class="mb-2"><code>#FFB800</code></p>
<p class="text-white mb-0">secondary</p>
</div>
<div class="bg-secondary-light p-2">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">secondary-light</p>
</div>
<div class="bg-secondary-lighter p-2 rounded-bottom">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">secondary-lighter</p>
</div>
</div>
<div class="col">
<div class="bg-dark p-2 rounded-top">
<p class="mb-2"><code>#FFB800</code></p>
<p class="text-white mb-0">dark</p>
</div>
<div class="bg-gray p-2">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">gray</p>
</div>
<div class="bg-light p-2 rounded-bottom">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">light</p>
</div>
</div>
<div class="col">
<div class="bg-info p-2 rounded-top">
<p class="mb-2"><code>#FFB800</code></p>
<p class="text-white mb-0">info</p>
</div>
<div class="bg-info-light p-2">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">info-light</p>
</div>
<div class="bg-info-lighter p-2 rounded-bottom">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">info-lighter</p>
</div>
</div>
<div class="col">
<div class="bg-success p-2 rounded-top">
<p class="mb-2"><code>#FFB800</code></p>
<p class="text-white mb-0">success</p>
</div>
<div class="bg-success-light p-2">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">success-light</p>
</div>
<div class="bg-success-lighter p-2 rounded-bottom">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">success-lighter</p>
</div>
</div>
<div class="col">
<div class="bg-warning p-2 rounded-top">
<p class="mb-2"><code>#FFB800</code></p>
<p class="text-white mb-0">warning</p>
</div>
<div class="bg-warning-light p-2">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">warning-light</p>
</div>
<div class="bg-warning-lighter p-2 rounded-bottom">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">warning-lighter</p>
</div>
</div>
<div class="col">
<div class="bg-danger p-2 rounded-top">
<p class="mb-2"><code>#FFB800</code></p>
<p class="text-white mb-0">danger</p>
</div>
<div class="bg-danger-light p-2">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">danger-light</p>
</div>
<div class="bg-danger-lighter p-2 rounded-bottom">
<p class="mb-2"><code>#FFB800</code></p>
<p class="mb-0">danger-lighter</p>
</div>
</div>
</div>
<h6 class="card-text">Named colors</h6>
<div class="row mb-4">
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-blue);">
<p class="mb-2"><code>#2A3EB7</code></p>
<p class="text-white mb-0">blue</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-indigo);">
<p class="mb-2"><code>#6610f2</code></p>
<p class="text-white mb-0">indigo</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-purple);">
<p class="mb-2"><code>#6f42c1</code></p>
<p class="text-white mb-0">purple</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-pink);">
<p class="mb-2"><code class="text-dark">#e83e8c</code></p>
<p class="text-white mb-0">pink</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-red);">
<p class="mb-2"><code>#FF7459</code></p>
<p class="text-white mb-0">red</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-orange);">
<p class="mb-2"><code>#fd7e14</code></p>
<p class="text-white mb-0">orange</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-yellow);">
<p class="mb-2"><code>#ffc107</code></p>
<p class="text-white mb-0">yellow</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-green);">
<p class="mb-2"><code>#8DD384</code></p>
<p class="text-white mb-0">green</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-teal);">
<p class="mb-2"><code>#20c997</code></p>
<p class="text-white mb-0">teal</p>
</div>
</div>
<div class="col my-1">
<div class="p-2 rounded" style="background-color: var(--bs-cyan);">
<p class="mb-2"><code>#17a2b8</code></p>
<p class="text-white mb-0">cyan</p>
</div>
</div>
</div>
<h6 class="card-text">To use the colors</h6>
<p class="card-text mb-2">In CSS use CSS variable with color name, ex: <code>background-color: var(--bs-red);</code></p>
<p class="card-text mb-2">For elements background use Bootstrap background utility, ex: <code>class="bg-success"</code></p>
<p class="card-text mb-2">For text color use Background text utility, ex: <code>class="text-dark"</code></p>
<p class="card-text">Learn more about usage in Bootstrap docs <a href="https://getbootstrap.com/docs/4.6/getting-started/theming/#color">https://getbootstrap.com/docs/4.6/getting-started/theming/#color</a></p>
</div>
</section>
<hr>
<section class="py-5">
<div class="container" id="alerts">
<h2 class="mb-3">Alerts</h2>
<div class="row">
<div class="col-md-6">
<div class="alert alert-primary" role="alert">
A simple primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
A simple secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
A simple success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
A simple danger alert—check it out!
</div>
</div>
<div class="col-md-6">
<div class="alert alert-warning" role="alert">
A simple warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
A simple info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
A simple light alert—check it out!
</div>
<div class="alert alert-dark" role="alert">
A simple dark alert—check it out!
</div>
</div>
</div>
</div>
</section>
<hr>
<section class="py-5">
<div class="container" id="badges">
<h2 class="mb-3">Badges</h2>
<p class="mb-1">Standard</p>
<p>
<span class="badge bg-primary">Primary</span>
<span class="badge bg-secondary">Secondary</span>
<span class="badge bg-success">Success</span>
<span class="badge bg-danger">Danger</span>
<span class="badge bg-warning">Warning</span>
<span class="badge bg-info">Info</span>
<span class="badge bg-light text-dark">Light</span>
<span class="badge bg-dark">Dark</span>
</p>
<p class="mb-1">Pills</p>
<p>
<span class="badge rounded-pill bg-primary">Primary</span>
<span class="badge rounded-pill bg-secondary">Secondary</span>
<span class="badge rounded-pill bg-success">Success</span>
<span class="badge rounded-pill bg-danger">Danger</span>
<span class="badge rounded-pill bg-warning">Warning</span>
<span class="badge rounded-pill bg-info">Info</span>
<span class="badge rounded-pill bg-light text-dark">Light</span>
<span class="badge rounded-pill bg-dark">Dark</span>
</p>
<p class="mb-1">Outline</p>
<p>
<span class="badge rounded-pill text-primary border border-primary">Primary</span>
<span class="badge text-secondary border border-secondary">Secondary</span>
<span class="badge rounded-pill text-success border border-success">Success</span>
<span class="badge text-danger border border-danger">Danger</span>
<span class="badge rounded-pill text-warning border border-warning">Warning</span>
<span class="badge text-info border border-info">Info</span>
<span class="badge text-dark border border-dark">Dark</span>
</p>
<p class="mb-1">Light</p>
<p>
<span class="badge rounded-pill text-primary bg-primary-lighter">Primary</span>
<span class="badge text-secondary bg-secondary-light">Secondary</span>
<span class="badge rounded-pill text-success bg-success-light">Success</span>
<span class="badge text-danger bg-danger-light">Danger</span>
<span class="badge rounded-pill text-warning bg-warning-light">Warning</span>
<span class="badge text-info bg-info-light">Info</span>
</p>
</div>
</section>
<hr>
<section class="py-5">
<div class="container" id="buttons">
<h2 class="mb-3">Buttons</h2>
<p class="mb-1">Standard</p>
<p>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-link">Link</button>
<button type="button" class="btn">.btn</button>
</p>
<p class="mb-1">Outline</p>
<p>
<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-light">Light</button>
<button type="button" class="btn btn-outline-dark">Dark</button>
</p>
<p class="mb-1">Small</p>
<p>
<button type="button" class="btn btn-sm btn-primary">Primary</button>
<button type="button" class="btn btn-sm btn-secondary">Secondary</button>
<button type="button" class="btn btn-sm btn-success">Success</button>
<button type="button" class="btn btn-sm btn-danger">Danger</button>
<button type="button" class="btn btn-sm btn-warning">Warning</button>
<button type="button" class="btn btn-sm btn-info">Info</button>
<button type="button" class="btn btn-sm btn-light">Light</button>
<button type="button" class="btn btn-sm btn-dark">Dark</button>
</p>
<p class="mb-1">Large</p>
<p>
<button type="button" class="btn btn-lg btn-primary">Primary</button>
<button type="button" class="btn btn-lg btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-lg btn-light">Light</button>
<button type="button" class="btn btn-lg btn-outline-dark">Dark</button>
</p>
</div>
</section>
<hr>
<section class="py-5">
<div class="container" id="images">
<h2 class="mb-3">Images</h2>
<img src="https://files.layered.market/plugins/if-menu-icon.jpg" width="100" height="100" alt="If Menu - Visibility control for menu items" class="img-thumbnail" loading="lazy">
</div>
</section>
<hr>
<section class="py-5">
<div class="container" id="navs">
<h2 class="mb-3">Navs</h2>
<ul class="nav my-3">
<li class="nav-item"><a class="nav-link active" href="#">Active</a></li>
<li class="nav-item"><a class="nav-link" href="#">Link</a></li>
<li class="nav-item"><a class="nav-link" href="#">Link</a></li>
<li class="nav-item"><a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a></li>
</ul>
<ul class="nav nav-tabs my-3">
<li class="nav-item"><a class="nav-link active" href="#">Active</a></li>
<li class="nav-item"><a class="nav-link" href="#">Link</a></li>
<li class="nav-item"><a class="nav-link" href="#">Link</a></li>
<li class="nav-item"><a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a></li>
</ul>
<ul class="nav nav-pills my-3">
<li class="nav-item"><a class="nav-link active" href="#">Active</a></li>
<li class="nav-item"><a class="nav-link" href="#">Link</a></li>
<li class="nav-item"><a class="nav-link" href="#">Link</a></li>
<li class="nav-item"><a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a></li>
</ul>
</div>
</section>
<hr>
<section class="py-5">
<div class="container" id="navs">
<h2 class="mb-3">Toasts</h2>
<p>
<button class="btn btn-outline-secondary" onclick="toast('This is an example toast')">Show default toast</button>
<button class="btn btn-outline-primary" onclick="toast('✅ Nice, it happened!', { type: 'primary' })">Show primary toast</button>
<button class="btn btn-outline-success" onclick="toast('👌🏼 Action was successful', { type: 'success' })">Show success toast</button>
<button class="btn btn-outline-danger" onclick="toast('⚠️ An error happened', { type: 'danger' })">Show danger toast</button>
</p>
</div>
</section>
</div>
</div>
</div>
</div>
<footer class="site-footer pt-5 pb-4">
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-6">
<h5 class="subtitle">Layered Design</h5>
<ul class="nicer-list">
<li><a href="#">Submenu</a></li>
<li><a href="#">Support</a></li>
<li><span class="badge badge-outline-dark js-version">v1.5.6</span></li>
</ul>
</div>
<div class="col-xs-6 col-md-3">
<h5 class="subtitle">Layered</h5>
<ul class="nicer-list">
<li><a href="https://laye.red" target="_blank">Layered</a></li>
<li><a href="https://medium.com/layered/tagged/wordpress" target="_blank">Blog</a></li>
<li>
<a href="https://twitter.com/LayeredAgency" target="_blank" class="social-link social-link-twitter">@LayeredAgency</a>
</li>
</ul>
</div>
<div class="col-xs-6 col-md-3">
<h5 class="subtitle">Resources</h5>
<ul class="nicer-list">
<li><a href="https://github.com/LayeredStudio/layered-design">GitHub</a></li>
<li><a href="https://www.npmjs.com/package/@layered/layered-design">npm</a></li>
<li><a href="https://www.jsdelivr.com/package/npm/@layered/layered-design">jsDelivr</a></li>
</ul>
</div>
</div>
</div>
</footer>
<script type="module">
import { toast } from './dist/layered.js'
window.toast = toast
</script>
</body>
</html>