-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
833 lines (809 loc) · 31.6 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
<!DOCTYPE html>
<html>
<head>
<title>Aluminum CSS</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<link rel="icon" type="image/jpeg" href="/icon.jpg" />
<link rel="stylesheet" type="text/css" href="dist/aluminium.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/styles/github.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
</head>
<body class="alu-all">
<div class="container">
<h1>
<div class="row align-items gap-md">
<img src="/icon.jpg" alt="Aluminum CSS" class="mr-lg" style="width: 100%; max-width: 64px;" />
<div>
Aluminum CSS
</div>
</div>
</h1>
<p>
Aluminum CSS is a minimal CSS boilerplate make your page shine.
</p>
<div class="row gap-sm">
<a href="https://github.com/pr0gramista/aluminiumcss">GitHub</a>
<span>|</span>
<a href="https://aluminiumcss.pr0gramista.com/cute">Cute demo</a>
<span>|</span>
<a href="https://www.npmjs.com/package/aluminiumcss">npm</a>
</div>
<h3 id="installation">Installation</h3>
<p>Aluminium CSS works best as a single link tag in the `<head>` of your HTML document:</p>
<pre><code class="language-html"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aluminiumcss/dist/aluminium.min.css"></pre></code>
<p>
You can also install Aluminium CSS via NPM:
</p>
<pre><code class="language-bash">npm install aluminiumcss</code></pre>
<p>
And then import it in your JS file, assuming you are using a bundler:
</p>
<pre><code class="language-javascript">// In your JS file with a bundler
require('aluminiumcss/dist/aluminium.min.css')</code></pre>
</code></pre>
<p>
To apply styles <code>.alu-all</code> to your body class or apply <code>.alu</code> to particular elements.
</p>
<h3 id="customization">Customization</h3>
<p>
Aluminum CSS is easily customizable via a <a href="https://github.com/pr0gramista/aluminiumcss/blob/main/style.css">selection of CSS variables</a>. Check <a href="/cute">the cutest demo</a> to see how far you can get with it.
</p>
<pre><code class="language-html"><style>
:root {
--alu-font-primary: "Nunito Sans", Arial, Helvetica, sans-serif;
--alu-font-heading: "Playwrite DK Loopet", cursive;
--alu-border-width: 2px;
--alu-border-color: #ffc8c7;
--alu-border-radius: 6px;
}
</style>
</code></pre>
<h3 id="spacing">Spacing - margins, paddings, gaps</h3>
<p>
Aluminum CSS uses a consistent spacing system that ensures good readability and visual balance.
There are four sizes: <code>sm, md, lg, xl</code>. To apply margins, paddings, gaps you can use Tailwind CSS like classes like <code>pt-sm</code> or <code>gap-md</code>.
There are also classes for positioning elements like <code>top-sm</code> or <code>right-xl</code>.
</p>
<div class="relative">
<div class="row gap-sm mb-sm">
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<div class="row gap-md mb-md">
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<div class="row gap-lg mb-lg">
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<div class="row gap-xl mb-xl">
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<div class="absolute top-xl right-xl debug">From top</div>
<div class="absolute bottom-sm right-sm debug">From bottom</div>
<div class="mx-lg my-sm debug">
Large margin from left and right Small from top and bottom
</div>
</div>
<pre><code class="language-html my-md"><div class="relative">
<div class="row gap-sm mb-sm">
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<div class="row gap-md mb-md">
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<div class="row gap-lg mb-lg">
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<div class="row gap-xl mb-xl">
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<div class="absolute top-xl right-xl debug">From top</div>
<div class="absolute bottom-sm right-sm debug">From bottom</div>
<div class="mx-lg my-sm debug">
Large margin from left and right Small from top and bottom
</div>
</div>
</code></pre>
<h3 id="selective">Selective styling</h3>
<p>
Aluminium CSS is designed to be easily used with other CSS styles. You can apply it globally by putting the <code>.alu-all</code> class on the <code>body</code> element, or you can use it selectively by adding <code>.alu</code> class to specific elements.
</p>
<p>
If you are using <code>.alu-all</code> but you want to remove styling from certain elements you can apply <code>.not-alu</code> to particular elements or <code>.not-alu-all</code> to their parent.
</p>
<div class="column gap-md">
<!-- .alu-all is applied to the body -->
<div>
<button>Styled via parent</button>
</div>
<div>
<button class="alu">Styled directly</button>
</div>
<div class="not-alu-all">
<button>Unstyled via parent</button>
</div>
<div>
<button class="not-alu">Unstyled directly</button>
</div>
<!-- Debug styles should not be applied as not-alu is added -->
<div class="debug not-alu">
<button>
Still styled because <code>.not-alu</code> does not cancel
<code>.alu-all</code>
</button>
</div>
</div>
<pre><code class="language-html my-md"><!-- .alu-all is applied to the body -->
<div>
<button>Styled via parent</button>
</div>
<div>
<button class="alu">Styled directly</button>
</div>
<div class="not-alu-all">
<button>Unstyled via parent</button>
</div>
<div>
<button class="not-alu">Unstyled directly</button>
</div>
<!-- Debug styles should not be applied as not-alu is added -->
<div class="debug not-alu">
<button>
Still styled because <code>.not-alu</code> does not cancel
<code>.alu-all</code>
</button>
</div>
</code></pre>
<h3 id="link">Link</h3>
<p>
There are 3 links types. By default the links are visible without interaction.
To make your link more subtle you can use <code>.interactive</code> class.
Hidden links can be marked using <code>.non-interactive</code> class.
</p>
<a href="#link">Link</a>
<a href="#link" class="interactive">Link interactive</a>
<a href="#link" class="non-interactive">Link non-interactive</a>
<pre><code class="language-html my-md"><a href="#link">Link</a>
<a class="interactive" href="#link">Link interactive</a>
<a class="non-interactive" href="#link">Link interactive</a></code></pre>
<h3 id="abbr">Abbreviation</h3>
<p>
Abbreviation can be used to show an acronym or abbreviation. Hover over the abbreviation to see the full text.
</p>
<p>
<abbr title="HyperText Markup Language">HTML</abbr> is the code that is used to structure a web page and its content.
</p>
<pre><code class="language-html my-md"><abbr title="HyperText Markup Language">HTML</abbr> is the code that is used to structure a web page and its content.</code></pre>
<h3 id="blockquote">Blockquote</h3>
<blockquote>
<p class="mb-md">It’s not faith in technology. It’s faith in people.</p>
~ Steve Jobs
</blockquote>
<pre><code class="language-html my-md"><blockquote>
<p class="mb-md">It’s not faith in technology. It’s faith in people.</p>
~ Steve Jobs
</blockquote>
</code></pre>
<h3 id="progress">Progress</h3>
<p>
While the <code>progress</code> element has ability to show indeterminate progress, it is not supported by Aluminium CSS. To show indeterminate progress you can use the <a href="#spinner">spinner</a> element instead.
</p>
<progress value="75" max="100"></progress>
<pre><code class="language-html my-md"><progress value="75" max="100"></progress>
</code></pre>
<h3 id="spinner">Spinner</h3>
<div class="spinner"></div>
<pre><code class="language-html my-md"><div class="spinner"></div>
</code></pre>
<h3 id="debug">
Debug
</h3>
<p>
Debug is a div element with minimum size and a bit of color. Useful for debugging.
</p>
<div class="debug">Debug</div>
<pre><code class="language-html my-md"><div class="debug">Debug</div></code></pre>
<h3 id="table">Table</h3>
<table>
<tr>
<th>Country</th>
<th>Capital</th>
<th>Population</th>
<th>Flag</th>
</tr>
<tr>
<td>Poland</td>
<td>Warsaw</td>
<td>38m</td>
<td>🇵🇱</td>
</tr>
<tr>
<td>Germany</td>
<td>Berlin</td>
<td>85m</td>
<td>🇩🇪</td>
</tr>
<tr>
<td>Iceland</td>
<td>Reykjavik</td>
<td>400k</td>
<td>🇮🇸</td>
</tr>
</table>
<pre><code class="language-html my-md"><table>
<tr>
<th>Country</th>
<th>Capital</th>
<th>Population</th>
<th>Flag</th>
</tr>
<tr>
<td>Poland</td>
<td>Warsaw</td>
<td>38m</td>
<td>🇵🇱</td>
</tr>
<tr>
<td>Germany</td>
<td>Berlin</td>
<td>85m</td>
<td>🇩🇪</td>
</tr>
<tr>
<td>Iceland</td>
<td>Reykjavik</td>
<td>400k</td>
<td>🇮🇸</td>
</tr>
</table>
</code></pre>
<h3 id="input">
Input
</h3>
<div class="column gap-sm">
<input type="text" placeholder="Enter your name" />
<input type="text" disabled placeholder="Disabled input" />
<input type="password" placeholder="Password" />
<input type="datetime-local" />
<input type="color" />
<input type="date" />
<input type="time" />
<input type="file" />
<input type="submit" />
</div>
<pre><code class="language-html my-md"><div class="column gap-sm">
<input type="text" placeholder="Enter your name" />
<input type="text" disabled placeholder="Disabled input" />
<input type="password" placeholder="Password" />
<input type="datetime-local" />
<input type="color" />
<input type="date" />
<input type="time" />
<input type="file" />
<input type="submit" />
</div>
</code></pre>
<h3 id="textarea">
Textarea
</h3>
<p>
Textarea is a multi-line text field element
</p>
<div class="column gap-sm">
<textarea placeholder="Enter your message"></textarea>
<textarea disabled placeholder="Disabled textarea"></textarea>
</div>
<pre><code class="language-html my-md"><div class="column gap-sm">
<textarea placeholder="Enter your message"></textarea>
<textarea disabled placeholder="Disabled textarea"></textarea>
</div>
</code></pre>
<h3 id="checkbox">
Checkbox
</h3>
<div class="column gap-sm">
<div class="checkbox">
<input id="check1" type="checkbox" />
<label for="check1">Checkbox</label>
</div>
<div class="checkbox">
<input id="check2" type="checkbox" disabled />
<label for="check2">Disabled</label>
</div>
<div class="checkbox">
<input id="check3" type="checkbox" disabled checked />
<label for="check3">Disabled checked</label>
</div>
</div>
<pre><code class="language-html my-md"><div class="checkbox">
<input id="check1" type="checkbox" />
<label for="check1">Checkbox</label>
</div>
<div class="checkbox">
<input id="check2" type="checkbox" disabled />
<label for="check2">Disabled</label>
</div>
<div class="checkbox">
<input id="check3" type="checkbox" disabled checked />
<label for="check3">Disabled checked</label>
</div>
</code></pre>
<h3 id="radio">
Radio
</h3>
<div class="column gap-sm">
<div class="radio">
<input id="radio1" type="radio" name="radio-examples" />
<label for="radio1">Radio</label>
</div>
<div class="radio">
<input id="radio2" type="radio" name="radio-examples" />
<label for="radio2">Radio</label>
</div>
<div class="radio">
<input id="radio3" type="radio" name="radio-examples2" disabled />
<label for="radio3">Disabled</label>
</div>
<div class="radio">
<input id="radio4" type="radio" name="radio-examples2" disabled checked />
<label for="radio4">Disabled</label>
</div>
</div>
<pre><code class="language-html my-md"><div class="radio">
<input id="radio1" type="radio" name="radio-examples" />
<label for="radio1">Radio</label>
</div>
<div class="radio">
<input id="radio2" type="radio" name="radio-examples" />
<label for="radio2">Radio</label>
</div>
<div class="radio">
<input id="radio3" type="radio" name="radio-examples2" disabled />
<label for="radio3">Disabled</label>
</div>
<div class="radio">
<input id="radio4" type="radio" name="radio-examples2" disabled checked />
<label for="radio4">Disabled</label>
</div>
</code></pre>
<h3 id="button">
Button
</h3>
<div class="row gap-md">
<button class="primary">Primary</button>
<button class="primary" disabled>Primary disabled</button>
<button>Secondary</button>
<button disabled>Disabled</button>
</div>
<pre><code class="language-html my-md"><button class="primary">Primary</button>
<button class="primary" disabled>Primary disabled</button>
<button>Secondary</button>
<button disabled>Disabled</button>
</code></pre>
<h3 id="select">
Select
</h3>
<select>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
<select disabled>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
<pre><code class="language-html my-md"><select>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
<select disabled>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</code></pre>
<h3 id="row">
Row
</h3>
<p>
Row is a flex container
</p>
<div class="row gap-md">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div class="debug">Item 3</div>
</div>
<pre><code class="language-html my-md"><div class="row gap-md">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div class="debug">Item 3</div>
</div>
</code></pre>
<h3 id="column">
Column
</h3>
<p>
Column is a flex container
</p>
<div class="column gap-md">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div class="debug">Item 3</div>
</div>
<pre><code class="language-html my-md"><div class="column gap-md">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div class="debug">Item 3</div>
</div>
</code></pre>
</p>
<h3 id="centered">
Centered row/column
</h3>
<p>
Centered items applies either one or both of <code>justify-content: center; align-items: center;</code>
</p>
<div class="row center gap-md mb-sm">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<div class="row center-x gap-md mb-sm">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<div class="row center-y gap-md mb-sm">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<div
class="column center-x gap-md mb-sm"
style="height: 200px; background: #eee"
>
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<div
class="column center-y gap-md mb-sm"
style="height: 200px; background: #eee"
>
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<pre><code class="language-html my-md"><div class="row center gap-md mb-sm">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<div class="row center-x gap-md mb-sm">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<div class="row center-y gap-md mb-sm">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<div
class="column center-x gap-md mb-sm"
style="height: 200px; background: #eee"
>
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
<div
class="column center-y gap-md mb-sm"
style="height: 200px; background: #eee"
>
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div>Item 3</div>
</div>
</code></pre>
<h3 id="spacer">Spacer</h3>
<p>
Spacer is a div element that fills the available space in a flexbox container
</p>
<div class="row gap-md w-full">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div class="spacer"></div>
<div class="debug">Item 3</div>
</div>
<pre><code class="language-html my-md"><div class="row gap-md w-full">
<div class="debug">Item 1</div>
<div class="debug">Item 2</div>
<div class="spacer"></div>
<div class="debug">Item 3</div>
</div>
</code></pre>
</div>
<h3 id="container">
Container
</h3>
<p>
Container is just a div with maximum width and auto margins. There is also a bit of padding added.
</p>
<p>
Note: This section is not in the container div above to show how it works.
</p>
<div class="container">This is a container</div>
</div>
<div class="container">
<pre><code class="language-html my-md"><div class="container">This is a container</div>
</code></pre>
<h3 id="details">Details</h3>
<p>
Details is a collapsible element
</p>
<div class="column gap-md" style="max-width: 500px">
<details>
<summary><span>Image</span></summary>
<img src="/girl.jpg" alt="Girl" style="width: 100%; max-width: 500px" />
</details>
<details>
<summary><span>Block of text</span></summary>
<div class="px-lg text-sm mb-md">
Details come here. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec
</div>
<div class="px-lg text-sm mb-lg">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor
sit amet, per no tota corrumpit intellegam, ex per quas nostrud corrumpit.
Ea alii sale interesset sed, ut graece liberavisse nam. Repudiare incorrupte
an vim, est ei case facete indoctum. Ei dicit doming partiendo per, ei
detraxit quaerendum liberavisse vim, omnes rationibus ei cum. Ut mei
explicari comprehensam definitionem.
</div>
</details>
</div>
<pre><code class="language-html my-md"><details>
<summary><span>Image</span></summary>
<img src="/girl.jpg" alt="Girl" style="width: 100%; max-width: 500px" />
</details>
<details>
<summary><span>Block of text</span></summary>
<div class="px-lg text-sm mb-md">
Details come here. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec
</div>
<div class="px-lg text-sm mb-lg">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor
sit amet, per no tota corrumpit intellegam, ex per quas nostrud corrumpit.
Ea alii sale interesset sed, ut graece liberavisse nam. Repudiare incorrupte
an vim, est ei case facete indoctum. Ei dicit doming partiendo per, ei
detraxit quaerendum liberavisse vim, omnes rationibus ei cum. Ut mei
explicari comprehensam definitionem.
</div>
</details>
</code></pre>
<h3 id="dialog">
Dialog
</h3>
<p>
Dialog is a modal dialog element
</p>
<dialog id="dialog-example" style="min-width: 400px">
<h5 class="my-sm mb-lg">Add new item</h5>
<input class="mb-sm" type="text" placeholder="Enter item name" />
<div class="inverted-row gap-md">
<button
class="primary"
onclick="document.getElementById('dialog-example').close()"
>
Add
</button>
<button onclick="document.getElementById('dialog-example').close()">
Cancel
</button>
</div>
</dialog>
<button
class="primary"
onclick="document.getElementById('dialog-example').showModal()"
>
Open dialog
</button>
<pre><code class="language-html my-md"><dialog id="dialog-example" style="min-width: 400px">
<h5 class="my-sm mb-lg">Add new item</h5>
<input class="mb-sm" type="text" placeholder="Enter item name" />
<div class="inverted-row gap-md">
<button
class="primary"
onclick="document.getElementById('dialog-example').close()"
>
Add
</button>
<button onclick="document.getElementById('dialog-example').close()">
Cancel
</button>
</div>
</dialog>
<button
class="primary"
onclick="document.getElementById('dialog-example').showModal()"
>
Open dialog
</button>
</code></pre>
</div>
<div class="container">
<h3 id="grid">Grid</h3>
<p>
A responsive grid system. The grid is 12 columns wide and will stack on smaller screens.
The classes mimic the Bootstrap grid system, but the implementation is based on CSS grid instead.
</p>
<div class="grid mb-lg">
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
</div>
<pre><code class="language-html my-md"><div class="grid mb-lg">
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
<div class="debug col-lg-2 col-md-3 col-xs-6">col-lg-2 col-md-3 col-xs-6</div>
</div>
</code></pre>
<p>
If no class is applied the column will be 1/12th of the grid.
</p>
<div class="grid">
<div class="debug col-lg-3 col-md-2 col-xs-6">col-lg-3 col-md-2 col-xs-6</div>
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
<pre><code class="language-html my-md"><div class="grid">
<div class="debug col-lg-3 col-md-2 col-xs-6">col-lg-3 col-md-2 col-xs-6</div>
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
<div class="debug"></div>
</div>
</code></pre>
<h3 id="nav">
Navbar
</h3>
<p>
Navbar is a navigation bar element
</p>
</div>
<nav>
<input type="checkbox" id="nav-check" />
<div class="nav-top">
<label for="nav-check" id="nav-button">
<svg
xmlns="http://www.w3.org/2000/svg"
width="30"
height="30"
fill="currentColor"
class="bi bi-list"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"
/>
</svg>
</label>
<div class="font-mono mx-md">Aluminium CSS</div>
</div>
<div class="nav-links">
<a class="nav-link" href="#installation">Installation</a>
<a class="nav-link" href="#customization">Customization</a>
<a class="nav-link" href="#grid">Grid</a>
<div class="spacer"></div>
<a class="nav-link" href="https://github.com/pr0gramista/aluminiumcss"
>GitHub</a
>
</div>
</nav>
<div class="container">
<pre><code class="language-html my-md"><nav>
<input type="checkbox" id="nav-check" />
<div class="nav-top">
<label for="nav-check" id="nav-button">
<svg
xmlns="http://www.w3.org/2000/svg"
width="30"
height="30"
fill="currentColor"
class="bi bi-list"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"
/>
</svg>
</label>
<div class="font-mono mx-md">Aluminium CSS</div>
</div>
<div class="nav-links">
<a class="nav-link" href="#installation">Installation</a>
<a class="nav-link" href="#customization">Customization</a>
<a class="nav-link" href="#grid">Grid</a>
<div class="spacer"></div>
<a class="nav-link" href="https://github.com/pr0gramista/aluminiumcss"
>GitHub</a
>
</div>
</nav>
</code></pre>
<h3 id="footer">
Footer
</h3>
<p>
Footer is a footer element
</p>
<pre><code class="language-html my-md"><footer>
<div class="container">
<div class="mb-s">
<span class="font-mono">Aluminium CSS</span>
</div>
<div class="row gap-lg mb-l">
<a>Home</a>
<a>About</a>
<a>Contact</a>
</div>
<div class="text-sm">Copyright &copy; 2023 Aluminium CSS</div>
</div>
</footer>
</code></pre>
</div>
<footer>
<div class="container">
<div class="mb-s">
<span class="font-mono">Aluminium CSS</span>
</div>
<div class="row gap-lg mb-l">
<a>Home</a>
<a>About</a>
<a>Contact</a>
</div>
<div class="text-sm">Copyright © 2023 Aluminium CSS</div>
</div>
</footer>
<script>hljs.highlightAll();</script>
</body>
</html>