forked from shoelace-style/shoelace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
1430 lines (1315 loc) · 51.7 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
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
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="For when you don’t need the entire boot.">
<link rel="stylesheet" href="source/css/shoelace.css">
<link rel="stylesheet" href="docs.css">
<title>Shoelace.css: a back to the basics CSS starter kit</title>
</head>
<body>
<main>
<header>
<h1>👟 Shoelace.css</h1>
<p class="text-muted text-small">
A back to the basics CSS starter kit. For when you don’t need the whole boot.
</p>
</header>
<!--********************************************************************************************
* Overview
*********************************************************************************************-->
<p id="overview">
Shoelace.css is a starter kit, not a framework. Think of it as a CSS reset sprinkled with
helpful components. Bootstrap users will find it familiar, yet refreshing.
</p>
<p>
Shoelace is highly customizable through CSS variables. It doesn’t require Less, Sass, or any
preprocessing at all. The minified version is only
<span data-minifiedSize>31KB</span> and much smaller when gzipped.
</p>
<p>
Just link to <code>shoelace.css</code> and add customizations to your stylesheet.
</p>
<pre>
<link rel="stylesheet" href="shoelace.css">
<style>
:root {
--body-color: white;
--body-bg-color: black;
--color-primary: #09d;
}
</style>
</pre>
<p>
Shoelace was created by <a href="https://twitter.com/claviska">@claviska</a> for
<a href="https://www.surrealcms.com/">Surreal CMS</a>. It’s available under the MIT license.
</p>
<p class="m-t-medium text-center">
<a class="github-button" href="https://github.com/claviska/shoelace-css/fork" data-size="large" aria-label="Fork claviska/shoelace-css on GitHub">Fork</a>
<a class="github-button" href="https://github.com/claviska/shoelace-css/releases" data-icon="octicon-cloud-download" data-size="large" aria-label="Download claviska/shoelace-css on GitHub">Download</a>
<a class="github-button" href="https://github.com/claviska/shoelace-css/issues" data-icon="octicon-issue-opened" data-size="large" aria-label="Issue claviska/shoelace-css on GitHub">Report a Bug</a>
<a class="github-button" href="https://github.com/claviska/shoelace-css" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star claviska/shoelace-css on GitHub">Star</a>
<a href="https://paypal.me/claviska" class="button button-success" style="margin-bottom: 1.2rem;">Donate</a>
</p>
<p class="text-small text-muted text-center">
Version <span data-version>1.0.0-beta3</span>
</p>
<!--********************************************************************************************
* Documentation
*********************************************************************************************-->
<h2 id="documentation">
<a class="bookmark" href="#documentation">#</a>
Documentation
</h2>
<ul class="two-column">
<li><a href="#installing">Installing</a></li>
<li><a href="#customizing">Customizing</a></li>
<li><a href="#content">Content</a></li>
<li><a href="#alerts">Alerts</a></li>
<li><a href="#badges">Badges</a></li>
<li><a href="#buttons">Buttons</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#loaders">Loaders</a></li>
<li><a href="#tabs">Tabs</a></li>
<li><a href="#tables">Tables</a></li>
<li><a href="#utilities">Utilities</a></li>
<li><a href="#grid-system">Grid System</a></li>
<li><a href="#icons">Icons</a></li>
<li><a href="#browser-support">Browser Support</a></li>
</ul>
<!--********************************************************************************************
* Installing
*********************************************************************************************-->
<h2 id="installing">
<a class="bookmark" href="#installing">#</a>
Installing
</h2>
<p>
Shoelace is incredibly easy to use. Just link to <code>shoelace.css</code> in your project and
you’re ready to <a href="#customizing">start customizing things</a>. You can use the CDN
version or download the source manually.
</p>
<h3 id="cdn">CDN</h3>
<p>
The easiest way to use Shoelace is via CDN. This service is generously provided by the folks
over at <a href="https://www.keycdn.com/">KeyCDN</a>.
</p>
<pre>
<link rel="stylesheet" href="https://cdn.shoelace.style/<span data-version>1.0.0-beta3</span>/shoelace.css">
</pre>
<p class="text-right">
<a href="https://www.keycdn.com/">
<img src="https://logos.keycdn.com/keycdn-logo.svg" alt="KeyCDN logo" class="width-15">
</a>
</p>
<h3 id="download">Download</h3>
<p>
Alternatively, you can <a href="https://github.com/claviska/shoelace-css/releases">download
the source</a> and link to <code>shoelace.css</code> from your own server.
</p>
<pre>
<link rel="stylesheet" href="dist/shoelace.css">
</pre>
<h3 id="npm">NPM</h3>
<p>
If you’re using NPM, you can install Shoelace by running:
</p>
<pre>
npm install --save-dev shoelace-css
</pre>
<!--********************************************************************************************
* Customizing
*********************************************************************************************-->
<h2 id="customizing">
<a class="bookmark" href="#customizing">#</a>
Customizing
</h2>
<p>
You can customize Shoelace without editing core files or using a preprocessor. To add
customizations, simply override one or more of the variables found in
<code><a href="source/css/variables.css">variables.css</a></code> in your own stylesheet.
</p>
<p>
For example, you can customize the default text color and background like this:
</p>
<pre>
:root {
--body-color: white;
--body-bg-color: black;
}
</pre>
<h3 id="using-variables">Using Variables</h3>
<p>
You can use any of Shoelace’s variables in your stylesheet. This makes it easy to reuse values
without hardcoding them. It also provides a foundation for extending Shoelace with your own
<a href="#custom-components">custom components</a>.
</p>
<pre>
.your-selector {
color: var(--state-danger);
}
</pre>
<p>
Refer to <code><a href="source/css/variables.css">variables.css</a></code> for a complete
list of variables in Shoelace.
</p>
<p>
If you’re not familiar with CSS variables,
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables">this article</a>
will bring you up to speed.
</p>
<h3 id="custom-components">Custom Components</h3>
<p>
You can create custom components to extend Shoelace’s functionality. Here are some best
practices to keep things consistent and easy for others to understand.
</p>
<p>
<strong>Familiarize yourself with Shoelace’s naming conventions.</strong> A custom accordion
component, for example, would have a class name such as <code>accordion</code>, modifier
classes such as <code>accordion-open</code>, and variable names that look like
<code>--accordion-bg-color</code>. Try to follow similar patterns as much as possible.
</p>
<p>
<strong>Define new variables when it makes sense to.</strong> Take a look at
<code><a href="source/css/variables.css">variables.css</a></code> to see how existing
components are defined. Many use core variables instead of hardcoded values. This makes it
easy for users to customize Shoelace quickly, but also gives them the flexibility to style
individual components as needed.
</p>
<p>
<strong>Semantic markup is strongly encouraged.</strong> Custom components should use the most
appropriate elements and the minimal amount of markup required.
</p>
<p>
<strong>Keep everything together.</strong> During development, each component should be in its
own folder along with its stylesheets, scripts, and documentation. This makes it easy to add
or remove components from your app without affecting others. Of course, it’s perfectly fine to
bundle components for optimization purposes in production.
</p>
<!--********************************************************************************************
* Content
*********************************************************************************************-->
<h2 id="content">
<a class="bookmark" href="#content">#</a>
Content
</h2>
<p>
Shoelace gives you an easy way to customize most HTML elements with variables. You don’t need
to apply any classes to achieve these styles — just use the appropriate tags.
</p>
<p>
For easy spacing, Shoelace removes top margins and applies a bottom margin to block elements.
By default, text sizing and spacing is measured in <code>rem</code> units.
</p>
<h3 id="headings">Headings <code><h1> – <h6></code></h3>
<h1 style="margin-top: 0;">Heading 1</h1>
<h2 style="margin-top: 0;">Heading 2</h2>
<h3 style="margin-top: 0;">Heading 3</h3>
<h4 style="margin-top: 0;">Heading 4</h4>
<h5 style="margin-top: 0;">Heading 5</h5>
<h6 style="margin-top: 0;">Heading 6</h6>
<h3 id="paragraphs">Paragraphs <code><p></code></h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat excepturi repellendus
nostrum dolorum dignissimos quis non, minus debitis laborum vero cupiditate sequi neque,
magnam dolore nemo possimus, soluta ducimus eaque.
</p>
<p>
Blanditiis ea qui, veritatis animi recusandae praesentium magnam. Commodi placeat, laboriosam
accusamus laudantium quasi eveniet soluta illo ducimus quis doloremque mollitia, officia
pariatur deleniti reprehenderit, maxime, dicta libero vero cum.
</p>
<h3 id="ordered-lists">Ordered Lists <code><ol></code></h3>
<ol>
<li>List item 1</li>
<li>List item 2
<ol>
<li>Nested item 1</li>
<li>Nested item 2</li>
<li>Nested item 3</li>
</ol>
</li>
<li>List item 3</li>
</ol>
<h3 id="unordered-lists">Unordered Lists <code><ul></code></h3>
<ul>
<li>List item 1</li>
<li>List item 2
<ul>
<li>Nested item 1</li>
<li>Nested item 2</li>
<li>Nested item 3</li>
</ul>
</li>
<li>List item 3</li>
</ul>
<h3 id="definition-lists">Definition Lists <code><dl></code></h3>
<dl>
<dt>Term 1</dt>
<dd>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum autem perferendis
exercitationem asperiores fuga incidunt, nam dicta amet. Dolor eligendi nisi praesentium
placeat officiis esse corporis molestiae. Doloremque accusamus, vel!
</dd>
<dt>Term 2</dt>
<dd>
Veritatis repellendus porro ipsam beatae temporibus natus id adipisci nobis accusantium
quidem eum fugit cupiditate deleniti nisi nesciunt dicta officia, enim, atque corporis neque
error. Unde saepe molestiae hic voluptatibus?
</dd>
</dl>
<h3 id="blockquotes">Blockquotes <code><blockquote></code></h3>
<blockquote>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Mollitia ipsam enim reprehenderit
placeat ab voluptate totam suscipit voluptas, culpa pariatur eos quas, sequi unde perferendis
officiis! Officiis eligendi eaque facilis.
</blockquote>
<h3 id="preformatted-text">Preformatted Text <code><pre></code></h3>
<pre>
CLS
SCREEN 13
PRINT "SHOELACE IS AWESOME"
</pre>
<h3 id="text-formats">Text Formats</h3>
<table class="table">
<thead>
<tr>
<th>Element</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><strong></code></td>
<td><strong>This is strong text</strong></td>
</tr>
<tr>
<td><code><em></code></td>
<td><em>This is emphasized text</em></td>
</tr>
<tr>
<td><code><u></code></td>
<td><u>This is underlined text</u></td>
</tr>
<tr>
<td><code><s></code></td>
<td><s>This is strikethrough text</s></td>
</tr>
<tr>
<td><code><a></code></td>
<td><a href="#">This is link text</a></td>
</tr>
<tr>
<td><code><small></code></td>
<td><small>This is small text</small></td>
</tr>
<tr>
<td><code><sup></code></td>
<td><sup>This is superscript text</sup></td>
</tr>
<tr>
<td><code><sub></code></td>
<td><sub>This is subscript text</sub></td>
</tr>
<tr>
<td><code><code></code></td>
<td><code>This is code text</code></td>
</tr>
<tr>
<td><code><samp></code></td>
<td><samp>This is sample text</samp></td>
</tr>
<tr>
<td><code><var></code></td>
<td><var>This is variable text</var></td>
</tr>
<tr>
<td><code><kbd></code></td>
<td><kbd>This is keyboard text</kbd></td>
</tr>
<tr>
<td><code><abbr></code></td>
<td><abbr title="Abbreviation">This is abbreviation text</abbr></td>
</tr>
<tr>
<td><code><del></code></td>
<td><del>This is deleted text</del></td>
</tr>
<tr>
<td><code><ins></code></td>
<td><ins>This is inserted text</ins></td>
</tr>
<tr>
<td><code><mark></code></td>
<td><mark>This is marked text</mark></td>
</tr>
</tbody>
</table>
<!--********************************************************************************************
* Alerts
*********************************************************************************************-->
<h2 id="alerts">
<a class="bookmark" href="#alerts">#</a>
Alerts
</h2>
<p>
Create an alert by applying the <code>alert</code> class to an element such as a
<code><div></code>. You can change an alert’s appearance using the
<code>alert-*</code> modifier.
</p>
<pre>
<div class="alert">Default</div>
<div class="alert alert-success">Success</div>
<div class="alert alert-info">Info</span>
<div class="alert alert-warning">Warning</div>
<div class="alert alert-danger">Danger</div>
<div class="alert alert-inverse">Inverse</div>
</pre>
<div class="alert">This is a default alert <a href="#">with link</a></div>
<div class="alert alert-success">This is a success alert <a href="#">with link</a></div>
<div class="alert alert-info">This is an info alert <a href="#">with link</a></div>
<div class="alert alert-warning">This is a warning alert <a href="#">with link</a></div>
<div class="alert alert-danger">This is a danger alert <a href="#">with link</a></div>
<div class="alert alert-inverse">This is an inverse alert <a href="#">with link</a></div>
<!--********************************************************************************************
* Badges
*********************************************************************************************-->
<h2 id="badges">
<a class="bookmark" href="#badges">#</a>
Badges
</h2>
<p>
Create a badge by applying the <code>badge</code> class to an element such as a
<code><span></code>. You can change a badge’s appearance using the <code>badge-*</code>
modifier.
</p>
<pre>
<span class="badge">Default</span>
<span class="badge badge-success">Success</span>
<span class="badge badge-info">Info</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-danger">Danger</span>
<span class="badge badge-inverse">Inverse</span>
</pre>
<p>
<span class="badge">Default</span>
<span class="badge badge-success">Success</span>
<span class="badge badge-info">Info</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-danger">Danger</span>
<span class="badge badge-inverse">Inverse</span>
</p>
<p>
Badges are sized relative to their parent element.
</p>
<pre>
<h1>Heading 1 <span class="badge">Badge</span></h1>
<h2>Heading 2 <span class="badge">Badge</span></h2>
<h3>Heading 3 <span class="badge">Badge</span></h3>
<p>Paragraph <span class="badge">Badge</span></p>
</pre>
<h1>Heading 1 <span class="badge">Badge</span></h1>
<h2>Heading 2 <span class="badge">Badge</span></h2>
<h3>Heading 3 <span class="badge">Badge</span></h3>
<p>Paragraph <span class="badge">Badge</span></p>
<!--********************************************************************************************
* Buttons
*********************************************************************************************-->
<h2 id="buttons">
<a class="bookmark" href="#buttons">#</a>
Buttons
</h2>
<p>
To create a button, use the <code><button></code> element or apply the
<code>button</code> class to another element such as an <code><a></code>. You can change
a button’s appearance using the <code>button-*</code> modifier.
</p>
<pre>
<button type="button">Default</button>
<button type="button" class="button-success">Success</button>
<button type="button" class="button-info">Info</button>
<button type="button" class="button-warning">Warning</button>
<button type="button" class="button-danger">Danger</button>
<button type="button" class="button-inverse">Inverse</button>
<button type="button" class="button button-link">Link</button>
</pre>
<p>
<button type="button">Default</button>
<button type="button" class="button-success">Success</button>
<button type="button" class="button-info">Info</button>
<button type="button" class="button-warning">Warning</button>
<button type="button" class="button-danger">Danger</button>
<button type="button" class="button-inverse">Inverse</button>
<button type="button" class="button-link">Link</button>
</p>
<p>
Use the <code>button-small</code> and <code>button-big</code> modifiers to change the size of
a button.
</p>
<p>
<button type="button" class="button-small">Small Button</button>
<button type="button">Normal Button</button>
<button type="button" class="button-big">Big Button</button>
</p>
<p>
Use the <code>button-block</code> modifier to make the button span the entire width of its
parent element. You can also mix and match modifiers as needed.
</p>
<p>
<button type="button" class="button-block button-small">Small Block Button</button>
<button type="button" class="button-block">Normal Block Button</button>
<button type="button" class="button-block button-big">Big Block Button</button>
</p>
<p>
Disabled buttons look like this. Set the <code>disabled</code> property on
<code><button></code> elements to achieve this effect. For all other elements, apply
<code>class="disabled"</code> instead.
</p>
<p>
<button type="button" disabled>Default</button>
<button type="button" class="button-success" disabled>Success</button>
<button type="button" class="button-info disabled">Info</button>
<button type="button" class="button-warning" disabled>Warning</button>
<button type="button" class="button-danger" disabled>Danger</button>
<button type="button" class="button-inverse" disabled>Inverse</button>
</p>
<p>
You can force buttons to have an active state by applying the <code>active</code> class.
</p>
<p>
<button type="button" class="active">Default</button>
<button type="button" class="button-success active">Success</button>
<button type="button" class="button-info disabled active">Info</button>
<button type="button" class="button-warning active">Warning</button>
<button type="button" class="button-danger active">Danger</button>
<button type="button" class="button-inverse active">Inverse</button>
</p>
<h3 id="file-buttons">File Buttons</h3>
<p>
File inputs are notoriously hard to style properly in every browser. Shoelace offers file
buttons as an alternative. These are much easier to style consistently, but come with the
caveat that the name (or number) of files selected will not be automatically shown to the
user. This aspect of a file button’s UX can be handled effectively with JavaScript, but this
is left as an <a href="https://stackoverflow.com/questions/2189615/how-to-get-file-name-when-user-select-a-file-via-input-type-file">excercise
for the user</a>.
</p>
<p>
File buttons are simply <code><label></code> elements with the <code>button</code> class
and a nested file input.
</p>
<pre>
<label class="button"><input type="file"></label>
</pre>
<p>
<label class="button">Select File <input type="file"></label>
</p>
<!--********************************************************************************************
* Forms
*********************************************************************************************-->
<h2 id="forms">
<a class="bookmark" href="#forms">#</a>
Forms
</h2>
<p>
Shoelace gives you beautiful forms without hassle. Most form controls don’t need a special
class for styling.
</p>
<h3 id="inputs">Form Controls</h3>
<p>
Form controls are styled at 100% of the width of their parent element.
</p>
<table class="table table-bordered">
<thead>
<tr>
<th>Input Type</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><input type="checkbox"></code></td>
<td>
<label><input type="checkbox" checked> Checkbox 1</label><br>
<label><input type="checkbox"> Checkbox 2</label>
</td>
</tr>
<tr>
<td><code><input type="color"></code></td>
<td><input type="color" value="#0099dd"></td>
</tr>
<tr>
<td><code><input type="date"></code></td>
<td><input type="date"></td>
</tr>
<tr>
<td><code><input type="email"></code></td>
<td><input type="email"></td>
</tr>
<tr>
<td>
<code><input type="file"></code>
<br>
<span class="text-small text-muted">
File inputs aren’t supported. Use a <a href="#file-buttons">file button</a> instead.
</span>
</td>
<td>
<label class="button button-block">Select a File <input type="file"></label>
</td>
</tr>
<tr>
<td><code><input type="number"></code></td>
<td><input type="number"></td>
</tr>
<tr>
<td><code><input type="password"></code></td>
<td><input type="password"></td>
</tr>
<tr>
<td><code><input type="radio"></code></td>
<td>
<label><input type="Radio" name="radio" checked> Radio 1</label><br>
<label><input type="Radio" name="radio"> Radio 2</label>
</td>
</tr>
<tr>
<td><code><input type="range"></code></td>
<td><input type="range"></td>
</tr>
<tr>
<td><code><input type="search"></code></td>
<td><input type="search"></td>
</tr>
<tr>
<td><code><input type="text"></code></td>
<td><input type="text"></td>
</tr>
<tr>
<td><code><input type="time"></code></td>
<td><input type="time"></td>
</tr>
<tr>
<td><code><progress></progress></code></td>
<td><progress max="100" value="50"></progress></td>
</tr>
<tr>
<td><code><select></code></td>
<td>
<select>
<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
</select>
</td>
</tr>
<tr>
<td><code><textarea></code></td>
<td><textarea rows="4"></textarea></td>
</tr>
</tbody>
</table>
<p>
You can change the size of most form controls with the <code>input-small</code> and
<code>input-big</code> modifiers.
</p>
<pre>
<input type="text" class="input-small" placeholder="Small">
<input type="text" placeholder="Default">
<input type="text" class="input-big" placeholder="Big">
<select class="input-small"><option>Item</option></select>
<select><option>Item</option></select>
<select class="input-big"><option>Item</option></select>
</pre>
<div class="two-column">
<p><input type="text" class="input-small" placeholder="Small"></p>
<p><input type="text" placeholder="Default"></p>
<p><input type="text" class="input-big" placeholder="Big"></p>
<p><select class="input-small"><option>Item</option></select></p>
<p><select><option>Item</option></select></p>
<p><select class="input-big"><option>Item</option></select></p>
</div>
<p>
Disabled form controls look like this:
</p>
<div class="input-single">
<input type="text" placeholder="Input" disabled>
</div>
<div class="input-single">
<label><input type="checkbox" disabled> Checkbox</label>
<label><input type="radio" disabled> Radio</label>
</div>
<p>
Read-only form controls look like this:
</p>
<div class="input-single">
<input type="text" readonly value="This is read-only">
</div>
<h3 id="form-control-spacing">Form Control Spacing</h3>
<p>
For proper spacing of individual form controls, wrap them in <code>input-single</code>
containers.
</p>
<pre>
<div class="input-single">
<label>Name</label>
<input type="text">
</div>
<div class="input-single">
<label>Password</label>
<input type="password">
</div>
<div class="input-single">
<label><input type="checkbox"> Remember me</label>
</div>
</pre>
<div class="input-single">
<label>Username</label>
<input type="text">
</div>
<div class="input-single">
<label>Password</label>
<input type="password">
</div>
<div class="input-single">
<label><input type="checkbox"> Remember me</label>
</div>
<h3 id="input-groups">Input Groups</h3>
<p>
Form controls and buttons can be grouped by wrapping them in <code>input-group</code>
containers.
</p>
<pre>
<div class="input-group">
<input type="text">
<button type="button" class="button">Submit</button>
</div>
<div class="input-group">
<button type="button" class="button">Submit</button>
<input type="text">
</div>
<div class="input-group">
<input type="text" placeholder="First">
<input type="text" placeholder="Middle">
<input type="text" placeholder="Last">
<button type="button" class="button">Submit</button>
</div>
<div class="input-group">
<button type="button" class="button">Option 1</button>
<button type="button" class="button">Option 2</button>
<button type="button" class="button">Option 3</button>
</div>
</pre>
<div class="input-single">
<div class="input-group">
<input type="text">
<button type="button">Submit</button>
</div>
</div>
<div class="input-single">
<div class="input-group">
<button type="button">Submit</button>
<input type="text">
</div>
</div>
<div class="input-single">
<div class="input-group">
<input type="text" placeholder="First">
<input type="text" placeholder="Middle">
<input type="text" placeholder="Last">
<button type="button">Submit</button>
</div>
</div>
<div class="input-single">
<div class="input-group">
<button type="button">Option 1</button>
<button type="button">Option 2</button>
<button type="button">Option 3</button>
</div>
</div>
<h3 id="input-addons">Input Addons</h3>
<p>
To create an input addon, use <code><span class="input-addon"></code>. Addons
can appear anywhere inside an input group. Use the <code>input-addon-*</code> modifier to
change the size to match adjacent form controls.
</p>
<pre>
<div class="input-group">
<span class="input-addon input-addon-small">$</span>
<input type="text" class="input-small">
<span class="input-addon input-addon-small">.00</span>
</div>
<div class="input-group">
<span class="input-addon">$</span>
<input type="text">
<span class="input-addon">.00</span>
</div>
<div class="input-group">
<span class="input-addon input-addon-big">$</span>
<input type="text" class="input-big">
<span class="input-addon input-addon-big">.00</span>
</div>
</pre>
<div class="input-single">
<div class="input-group">
<span class="input-addon input-addon-small">$</span>
<input type="text" class="input-small">
<span class="input-addon input-addon-small">.00</span>
</div>
</div>
<div class="input-single">
<div class="input-group">
<span class="input-addon">$</span>
<input type="text">
<span class="input-addon">.00</span>
</div>
</div>
<div class="input-single">
<div class="input-group">
<span class="input-addon input-addon-big">$</span>
<input type="text" class="input-big">
<span class="input-addon input-addon-big">.00</span>
</div>
</div>
<h3 id="form-groups">Form Groups</h3>
<p>
Related form controls can be grouped in a <code><fieldset></code>. An optional
<code><legend></code> can be used to display a name for the group.
</p>
<pre>
<fieldset>
<legend>User</legend>
...
</fieldset>
</pre>
<fieldset>
<legend>Login</legend>
<div class="input-single">
<label>Username</label>
<input type="text">
</div>
<div class="input-single">
<label>Password</label>
<input type="password">
</div>
<div class="input-single">
<label>
<input type="checkbox"> Remember me
</label>
</div>
<div class="input-single">
<button type="button">Login</button>
</div>
</fieldset>
<h3 id="validation">Validation</h3>
<p>
Form controls can be made valid or invalid using the <code>input-valid</code> and
<code>input-invalid</code> modifiers. It’s better to apply modifiers to the surrounding
<code>input-single</code> so labels will be styled as well, but modifiers can be applied
directly to form controls as needed.
</p>
<pre>
<div class="input-single input-valid">
<label>Valid</label>
<input type="text">
</div>
<div class="input-single input-invalid">
<label>Invalid</label>
<input type="text">
</div>
</pre>
<div class="two-column">
<div class="input-single input-valid">
<label>Valid</label>
<input type="text">
</div>
<div class="input-single input-invalid">
<label>Invalid</label>
<input type="text">
</div>
</div>
<!--********************************************************************************************
* Loaders
*********************************************************************************************-->
<h2 id="loaders">
<a class="bookmark" href="#loaders">#</a>
Loaders
</h2>
<p>
Create a pure CSS loader by applying the <code>loader</code> class to an empty
<code><span></code> element. You can use the <code>loader-small</code> and
<code>loader-big</code> modifiers to change the size.
</p>
<pre>
<span class="loader loader-small"></span>
<span class="loader"></span>
<span class="loader loader-big"></span>
</pre>
<p>
<span class="loader loader-small"></span>
<span class="loader"></span>
<span class="loader loader-big"></span>
</p>
<p>
You can simulate a background loader using <code>loader-bg</code>. This is achieved using
<code>position: relative</code> on the container and the <code>::after</code> pseudo-element.
You can use the <code>loader-bg-small</code> and <code>loader-bg-big</code> modifiers to
change the size.
</p>
<pre>
<div class="loader-bg loader-bg-small"></div>
<div class="loader-bg"></div>
<div class="loader-bg loader-bg-big"></div>
</pre>
<div class="loader-example clearfix">
<div class="loader-bg loader-bg-small"></div>
<div class="loader-bg"></div>
<div class="loader-bg loader-bg-big"></div>
</div>
<!--********************************************************************************************
* Tabs
*********************************************************************************************-->
<h2 id="tabs">
<a class="bookmark" href="#tabs">#</a>
Tabs
</h2>
<p>
Tab sets can be created using the markup below. By default, Shoelace renders tabs as pills
because they look better than traditional tabs when rendered on smaller screens.
</p>
<p>
Note the class names used for the main container, the tab navs, and the tab panes. Also note
that each tab links to its respective tab pane’s <code>id</code>.
</p>
<p>
To disable a tab, add <code>disabled</code> to the appropriate tab nav.
</p>
<pre>
<div class="tabs">
<nav class="tabs-nav">
<a href="#tab-1" class="active">Tab 1</a>
<a href="#tab-2">Tab 2</a>
<a href="#tab-3">Tab 3</a>
<a href="#" class="disabled">Disabled</a>
</nav>
<div class="tabs-pane active" id="tab-1">
...
</div>
<div class="tabs-pane" id="tab-2">
...
</div>
<div class="tabs-pane" id="tab-3">
...
</div>
</div>
</pre>
<div class="tabs">
<nav class="tabs-nav">
<a href="#tab-1-example-1" class="active">Tab 1</a>
<a href="#tab-2-example-1">Tab 2</a>
<a href="#tab-3-example-1">Tab 3</a>
<a href="#" class="disabled">Disabled</a>
</nav>
<div class="tabs-pane active" id="tab-1-example-1">
<h3>Tab 1</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui repellat ea magni magnam
assumenda voluptas accusantium nemo. Iusto beatae illum mollitia aut quasi odit facilis
officiis, laudantium debitis! Excepturi, quis!
</p>
</div>