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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="index, follow">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="author" content="https://github.com/picturepan2/">
<title>Utilities - Spectre.css CSS Framework</title>
<link rel="stylesheet" href="dist/spectre.css">
<link rel="stylesheet" href="dist/spectre-icons.css">
<link rel="stylesheet" href="dist/spectre-exp.css">
<link rel="stylesheet" href="css/docs.css">
</head>
<body>
<div class="docs-container off-canvas">
<div class="docs-navbar">
<a class="off-canvas-toggle btn btn-link btn-action" href="#sidebar">
<i class="icon icon-menu"></i>
</a>
<a href="https://github.com/picturepan2/spectre" target="_blank" class="btn btn-primary">GitHub</a>
</div>
<div id="sidebar" class="docs-sidebar off-canvas-sidebar">
<div class="docs-brand">
<a href="index.html" class="docs-logo">
<img src="img/spectre-logo.svg" alt="Spectre.css CSS Framework">
<h2>SPECTRE</h2>
</a>
</div>
<div class="docs-nav">
<div class="accordion-container">
<div class="accordion">
<input type="checkbox" id="docs-accordion-1" name="docs-accordion-checkbox" hidden>
<label class="accordion-header c-hand" for="docs-accordion-1">
Getting started
</label>
<div class="accordion-body">
<ul class="menu menu-nav">
<li class="menu-item">
<a href="getting-started.html">Introduction</a>
</li>
<li class="menu-item">
<a href="getting-started.html#installation">Installation</a>
</li>
<li class="menu-item">
<a href="getting-started.html#custom">Custom version</a>
</li>
<li class="menu-item">
<a href="getting-started.html#browsers">Browser support</a>
</li>
<li class="menu-item">
<a href="getting-started.html#whatsnew">What's new</a>
</li>
</ul>
</div>
</div>
<div class="accordion">
<input type="checkbox" id="docs-accordion-2" name="docs-accordion-checkbox" hidden>
<label class="accordion-header c-hand" for="docs-accordion-2">
Elements
</label>
<div class="accordion-body">
<ul class="menu menu-nav">
<li class="menu-item">
<a href="elements.html">Typography</a>
</li>
<li class="menu-item">
<a href="elements.html#tables">Tables</a>
</li>
<li class="menu-item">
<a href="elements.html#buttons">Buttons</a>
</li>
<li class="menu-item">
<a href="elements.html#forms">Forms</a>
</li>
<li class="menu-item">
<a href="elements.html#icons">Icons</a>
</li>
<li class="menu-item">
<a href="elements.html#labels">Labels</a>
</li>
<li class="menu-item">
<a href="elements.html#codes">Codes</a>
</li>
<li class="menu-item">
<a href="elements.html#media">Media</a>
</li>
</ul>
</div>
</div>
<div class="accordion">
<input type="checkbox" id="docs-accordion-3" name="docs-accordion-checkbox" hidden>
<label class="accordion-header c-hand" for="docs-accordion-3">
Layout
</label>
<div class="accordion-body">
<ul class="menu menu-nav">
<li class="menu-item">
<a href="layout.html">Flexbox grid</a>
</li>
<li class="menu-item">
<a href="layout.html#responsive">Responsive</a>
</li>
<li class="menu-item">
<a href="layout.html#navbar">Navbar</a>
</li>
</ul>
</div>
</div>
<div class="accordion">
<input type="checkbox" id="docs-accordion-4" name="docs-accordion-checkbox" hidden>
<label class="accordion-header c-hand" for="docs-accordion-4">
Components
</label>
<div class="accordion-body">
<ul class="menu menu-nav">
<li class="menu-item">
<a href="components.html">Accordions</a>
</li>
<li class="menu-item">
<a href="components.html#autocomplete">Autocomplete</a>
</li>
<li class="menu-item">
<a href="components.html#avatars">Avatars</a>
</li>
<li class="menu-item">
<a href="components.html#badges">Badges</a>
</li>
<li class="menu-item">
<a href="components.html#bars">Bars</a>
</li>
<li class="menu-item">
<a href="components.html#breadcrumbs">Breadcrumbs</a>
</li>
<li class="menu-item">
<a href="components.html#cards">Cards</a>
</li>
<li class="menu-item">
<a href="components.html#chips">Chips</a>
</li>
<li class="menu-item">
<a href="components.html#empty">Empty states</a>
</li>
<li class="menu-item">
<a href="components.html#menus">Menus</a>
</li>
<li class="menu-item">
<a href="components.html#modals">Modals</a>
</li>
<li class="menu-item">
<a href="components.html#navs">Navs</a>
</li>
<li class="menu-item">
<a href="components.html#pagination">Pagination</a>
</li>
<li class="menu-item">
<a href="components.html#panels">Panels</a>
</li>
<li class="menu-item">
<a href="components.html#popovers">Popovers</a>
</li>
<li class="menu-item">
<a href="components.html#steps">Steps</a>
</li>
<li class="menu-item">
<a href="components.html#tabs">Tabs</a>
</li>
<li class="menu-item">
<a href="components.html#tiles">Tiles</a>
</li>
<li class="menu-item">
<a href="components.html#toasts">Toasts</a>
</li>
<li class="menu-item">
<a href="components.html#tooltips">Tooltips</a>
</li>
</ul>
</div>
</div>
<div class="accordion">
<input type="checkbox" id="docs-accordion-5" name="docs-accordion-checkbox" hidden checked>
<label class="accordion-header c-hand" for="docs-accordion-5">
Utilities
</label>
<div class="accordion-body">
<ul class="menu menu-nav">
<li class="menu-item">
<a href="utilities.html">Colors</a>
</li>
<li class="menu-item">
<a href="utilities.html#cursors">Cursors</a>
</li>
<li class="menu-item">
<a href="utilities.html#display">Display</a>
</li>
<li class="menu-item">
<a href="utilities.html#divider">Divider</a>
</li>
<li class="menu-item">
<a href="utilities.html#loading">Loading</a>
</li>
<li class="menu-item">
<a href="utilities.html#position">Position</a>
</li>
<li class="menu-item">
<a href="utilities.html#shapes">Shapes</a>
</li>
<li class="menu-item">
<a href="utilities.html#text">Text</a>
</li>
</ul>
</div>
</div>
<div class="accordion">
<input type="checkbox" id="docs-accordion-6" name="docs-accordion-checkbox" hidden>
<label class="accordion-header c-hand" for="docs-accordion-6">
Experimentals
</label>
<div class="accordion-body">
<ul class="menu menu-nav">
<li class="menu-item">
<a href="experimentals.html">Calendars</a>
</li>
<li class="menu-item">
<a href="experimentals.html#carousels">Carousels</a>
</li>
<li class="menu-item">
<a href="experimentals.html#comparison">Comparison sliders</a>
</li>
<li class="menu-item">
<a href="experimentals.html#filters">Filters</a>
</li>
<li class="menu-item">
<a href="experimentals.html#meters">Meters</a>
</li>
<li class="menu-item">
<a href="experimentals.html#off-canvas">Off-canvas</a>
</li>
<li class="menu-item">
<a href="experimentals.html#parallax">Parallax</a>
</li>
<li class="menu-item">
<a href="experimentals.html#progress">Progress</a>
</li>
<li class="menu-item">
<a href="experimentals.html#sliders">Sliders</a>
</li>
<li class="menu-item">
<a href="experimentals.html#timelines">Timelines</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<a class="off-canvas-overlay" href="#close"></a>
<div id="content" class="docs-content off-canvas-content">
<div id="utilities" class="container">
<h3 class="s-title"><a href="#utilities" class="anchor" aria-hidden="true">#</a>Utilities</h3>
</div>
<div class="container">
<div class="docs-ad">
<div class="hide-md">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- GitHub-lg -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-2225124559530218"
data-ad-slot="9894180784"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="show-md">
<!-- GitHub-sm -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-2225124559530218"
data-ad-slot="9278881734"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
<div id="colors" class="container">
<h3 class="s-title"><a href="#colors" class="anchor" aria-hidden="true">#</a>Color utilities</h3>
<div class="docs-note">
<p>Color utilities are used for changing colors for text, link and background.</p>
</div>
<h4 id="colors-text" class="s-subtitle">Text colors</h4>
<div class="docs-note">
<p><span class="text-primary">primary color</span></p>
<p><span class="text-secondary">secondary color</span></p>
<p><span class="text-gray">gray color</span></p>
<p><span class="text-light bg-dark p-1 rounded">light color</span></p>
<p><span class="text-success">success color</span></p>
<p><span class="text-warning">warning color</span></p>
<p><span class="text-error">error color</span></p>
</div>
<!-- colors -->
<pre class="code" data-lang="HTML"><code><<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"text-primary"</span>>primary color<<span class="tag">/span</span>>
<<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"text-secondary"</span>>secondary color<<span class="tag">/span</span>>
<<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"text-gray"</span>>gray color<<span class="tag">/span</span>>
<<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"text-light"</span>>light color<<span class="tag">/span</span>>
<<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"text-success"</span>>success color<<span class="tag">/span</span>>
<<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"text-warning"</span>>warning color<<span class="tag">/span</span>>
<<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"text-error"</span>>error color<<span class="tag">/span</span>>
</code></pre>
<div class="docs-note">
<p><a class="text-primary p-1" href="#colors">primary link</a></p>
<p><a class="text-secondary p-1" href="#colors">secondary link</a></p>
<p><a class="text-gray p-1" href="#colors">gray link</a></p>
<p><a class="text-light bg-dark p-1 rounded" href="#colors">light link</a></p>
<p><a class="text-success p-1" href="#colors">success link</a></p>
<p><a class="text-warning p-1" href="#colors">warning link</a></p>
<p><a class="text-error p-1" href="#colors">error link</a></p>
</div>
<!-- colors -->
<pre class="code" data-lang="HTML"><code><<span class="tag">a</span> <span class="atn">class</span>=<span class="atv">"text-primary"</span> <span class="atn">href</span>=<span class="atv">"#"</span>>primary color<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">class</span>=<span class="atv">"text-secondary"</span> <span class="atn">href</span>=<span class="atv">"#"</span>>secondary color<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">class</span>=<span class="atv">"text-gray"</span> <span class="atn">href</span>=<span class="atv">"#"</span>>gray color<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">class</span>=<span class="atv">"text-light"</span> <span class="atn">href</span>=<span class="atv">"#"</span>>light color<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">class</span>=<span class="atv">"text-success"</span> <span class="atn">href</span>=<span class="atv">"#"</span>>success color<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">class</span>=<span class="atv">"text-warning"</span> <span class="atn">href</span>=<span class="atv">"#"</span>>warning color<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">class</span>=<span class="atv">"text-error"</span> <span class="atn">href</span>=<span class="atv">"#"</span>>error color<<span class="tag">/a</span>>
</code></pre>
<h4 id="colors-background" class="s-subtitle">Background colors</h4>
<div class="docs-note">
<p><span class="bg-primary p-1 rounded">primary bg</span></p>
<p><span class="bg-secondary text-primary p-1 rounded">secondary bg</span></p>
<p><span class="bg-dark p-1 rounded">dark bg</span></p>
<p><span class="bg-gray p-1 rounded">gray bg</span></p>
<p><span class="bg-success p-1 rounded">success bg</span></p>
<p><span class="bg-warning p-1 rounded">warning bg</span></p>
<p><span class="bg-error p-1 rounded">error bg</span></p>
</div>
<!-- colors -->
<pre class="code" data-lang="HTML"><code><<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"bg-primary"</span>>primary bg<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"bg-secondary"</span>>secondary bg<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"bg-dark"</span>>dark bg<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"bg-gray"</span>>gray bg<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"bg-success"</span>>success bg<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"bg-warning"</span>>warning bg<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"bg-error"</span>>error bg<<span class="tag">/div</span>>
</code></pre>
</div>
<div class="container">
<div class="docs-ad docs-ad-sidebar">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- github-vertical-sm -->
<ins class="adsbygoogle"
style="display:inline-block;width:120px;height:240px"
data-ad-client="ca-pub-2225124559530218"
data-ad-slot="5087273059"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
<div id="cursors" class="container">
<h3 class="s-title"><a href="#cursors" class="anchor" aria-hidden="true">#</a>Cursor utilities</h3>
<div class="docs-note">
<p>Cursor utilities specify which mouse cursor to display when mouseover.</p>
</div>
<div class="columns">
<div class="column">
<div class="bg-gray docs-block c-hand">c-hand</div>
</div>
<div class="column">
<div class="bg-gray docs-block c-move">c-move</div>
</div>
<div class="column">
<div class="bg-gray docs-block c-zoom-in">c-zoom-in</div>
</div>
<div class="column">
<div class="bg-gray docs-block c-zoom-out">c-zoom-out</div>
</div>
<div class="column">
<div class="bg-gray docs-block c-not-allowed">c-not-allowed</div>
</div>
<div class="column">
<div class="bg-gray docs-block c-auto">c-auto</div>
</div>
</div>
<!-- display utilities -->
<pre class="code" data-lang="HTML"><code><span class="com"><!-- cursor: hand; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"c-hand"</span>><<span class="tag">/div</span>>
<span class="com"><!-- cursor: move; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"c-move"</span>><<span class="tag">/div</span>>
<span class="com"><!-- cursor: zoom-in; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"c-zoom-in"</span>><<span class="tag">/div</span>>
<span class="com"><!-- cursor: zoom-out; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"c-zoom-out"</span>><<span class="tag">/div</span>>
<span class="com"><!-- cursor: not-allowed; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"c-not-allowed"</span>><<span class="tag">/div</span>>
<span class="com"><!-- cursor: auto; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"c-auto"</span>><<span class="tag">/div</span>>
</code></pre>
</div>
<div id="display" class="container">
<h3 class="s-title"><a href="#display" class="anchor" aria-hidden="true">#</a>Display utilities</h3>
<div class="docs-note">
<p>Display utilities are used for display and hidden things.</p>
</div>
<!-- display utilities -->
<pre class="code" data-lang="HTML"><code><span class="com"><!-- display: block; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-block"</span>><<span class="tag">/div</span>>
<span class="com"><!-- display: inline; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-inline"</span>><<span class="tag">/div</span>>
<span class="com"><!-- display: inline-block; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-inline-block"</span>><<span class="tag">/div</span>>
<span class="com"><!-- display: flex; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-flex"</span>><<span class="tag">/div</span>>
<span class="com"><!-- display: inline-flex; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-inline-flex"</span>><<span class="tag">/div</span>>
<span class="com"><!-- display: none; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-none"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-hide"</span>><<span class="tag">/div</span>>
<span class="com"><!-- visibility: visible; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-visible"</span>><<span class="tag">/div</span>>
<span class="com"><!-- visibility: hidden; --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"d-invisible"</span>><<span class="tag">/div</span>>
<span class="com"><!-- hide text contents --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-hide"</span>><<span class="tag">/div</span>>
<span class="com"><!-- assistive text for screen reader --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-assistive"</span>><<span class="tag">/div</span>>
</code></pre>
</div>
<div id="divider" class="container">
<h3 class="s-title"><a href="#divider" class="anchor" aria-hidden="true">#</a>Divider</h3>
<div class="docs-note">
<p>A Divider is used for separating elements.</p>
</div>
<div class="columns">
<div class="column">
<div class="divider"></div>
</div>
</div>
<div class="columns">
<div class="column">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus.
<div class="divider text-center" data-content="OR"></div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus.
</div>
</div>
<div class="columns">
<div class="column">
<form>
<div class="form-group">
<label class="form-label" for="input-example-1">Email</label>
<input class="form-input" type="text" id="input-example-1" placeholder="Email">
</div>
<div class="form-group">
<label class="form-label" for="input-example-2">Password</label>
<input class="form-input" type="password" id="input-example-2" placeholder="Password">
</div>
<div class="form-group">
<label class="form-checkbox">
<input type="checkbox">
<i class="form-icon"></i> Remember me
</label>
</div>
<div class="form-group">
<button class="btn btn-primary">Sign in</button>
</div>
</form>
</div>
<div class="divider-vert" data-content="OR"></div>
<div class="column">
<form>
<div class="form-group">
<label class="form-label" for="input-example-3">Email</label>
<input class="form-input" type="text" id="input-example-3" placeholder="Email">
</div>
<div class="form-group">
<button class="btn btn-primary btn-block">Sign up</button>
<button class="btn btn-link btn-block">Learn more</button>
</div>
</form>
</div>
</div>
<!-- divider utilities -->
<pre class="code" data-lang="HTML"><code><span class="com"><!-- divider element --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"divider"</span>><<span class="tag">/div</span>>
<span class="com"><!-- divider element with text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"divider text-center"</span> <span class="atn">data-content</span>=<span class="atv">"OR"</span>><<span class="tag">/div</span>>
<span class="com"><!-- vertical divider element with text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"columns"</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column"</span>>
<span class="com"><!-- column content --></span>
<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"divider-vert"</span> <span class="atn">data-content</span>=<span class="atv">"OR"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column"</span>>
<span class="com"><!-- column content --></span>
<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
</code></pre>
</div>
<div id="loading" class="container">
<h3 class="s-title"><a href="#loading" class="anchor" aria-hidden="true">#</a>Loading</h3>
<div class="docs-note">
<p>Loading indicator is used for loading or updating. Also, you can add the <code>loading</code> class to buttons for loading status.</p>
</div>
<div class="columns">
<div class="column col-12 text-center">
<div class="loading"></div>
</div>
</div>
<div class="docs-note">
<p>Add the <code>loading-lg</code> class for large size. </p>
</div>
<div class="columns">
<div class="column col-12 text-center">
<div class="loading loading-lg"></div>
</div>
</div>
<!-- loading -->
<pre class="code" data-lang="HTML"><code><span class="com"><!-- loading element --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"loading"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"loading loading-lg"</span>><<span class="tag">/div</span>>
</code></pre>
</div>
<div id="position" class="container">
<h3 class="s-title"><a href="#position" class="anchor" aria-hidden="true">#</a>Position utilities</h3>
<div class="docs-note">
<p>Position utilities are used for useful layout and position things, including clearfix, float, position and margin/padding utilities.</p>
</div>
<!-- position utilities -->
<pre class="code" data-lang="HTML"><code><span class="com"><!-- clear float --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"clearfix"</span>><<span class="tag">/div</span>>
<span class="com"><!-- float: left and right --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"float-left"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"float-right"</span>><<span class="tag">/div</span>>
<span class="com"><!-- position: relative, absolute and fixed --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"relative"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"absolute"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"fixed"</span>><<span class="tag">/div</span>>
<span class="com"><!-- centered block --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"centered"</span>><<span class="tag">/div</span>>
<span class="com"><!-- m-1 {margin: 4px;} m-2 {margin: 8px;} --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"m-1"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"m-2"</span>><<span class="tag">/div</span>>
<span class="com"><!-- margin in 4 directions. mt-1 {margin-top: 4px;} mt-2 {margin-top: 8px;} --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"mt-1"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"mt-2"</span>><<span class="tag">/div</span>>
<span class="com"><!-- mx-1 {margin-left: 4px; margin-right: 4px;} --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"mx-1"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"mx-2"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"my-1"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"my-2"</span>><<span class="tag">/div</span>>
<span class="com"><!-- p-1 {padding: 4px;} p-2 {padding: 8px;} --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"p-1"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"p-2"</span>><<span class="tag">/div</span>>
<span class="com"><!-- padding in 4 directions. pt-1 {padding-top: 4px;} pt-2 {padding-top: 8px;} --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"pt-1"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"pt-2"</span>><<span class="tag">/div</span>>
<span class="com"><!-- px-1 {padding-left: 4px; padding-right: 4px;} --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"px-1"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"px-2"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"py-1"</span>><<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"py-2"</span>><<span class="tag">/div</span>>
</code></pre>
</div>
<div id="shapes" class="container">
<h3 class="s-title"><a href="#shapes" class="anchor" aria-hidden="true">#</a>Shape utilities</h3>
<div class="docs-note">
<p>Shape utilities are used for change element shapes.</p>
</div>
<div class="columns">
<div class="column col-6 text-center">
<div class="bg-primary text-light docs-shape rounded centered">
rounded
</div>
</div>
<div class="column col-6 text-center">
<div class="bg-primary text-light docs-shape circle centered">
circle
</div>
</div>
</div>
<!-- shape utilities -->
<pre class="code" data-lang="HTML"><code><span class="com"><!-- rounded element --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"rounded"</span>><<span class="tag">/div</span>>
<span class="com"><!-- circle element --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"circle"</span>><<span class="tag">/div</span>>
</code></pre>
</div>
<div id="text" class="container">
<h3 class="s-title"><a href="#text" class="anchor" aria-hidden="true">#</a>Text utilities</h3>
<div class="docs-note">
<p>Text utilities are used for text alignment, styles and overflow things.</p>
</div>
<!-- text utilities -->
<pre class="code" data-lang="HTML"><code><span class="com"><!-- left-aligned text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-left"</span>><<span class="tag">/div</span>>
<span class="com"><!-- center-aligned text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-center"</span>><<span class="tag">/div</span>>
<span class="com"><!-- right-aligned text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-right"</span>><<span class="tag">/div</span>>
<span class="com"><!-- justified text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-justify"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Lowercased text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-lowercase"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Uppercased text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-uppercase"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Capitalized text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-capitalize"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Normal weight text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-normal"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Bold text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-bold"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Italicized text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-italic"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Larger text (120%) --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-large"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Overflow behavior: display an ellipsis to represent clipped text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-ellipsis"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Overflow behavior: truncate the text --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-clip"</span>><<span class="tag">/div</span>>
<span class="com"><!-- Text may be broken at arbitrary points --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"text-break"</span>><<span class="tag">/div</span>>
</code></pre>
</div>
<footer class="docs-footer">
<p><a href="https://github.com/picturepan2/spectre" target="_blank">GitHub</a> | <a href="https://twitter.com/spectrecss" target="_blank">Twitter</a> | <a href="https://www.paypal.me/picturepan2" target="_blank">PayPal Donate</a> | Version <span class="version"></span></p>
<p>Designed and built with <span class="text-error">♥</span> by <a href="https://twitter.com/picturepan2" target="_blank">Yan Zhu</a>. Licensed under the <a href="https://github.com/picturepan2/spectre/blob/master/LICENSE" target="_blank">MIT License</a>.</p>
</footer>
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-2702768-8', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>
|