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
|
<!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>Layout - Spectre.css CSS Framework</title>
<link rel="stylesheet" href="dist/spectre.css" />
<link rel="stylesheet" href="dist/spectre-icons.css" />
<link rel="stylesheet" href="css/docs.css" />
</head>
<body>
<div class="s-container container">
<div class="columns">
<div class="s-brand">
<a href="index.html" class="s-logo tooltip tooltip-bottom" data-tooltip="Spectre.css CSS Framework">
<img src="img/spectre-logo.svg" alt="Spectre.css CSS Framework" />
<h2>Spectre.css</h2>
</a>
<div class="menu-btn">
<a href="#sidebar" class="btn btn-link btn-action"><i class="icon icon-menu"></i></a>
</div>
<div class="float-btn">
<a href="https://github.com/picturepan2/spectre" target="_blank" class="btn btn-primary">GitHub</a>
</div>
</div>
<div id="sidebar" class="s-sidebar">
<div class="s-nav">
<div class="accordion">
<div class="accordion-item">
<input type="checkbox" id="docs-accordion-1" name="docs-accordion-checkbox" hidden />
<label class="accordion-header 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">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#compiling">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-item">
<input type="checkbox" id="docs-accordion-2" name="docs-accordion-checkbox" hidden />
<label class="accordion-header 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">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-item">
<input type="checkbox" id="docs-accordion-3" name="docs-accordion-checkbox" hidden checked />
<label class="accordion-header hand" for="docs-accordion-3">
Layout
</label>
<div class="accordion-body">
<ul class="menu menu-nav">
<li class="menu-item">
<a href="layout.html#grid">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-item">
<input type="checkbox" id="docs-accordion-4" name="docs-accordion-checkbox" hidden />
<label class="accordion-header 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">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-item">
<input type="checkbox" id="docs-accordion-5" name="docs-accordion-checkbox" hidden />
<label class="accordion-header 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">Colors</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-item">
<input type="checkbox" id="docs-accordion-6" name="docs-accordion-checkbox" hidden />
<label class="accordion-header 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">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#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 href="#sidebar-close" id="sidebar-close" class="docs-nav-clear"></a>
<div id="content" class="s-content">
<div class="container">
<h3 id="grid" class="s-title"><a href="#grid" class="anchor" aria-hidden="true">#</a>Flexbox grid</h3>
<div class="docs-note">
<p>Layout includes flexbox based responsive grid system with 12 columns. </p>
</div>
<div class="columns">
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
<div class="column">
<div class="bg-primary text-secondary docs-block"></div>
</div>
</div>
<div class="columns">
<div class="column col-12">
<div class="bg-gray docs-block">col-12 (100%)</div>
</div>
</div>
<div class="columns">
<div class="column col-9">
<div class="bg-gray docs-block">col-9 (75%)</div>
</div>
</div>
<div class="columns">
<div class="column col-6">
<div class="bg-gray docs-block">col-6 (50%)</div>
</div>
</div>
<div class="columns">
<div class="column col-3">
<div class="bg-gray docs-block">col-3 (25%)</div>
</div>
</div>
<div class="docs-note">
<p>Add the <code>columns</code> class to a container with the <code>container</code> class. And add any element you want with the <code>column</code> class inside the container. These columns will take up the space equally. You can specific the width of each column by adding class <code>col-[1-12]</code>.</p>
<p>And you can add the <code>col-gapless</code> class to have gapless columns.</p>
</div>
<div class="columns col-gapless">
<div class="column col-6">
<div class="bg-gray docs-block">col-6 (gapless)</div>
</div>
<div class="column col-6">
<div class="bg-gray docs-block">col-6 (gapless)</div>
</div>
</div>
<div class="docs-note">
<p>By default, Spectre grid has multi-line flexbox enabled. You can add the <code>col-oneline</code> class to <code>columns</code> to make all its child columns positioned in the same single row.</p>
</div>
<div class="columns col-oneline">
<div class="column col-8">
<div class="bg-gray docs-block">col-8</div>
</div>
<div class="column col-8">
<div class="bg-gray docs-block">col-8</div>
</div>
</div>
<!-- layout example -->
<pre class="code" data-lang="HTML"><code><<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"container"</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 col-6"</span>>col-6<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-3"</span>>col-3<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-2"</span>>col-2<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-1"</span>>col-1<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"columns col-gapless"</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-6"</span>>col-6<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-6"</span>>col-6<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
</code></pre>
</div>
<div class="container">
<h3 id="responsive" class="s-title"><a href="#responsive" class="anchor" aria-hidden="true">#</a>Responsive grid</h3>
<div class="docs-note">
<p>Spectre provides a neat responsive layout grid system and responsive visibility utilities. </p>
</div>
<div class="columns">
<div class="column col-lg-6">
<div class="bg-gray docs-block">col-lg-6</div>
</div>
</div>
<div class="columns">
<div class="column col-md-6">
<div class="bg-gray docs-block">col-md-6</div>
</div>
</div>
<div class="columns">
<div class="column col-sm-6">
<div class="bg-gray docs-block">col-sm-6</div>
</div>
</div>
<div class="columns">
<div class="column col-xs-6">
<div class="bg-gray docs-block">col-xs-6</div>
</div>
</div>
<div class="docs-note">
<p>There are <code>col-xs-[1-12]</code>, <code>col-sm-[1-12]</code>, <code>col-md-[1-12]</code>, <code>col-lg-[1-12]</code> and <code>col-xl-[1-12]</code> available for flexible grid across mobile, tablet and desktop viewport usage.</p>
<ul>
<li><code>col-xs-[1-12]</code> apply to window width smaller than or equal to <strong>480px</strong>. </li>
<li><code>col-sm-[1-12]</code> apply to window width smaller than or equal to <strong>600px</strong>. </li>
<li><code>col-md-[1-12]</code> apply to window width smaller than or equal to <strong>840px</strong>. </li>
<li><code>col-lg-[1-12]</code> apply to window width smaller than or equal to <strong>960px</strong>. </li>
<li><code>col-xl-[1-12]</code> apply to window width smaller than or equal to <strong>1280px</strong>. </li>
</ul>
</div>
<!-- layout example -->
<pre class="code" data-lang="HTML"><code><<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"container"</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 col-xs-6"</span>>col-xs-6<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-xs-3"</span>>col-xs-3<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-xs-3"</span>>col-xs-3<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
</code></pre>
<h4 id="responsive-container" class="s-subtitle">Responsive container</h4>
<div class="docs-note">
<p>The responsive layout also provides fixed-width containers. Use <code>grid-xs</code>(480px), <code>grid-sm</code> (600px), <code>grid-md</code> (840px), <code>grid-lg</code> (960px) or <code>grid-xl</code> (1280px) to <code>container</code> for a fixed-width container with the specific max-width.</p>
</div>
<!-- layout example -->
<pre class="code" data-lang="HTML"><code><span class="com"><!-- 100% width container with max-width set to grid-lg (960px) --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"container grid-lg"</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"columns"</span>>
...
<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
</code></pre>
<h4 id="responsive-visibility" class="s-subtitle">Responsive visibility</h4>
<div class="docs-note">
<p>The responsive visibility utilities help show and hide elements on specific viewport sizes. </p>
</div>
<table class="docs-table table text-center">
<thead>
<tr>
<th></th>
<th>size-xs</th>
<th>size-sm</th>
<th>size-md</th>
<th>size-lg</th>
<th>size-xl</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-left">hide-xs</td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
</tr>
<tr>
<td class="text-left">hide-sm</td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
</tr>
<tr>
<td class="text-left">hide-md</td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
</tr>
<tr>
<td class="text-left">hide-lg</td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
</tr>
<tr>
<td class="text-left">hide-xl</td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
</tr>
</tbody>
</table>
<div class="docs-note">
<p>For hiding elements on specific viewport sizes, there are classes <code>hide-xs</code>, <code>hide-sm</code>, <code>hide-md</code>, <code>hide-lg</code> and <code>hide-xl</code> available.</p>
<ul>
<li><code>hide-xs</code> hides elements when the window width is smaller than or equal to <strong>480px</strong>. </li>
<li><code>hide-sm</code> hides elements when the window width is smaller than or equal to <strong>600px</strong>. </li>
<li><code>hide-md</code> hides elements when the window width is smaller than or equal to <strong>840px</strong>. </li>
<li><code>hide-lg</code> hides elements when the window width is smaller than or equal to <strong>960px</strong>. </li>
<li><code>hide-xl</code> hides elements when the window width is smaller than or equal to <strong>1280px</strong>. </li>
</ul>
</div>
<table class="docs-table table text-center">
<thead>
<tr>
<th></th>
<th>size-xs</th>
<th>size-sm</th>
<th>size-md</th>
<th>size-lg</th>
<th>size-xl</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-left">show-xs</td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
</tr>
<tr>
<td class="text-left">show-sm</td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
</tr>
<tr>
<td class="text-left">show-md</td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
</tr>
<tr>
<td class="text-left">show-lg</td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-secondary docs-dot"></div></td>
</tr>
<tr>
<td class="text-left">show-xl</td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
<td><div class="bg-primary docs-dot"></div></td>
</tr>
</tbody>
</table>
<div class="docs-note">
<p>For showing elements on specific viewport sizes, there are classes <code>show-xs</code>, <code>show-sm</code>, <code>show-md</code>, <code>show-lg</code> and <code>show-xl</code> available.</p>
<ul>
<li><code>show-xs</code> shows elements when the window width is smaller than or equal to <strong>480px</strong>. </li>
<li><code>show-sm</code> shows elements when the window width is smaller than or equal to <strong>600px</strong>. </li>
<li><code>show-md</code> shows elements when the window width is smaller than or equal to <strong>840px</strong>. </li>
<li><code>show-lg</code> shows elements when the window width is smaller than or equal to <strong>960px</strong>. </li>
<li><code>show-xl</code> shows elements when the window width is smaller than or equal to <strong>1280px</strong>. </li>
</ul>
<p>Spectre also has a responsive web test tool Responsive Resizer. You can clone the <a href="https://github.com/picturepan2/responsive-resizer" target="_blank">GitHub Repo</a> to use it locally or use it online.</p>
<p><a href="https://picturepan2.github.io/responsive-resizer/" class="btn btn-primary" target="_blank">Responsive Resizer</a></p>
</div>
</div>
<div class="container">
<h3 id="navbar" class="s-title"><a href="#navbar" class="anchor" aria-hidden="true">#</a>Navbar</h3>
<div class="docs-note">
<p>Navbar is a layout container that appears in the header of apps and websites. </p>
</div>
<div class="columns">
<div class="column">
<div class="navbar">
<div class="navbar-section">
<a href="#navbar" class="navbar-brand mr-10">Spectre.css</a>
<a href="#navbar" class="btn btn-link">Docs</a>
<a href="https://github.com/picturepan2/spectre" class="btn btn-link">GitHub</a>
</div>
<div class="navbar-section">
<div class="input-group input-inline">
<input class="form-input" type="text" placeholder="search" />
<button class="btn btn-primary input-group-btn">Search</button>
</div>
</div>
</div>
</div>
</div>
<div class="docs-note">
<p>The navbar component can include logo brand, nav links and buttons, search box or any combination of those elements. Each section with the <code>navbar-section</code> class will be evenly distributed in the container.</p>
</div>
<!-- navbar example -->
<pre class="code" data-lang="HTML"><code><<span class="tag">header</span> <span class="atn">class</span>=<span class="atv">"navbar"</span>>
<<span class="tag">section</span> <span class="atn">class</span>=<span class="atv">"navbar-section"</span>>
<<span class="tag">a</span> <span class="atn">href</span>=<span class="atv">"#"</span> <span class="atn">class</span>=<span class="atv">"navbar-brand mr-10"</span>>Spectre.css<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">href</span>=<span class="atv">"#"</span> <span class="atn">class</span>=<span class="atv">"btn btn-link"</span>>Docs<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">href</span>=<span class="atv">"https://github.com/picturepan2/spectre"</span> <span class="atn">class</span>=<span class="atv">"btn btn-link"</span>>GitHub<<span class="tag">/a</span>>
<<span class="tag">/section</span>>
<<span class="tag">section</span> <span class="atn">class</span>=<span class="atv">"navbar-section"</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"input-group input-inline"</span>>
<<span class="tag">input</span> <span class="atn">class</span>=<span class="atv">"form-input"</span> <span class="atn">type</span>=<span class="atv">"text"</span> <span class="atn">placeholder</span>=<span class="atv">"search"</span> />
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-primary input-group-btn"</span>>Search<<span class="tag">/button</span>>
<<span class="tag">/div</span>>
<<span class="tag">/section</span>>
<<span class="tag">/header</span>>
</code></pre>
<div class="docs-note">
<p>You can use <code>navbar-center</code> class to have a centered section.</p>
</div>
<div class="columns">
<div class="column col-12">
<div class="navbar">
<div class="navbar-section">
<a href="#navbar" class="btn btn-link">Docs</a>
<a href="#navbar" class="btn btn-link">Examples</a>
</div>
<div class="navbar-center">
<img src="img/spectre-logo.svg" alt="Spectre.css" />
</div>
<div class="navbar-section">
<a href="https://twitter.com/spectrecss" class="btn btn-link">Twitter</a>
<a href="https://github.com/picturepan2/spectre" class="btn btn-link">GitHub</a>
</div>
</div>
</div>
</div>
<!-- navbar example -->
<pre class="code" data-lang="HTML"><code><<span class="tag">header</span> <span class="atn">class</span>=<span class="atv">"navbar"</span>>
<<span class="tag">section</span> <span class="atn">class</span>=<span class="atv">"navbar-section"</span>>
<<span class="tag">a</span> <span class="atn">href</span>=<span class="atv">"#"</span> <span class="atn">class</span>=<span class="atv">"btn btn-link"</span>>Docs<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">href</span>=<span class="atv">"#"</span> <span class="atn">class</span>=<span class="atv">"btn btn-link"</span>>Examples<<span class="tag">/a</span>>
<<span class="tag">/section</span>>
<<span class="tag">section</span> <span class="atn">class</span>=<span class="atv">"navbar-center"</span>>
<span class="com"><!-- centered logo or brand --></span>
<<span class="tag">/section</span>>
<<span class="tag">section</span> <span class="atn">class</span>=<span class="atv">"navbar-section"</span>>
<<span class="tag">a</span> <span class="atn">href</span>=<span class="atv">"#"</span> <span class="atn">class</span>=<span class="atv">"btn btn-link"</span>>Twitter<<span class="tag">/a</span>>
<<span class="tag">a</span> <span class="atn">href</span>=<span class="atv">"#"</span> <span class="atn">class</span>=<span class="atv">"btn btn-link"</span>>GitHub<<span class="tag">/a</span>>
<<span class="tag">/section</span>>
<<span class="tag">/header</span>>
</code></pre>
</div>
<footer class="s-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 ♥ 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>
</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>
|