-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·426 lines (324 loc) · 16.9 KB
/
index.php
File metadata and controls
executable file
·426 lines (324 loc) · 16.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Generic CSS Grid | GenericTools</title>
<link rel="canonical" href="https://generic.tools/grid/">
<link rel="stylesheet" href="grid.css">
<style>
.icon-demo{mask-image:url(icon.svg)}
table, .box, .box-2, .box-3, .box-4, .box-5, .box-6, .box-1-3, .box-2-3{color:#fff!important;background:var(--color-blue-light)}
</style>
</head>
<body id="demo">
<div id="wrapper">
<header id="header">
<h1><a href="./">Generic CSS Grid</a></h1>
</header>
<div id="container">
<main id="content">
<article class="entry">
<br>
<h1>This is a header one.</h1>
<pre><code><h1>This is a header one.</h1></code></pre>
<h2>This is a header two.</h2>
<pre><code><h2>This is a header two.</h2></code></pre>
<h3>This is a header three.</h3>
<pre><code><h3>This is a header three.</h3></code></pre>
<h4>This is a header four.</h4>
<pre><code><h4>This is a header four.</h4></code></pre>
<h5>This is a header five.</h5>
<pre><code><h5>This is a header five.</h5></code></pre>
<h6>This is a header six.</h6>
<pre><code><h6>This is a header six.</h6></code></pre>
<p>This is a sentence wrapped in paragraph tags.</p>
<pre><code><p>This is a sentence wrapped in paragraph tags.</p></code></pre>
<p><a href="#">This is a link</a>.</p>
<pre><code><a href="#">This is a link</a></code></pre>
<p><strong>This is bold text</strong>.</p>
<pre><code><strong>This is bold text</strong></code></pre>
<p><em>This is italic text</em>.</p>
<pre><code><em>This is italic text</em></code></pre>
<p>This is code that we want to display: <code>.blue{color:blue}</code></p>
<pre><code><pre><code>.blue{color:blue}</code></pre></code></pre>
<p>This is the horizontal rule:</p>
<hr>
<pre><code><hr></code></pre>
<blockquote>This is a sentence wrapped in blockquote tags.</blockquote>
<pre><code><blockquote>This is a sentence wrapped in blockquote tags.</blockquote></code></pre>
<ul>
<li>This</li>
<li>is</li>
<li>an</li>
<li>unordered</li>
<li>list.</li>
</ul>
<pre><code><ul>
<li>This</li>
<li>is</li>
<li>an</li>
<li>unordered</li>
<li>list.</li>
</ul></code></pre>
<ol>
<li>This</li>
<li>is</li>
<li>an</li>
<li>ordered</li>
<li>list.</li>
</ol>
<pre><code><ol>
<li>This</li>
<li>is</li>
<li>an</li>
<li>ordered</li>
<li>list.</li>
</ol></code></pre>
<p><input type="text" value="This is a text input." size="25"></p>
<pre><code><input type="text" value="This is a text input." size="25"></code></pre>
<p><textarea rows="5" cols="50">This is a textarea.</textarea></p>
<pre><code><textarea rows="5" cols="50">This is a textarea.</textarea></code></pre>
<p><input type="submit" value="This is a submit input."></p>
<pre><code><input type="submit" value="This is a submit input."></code></pre>
<p><img src="img.jpg" alt="This is an image."></p>
<pre><code><img src="img.jpg" alt="This is an image."></code></pre>
<h2>Tables</h2>
<table class="alternating">
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
<td>Row 1, Cell 3</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
<td>Row 2, Cell 3</td>
</tr>
<tr>
<td>Row 3, Cell 1</td>
<td>Row 3, Cell 2</td>
<td>Row 3, Cell 3</td>
</tr>
<tr>
<td>Row 4, Cell 1</td>
<td>Row 4, Cell 2</td>
<td>Row 4, Cell 3</td>
</tr>
</tbody>
</table>
<pre><code><table class="alternating">
<thead>
<tr><th>Header 1</th><th>Header 2</th><th>Header 3</th></tr>
</thead>
<tbody>
<tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td></tr>
<tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td></tr>
</tbody>
</table></code></pre>
<h2>Font Stacks</h2>
<p class="font-system">This uses the system font stack.</p>
<pre><code><p class="font-system">This uses the system font stack.</p></code></pre>
<p class="font-sans">This uses the sans-serif font stack.</p>
<pre><code><p class="font-sans">This uses the sans-serif font stack.</p></code></pre>
<p class="font-serif">This uses the serif font stack.</p>
<pre><code><p class="font-serif">This uses the serif font stack.</p></code></pre>
<p class="font-mono">This uses the monospace font stack.</p>
<pre><code><p class="font-mono">This uses the monospace font stack.</p></code></pre>
<p class="font-symbol">This uses the symbol font stack: ☮ ♠ ♣ ♥ ♦ ← → ↑ ↓ ★</p>
<pre><code><p class="font-symbol">This uses the symbol font stack: ☮ ♠ ♣ ♥ ♦ ← → ↑ ↓ ★</p></code></pre>
<h2>Icons</h2>
<p>This is an inline SVG icon: <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 5h16"/><path d="M4 12h16"/><path d="M4 19h16"/></svg></p>
<pre><code><svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 5h16"/><path d="M4 12h16"/><path d="M4 19h16"/></svg></code></pre>
<p>This is an icon loaded from a file: <i class="icon icon-demo" title="This is an icon."></i></p>
<pre><code><style>.icon-demo{mask-image:url(icon.svg)}</style>
<i class="icon icon-demo" title="This is an icon."></i></code></pre>
<h2>Buttons and Colors</h2>
<p><a href="#" class="button">This is the default button.</a></p>
<pre><code><a href="#" class="button">This is the default button.</a></code></pre>
<p><a href="#" class="button rounded">This is a rounded button.</a></p>
<pre><code><a href="#" class="button rounded">This is a rounded button.</a></code></pre>
<p><a href="#" class="button round">This is a round button.</a></p>
<pre><code><a href="#" class="button round">This is a round button.</a></code></pre>
<p><a href="#" class="button circle">This is a circle button.</a></p>
<pre><code><a href="#" class="button circle">This is a circle button.</a></code></pre>
<p><a href="#" class="button white">This is a button set to white.</a></p>
<pre><code><a href="#" class="button white">This is a button set to white.</a></code></pre>
<p><a href="#" class="button blue">This is a button set to blue.</a></p>
<pre><code><a href="#" class="button blue">This is a button set to blue.</a></code></pre>
<p><a href="#" class="button blue-light">This is a button set to light blue.</a></p>
<pre><code><a href="#" class="button blue-light">This is a button set to light blue.</a></code></pre>
<p><a href="#" class="button blue-dark">This is a button set to dark blue.</a></p>
<pre><code><a href="#" class="button blue-dark">This is a button set to dark blue.</a></code></pre>
<p><a href="#" class="button green">This is a button set to green.</a></p>
<pre><code><a href="#" class="button green">This is a button set to green.</a></code></pre>
<p><a href="#" class="button green-light">This is a button set to light green.</a></p>
<pre><code><a href="#" class="button green-light">This is a button set to light green.</a></code></pre>
<p><a href="#" class="button green-dark">This is a button set to dark green.</a></p>
<pre><code><a href="#" class="button green-dark">This is a button set to dark green.</a></code></pre>
<p><a href="#" class="button orange">This is a button set to orange.</a></p>
<pre><code><a href="#" class="button orange">This is a button set to orange.</a></code></pre>
<p><a href="#" class="button orange-light">This is a button set to light orange.</a></p>
<pre><code><a href="#" class="button orange-light">This is a button set to light orange.</a></code></pre>
<p><a href="#" class="button orange-dark">This is a button set to dark orange.</a></p>
<pre><code><a href="#" class="button orange-dark">This is a button set to dark orange.</a></code></pre>
<p><a href="#" class="button purple">This is a button set to purple.</a></p>
<pre><code><a href="#" class="button purple">This is a button set to purple.</a></code></pre>
<p><a href="#" class="button purple-light">This is a button set to light purple.</a></p>
<pre><code><a href="#" class="button purple-light">This is a button set to light purple.</a></code></pre>
<p><a href="#" class="button purple-dark">This is a button set to dark purple.</a></p>
<pre><code><a href="#" class="button purple-dark">This is a button set to dark purple.</a></code></pre>
<p><a href="#" class="button red">This is a button set to red.</a></p>
<pre><code><a href="#" class="button red">This is a button set to red.</a></code></pre>
<p><a href="#" class="button red-light">This is a button set to light red.</a></p>
<pre><code><a href="#" class="button red-light">This is a button set to light red.</a></code></pre>
<p><a href="#" class="button red-dark">This is a button set to dark red.</a></p>
<pre><code><a href="#" class="button red-dark">This is a button set to dark red.</a></code></pre>
<p><a href="#" class="button yellow">This is a button set to yellow.</a></p>
<pre><code><a href="#" class="button yellow">This is a button set to yellow.</a></code></pre>
<p><a href="#" class="button yellow-light">This is a button set to light yellow.</a></p>
<pre><code><a href="#" class="button yellow-light">This is a button set to light yellow.</a></code></pre>
<p><a href="#" class="button yellow-dark">This is a button set to dark yellow.</a></p>
<pre><code><a href="#" class="button yellow-dark">This is a button set to dark yellow.</a></code></pre>
<p><a href="#" class="button black">This is a button set to black.</a></p>
<pre><code><a href="#" class="button black">This is a button set to black.</a></code></pre>
<p><a href="#" class="button gray">This is a button set to gray.</a></p>
<pre><code><a href="#" class="button gray">This is a button set to gray.</a></code></pre>
<p><a href="#" class="button gray-light">This is a button set to light gray.</a></p>
<pre><code><a href="#" class="button gray-light">This is a button set to light gray.</a></code></pre>
<p><a href="#" class="button gray-dark">This is a button set to dark gray.</a></p>
<pre><code><a href="#" class="button gray-dark">This is a button set to dark gray.</a></code></pre>
<h2>Notes</h2>
<span class="note yellow">This is a caution note.</span>
<pre><code><span class="note yellow">This is a caution note.</span></code></pre>
<span class="note red">This is a warning note.</span>
<pre><code><span class="note red">This is a warning note.</span></code></pre>
<h2>Grid Layout</h2>
<div class="boxes">
<div class="box">This is a single-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box">This is a single-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-2">This is a two-column box.</div>
<div class="box-2">This is a two-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-2">This is a two-column box.</div>
<div class="box-2">This is a two-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-3">This is a three-column box.</div>
<div class="box-3">This is a three-column box.</div>
<div class="box-3">This is a three-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-3">This is a three-column box.</div>
<div class="box-3">This is a three-column box.</div>
<div class="box-3">This is a three-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-1-3">This is a one-third box.</div>
<div class="box-2-3">This is a two-thirds box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-1-3">This is a one-third box.</div>
<div class="box-2-3">This is a two-thirds box.</div>
</div></code></pre>
<br>
<h2>Dark Mode</h2>
<p>If your system/browser is set to prefer dark mode, this page should be black. Otherwise, it'll be white.</p>
<br>
<pre><code>@media(prefers-color-scheme:light){body{background:var(--color-white)}}
@media(prefers-color-scheme:dark){body{background:var(--color-black)}}</code></pre>
<br>
<h2>Additional Helper Classes</h2>
<pre><code>.block{display:block}
.inline{display:inline}
.inline-block{display:inline-block}
.flex{display:flex}
.grid{display:grid}
.full-width{width:100%}
.padding-0{padding:0}
.border-0{border:0}
.margin-0{margin:0}
.left{text-align:left}
.center{text-align:center}
.right{text-align:right}
.float-left{float:left}
.float-right{float:right}
.clear{clear:both}
.clear-left{clear:left}
.clear-right{clear:right}
.clear-float:after{display:table;content:'';clear:both}
.lowercase{text-transform:lowercase}
.uppercase{text-transform:uppercase}
.capitalize{text-transform:capitalize}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spacer{display:inline-block;width:var(--spacing-small)}
.offset{scroll-margin-top:6.25rem}
.desktop, .mobile, .hidden{display:none}
.visually-hidden:not(:focus):not(:active){position:absolute!important;width:1px;height:1px;padding:0;border:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}</code></pre>
</article>
</main>
</div>
</div>
</body>
</html>