-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
545 lines (455 loc) · 18.5 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
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="css/barrel.css">
<link rel="stylesheet" type="text/css" href="css/barrel.css" id="theme_css">
<title>Barrel.css</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<main>
<section class="window paper">
<header class="padding margin-bottom"><button>Look! A Header that is a button!</button></header>
<h2>🍂Basic Page🌱</h2>
<p>This is a simple test page for barrel.css</p>
<p>It is public domain/CC0, allong with barrel.css itself.</p>
<p>Get the source code here: <a href="https://github.com/EternityForest/barrel.css">at github</a></p>
<h3>Theme Chooser</h3>
<div class="tool-bar">
<button onclick="document.getElementById('theme_css').href = 'css/barrel.css';">Barrel</button>
<button onclick="document.getElementById('theme_css').href = 'css/fugit/fugit.css';">Fugit</button>
<button onclick="document.getElementById('theme_css').href = 'css/banderole/banderole.css';">Banderole</button>
<button onclick="document.getElementById('theme_css').href = 'css/scrapbook/scrapbook_green.css';">Scrapbook
Green</button>
<button onclick="document.getElementById('theme_css').href = 'css/nord.css';">Nord</button>
<button onclick="document.getElementById('theme_css').href = 'css/blast.css';">Blast</button>
<button onclick="document.getElementById('theme_css').href = 'css/lair.css';">Lair</button>
<button onclick="document.getElementById('theme_css').href = 'css/steam.css';">Steam</button>
<button onclick="document.getElementById('theme_css').href = 'css/show_black.css';">Show Black</button>
</div>
<p>Please note: Nord is an adaptation of the Nord Theme, which is MIT licensed, not public domain.</p>
<h3>Round feathered images</h3>
<img src="img/barrel_studio.webp" class="round-feathered w-sm-full h-center"
alt="AI generated image of art studio with lots of barrels">
<h3>Components</h3>
<p>We want to keep the number of components very small,
and use semantic HTML for the rest</p>
<h4>Help Text</h4>
<details class="help">
<summary>Help box</summary>
As the details element has the help class, it may be hidden by some themes.
It must not contain essential information that an expert user would still need.
It will not be printed unless opened.
</details>
<h4>The .stacked-form class</h4>
<p>This form uses the stacked-form, border, h-center, and w-sm-double classes.</p>
<form class="stacked-form border h-center w-sm-double">
<label>The input goes in the label<input></label>
<label>Inputs in labels get stacked<input></label>
<label>It should just work<input></label>
<p> Some explanation text in the form
</p>
<label for="test">Label outside the input</label>
<input id="test">
<p>
<label>Group of<input></label>
<label>inline elements<input size="10"></label>
<label>test<input></label>
</p>
<p>
<label>Another group<input></label>
<label>More groups<input size="15"></label>
</p>
<p>LED indicators are checkboxes with class led led-color</p>
<p>
<input checked type="checkbox" class="led led-red">
<input checked type="checkbox" class="led led-yellow">
<input checked type="checkbox" class="led led-green">
<input checked type="checkbox" class="led led-cyan">
<input checked type="checkbox" class="led led-blue">
<input checked type="checkbox" class="led led-purple">
<input type="checkbox" class="led led-purple">
</p>
<label><input type="checkbox">A checkbox</label>
<fieldset>
<legend>Choose a side</legend>
<p>Fieldsets work</p>
<label><input type="radio" id="Fries" name="monster" value="F">Fries</label>
<label><input type="radio" id="Salad" name="monster" value="S">Salad</label>
<label><input type="radio" id="OnionRings" name="monster" value="O">Onion Rings</label>
<label>An input <input></label>
<label><input type="checkbox" class="toggle">A checkbox with .toggle</label>
</fieldset>
<input type="submit">
</form>
<p> .button styles a link like a <a class="button">Button</a></p>
<h4>Toolbars</h4>
<div class="tool-bar">
<p>Toolbar</p>
<button>Button</button>
<label>
Labeled input
<input>
</label>
</div>
<div class="tool-bar margin">
<p>Toolbar</p>
<label>Meter<meter min="0" max="100" value="50"></meter></label>
<label>Range 1<input type="range"></label>
<select></select>
</div>
<div class="tool-bar">
<label>A checkbox with .toggle<input type="checkbox" class="toggle"></label>
<p class="spacer">spacer</p>
</div>
<h4>Cards</h4>
<article class="card w-sm-full h-center">
<header>Cards can have headers</header>
This is a card! Headers and footers are optional in
cards and windows. "w-sm-full" means about the width of a
phone screen. Cards do not have padding by default.
<footer>A footer</footer>
</article>
<h4>Toolbar in header</h4>
<article class="card w-sm-full h-center">
<header>
<div class="tool-bar">
<p>Toolbar</p>
<button>Button</button>
<label>
Labeled input
<input class="w-4rem">
</label>
</div>
</header>
Toolbars in headers are rendered differently if they are the
only child of that toolbar, to reduce visual noise.
<footer>A footer</footer>
</article>
<h3>More Cards!</h3>
<article class="card w-sm-full h-center">
<header>
<div class="tool-bar">
<p>Toolbar</p>
<label for="demo">Input w/btn:</label>
<p>
<input id="demo" class="w-4rem">
<button>btn</button>
</p>
</div>
</header>
Toolbars in headers are rendered differently if they are the
only child of that toolbar, to reduce visual noise.
<footer>A footer</footer>
</article>
<h3>Semantic Styles</h3>
<p class="warning">Let this be a warning!</p>
<p class="danger">Danger Will Robinson!</p>
<p class="success">Everything is fine now.</p>
<p class="highlight">The highlight of the page</p>
<h3>Color Variables</h3>
<p>Semantic color palletes are generated from a single base color</p>
<div class="flex-row nogaps">
<div class="card w-sm-quarter h-6rem" style="background-color:var(--green);">
</div>
<div class="card w-sm-quarter h-6rem" style="background-color:var(--teal);">
</div>
<div class="card w-sm-quarter h-6rem" style="background-color:var(--blue);">
</div>
<div class="card w-sm-quarter h-6rem" style="background-color:var(--purple);">
</div>
<div class="card w-sm-quarter h-6rem" style="background-color:var(--red);">
</div>
<div class="card w-sm-quarter h-6rem" style="background-color:var(--yellow);">
</div>
<div class="card w-sm-quarter h-6rem" style="background-color:var(--dark-blue);">
</div>
</div>
<h3>Flex</h3>
<p>The flex-row class is all you need for a nice layout.
The padding class gives any element a little padding around the edges.
</p>
<div class="flex-row gaps padding">
<article class="card w-sm-half h-6rem align-left">1</article>
<article class="card w-sm-half h-6rem align-right">2</article>
<article class="card w-sm-half h-6rem align-center">3</article>
<article class="card w-sm-half h-6rem">4</article>
</div>
<h3>More Flex!</h3>
<p>These boxes are aligned with align-left, and they are smushed
together with nogaps</p>
<div class="flex-row nopadding nogaps align-left">
<article class="card w-sm-half h-6rem">1</article>
<article class="card w-sm-half h-6rem">2</article>
</div>
<h3>12 Column layouts</h3>
<p>Put your stuff in a flex-row element and use cols-1 through cols-12.
It's a responsive grid, cols-X just sets the width to a fraction of the parent,
but it can reflow to fit small screens. w-full means 100% parent element width.
</p>
<div class="flex-row gaps w-full padding">
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
</div>
<div class="flex-row gaps w-full padding">
<article class="card col-3 h-2rem">3 col wide</article>
<article class="card col-3 h-2rem">9-col wide</article>
<article class="card col-3 h-2rem">9-col wide</article>
<article class="card col-3 h-2rem">9-col wide</article>
</div>
<div class="flex-row gaps w-full padding">
<article class="card col-3 h-6rem">3 col wide</article>
<article class="card col-9 h-6rem">9-col wide</article>
</div>
<h3>12 Column layouts with nogaps</h3>
<div class="flex-row w-full padding nogaps">
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
</div>
<div class="flex-row w-full padding nogaps">
<article class="card col-2 h-6rem">2 col wide</article>
<article class="card col-8 h-6rem">8-col wide</article>
<article class="card col-2 h-6rem">2-col wide</article>
</div>
<h3>Column sizing is flexible</h3>
<p>Note that the first column expands to fit content, and the second fills unused space.</p>
<div class="flex-row w-full padding nogaps">
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
<article class="card col-1 h-2rem">1col</article>
</div>
<div class="flex-row w-full padding nogaps">
<article style="word-break: keep-all" class="card col-3 h-6rem">3colwidebutthetextprobablydoesnotfitinonecolumn
</article>
<article class="card col-2 h-6rem">2-col wide</article>
</div>
<section class="padding">
<h3>Text Styles</h3>
<p>
<b>Bold</b> and <i>Italic</i> and <u>Underlined</u> and
<span class="normal-font">Normal, undecorated text</span>.
</p>
<p>Few quips galvanized the mock jury box.</p>
<p title="If a new axe were here, thieves would feel increasing deterrence and punishment">Kæmi ný öxi hér,
ykist þjófum nú bæði víl og ádrepa.</p>
<p title="It is rather fun that bicycles are a daily phenomenon on the countryroads.">On sangen hauskaa, että
polkupyörä on maanteiden jokapäiväinen ilmiö</p>
<p title="protect in general your life from deep psychological wounds">διαφυλάξτε γενικά τη ζωή σας από βαθειά
ψυχικά τραύματα</p>
<p
title=" Awaken from dreaming to the voice of the crying bird and see the coming daylight turning the east sky-blue; shrouded in mist is a flock of ships on the open sea">
鳥啼く声す 夢覚ませ 見よ明け渡る 東を 空色栄えて 沖つ辺に 帆船群れゐぬ 靄の中</p>
<p>Also a <a href="example.com">Link</a></p>
<h3>Backgrounds</h3>
<div class="padding" style="background-color:purple">
<article class="card paper">
The paper class gives a background to an element.
You might need it if displaying over dark stuff.
</article>
<article class="card paper warning">
Paper warning!
</article>
<article class="card paper highlight">
Paper highlight!
</article>
</div>
<h3>HTML Elements</h3>
<details>
<summary>details/summary</summary>
More content is here.
</details>
<h4>Ye Olde Block Quote</h4>
<blockquote>It is an ancient Mariner,
And he stoppeth one of three.
"By thy long gray beard and glittering eye,
Now wherefore stopp'st thou me?
</blockquote>
<textarea class="w-full h-12rem">A text area</textarea>
<h4>Here's a form with no classes</h4>
<form>
<label>Label
<input>
</label>
<button>A button</button>
</form>
<h4>Meters</h4>
<p>
<input type="range" class="w-full">
</p>
<p>
<meter class="w-full" min="0" max="100" low="25" high="75" optimum="100" value="10"></meter>
</p>
<p>
<meter class="w-full" min="0" max="100" low="25" high="75" optimum="100" value="50"></meter>
</p>
<p>
<meter class="w-full" min="0" max="100" low="25" high="75" optimum="100" value="80"></meter>
</p>
<h4>Tables</h4>
<table border="1" class="w-full">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
</table>
<hr>
<table class="w-full">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Heading 1</th>
<th>Table Heading 2</th>
<th>Table Heading 3</th>
<th>Table Heading 4</th>
<th>Table Heading 5</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Table Footer 1</th>
<th>Table Footer 2</th>
<th>Table Footer 3</th>
<th>Table Footer 4</th>
<th>Table Footer 5</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>Table Cell 1</td>
<td>Table Cell 2</td>
<td>Table Cell 3</td>
<td>Table Cell 4</td>
<td>Table Cell 5</td>
</tr>
<tr>
<td>Table Cell 1</td>
<td>Table Cell 2</td>
<td>Table Cell 3</td>
<td>Table Cell 4</td>
<td>Table Cell 5</td>
</tr>
<tr>
<td>Table Cell 1</td>
<td>Table Cell 2</td>
<td>Table Cell 3</td>
<td>Table Cell 4</td>
<td>Table Cell 5</td>
</tr>
<tr>
<td>Table Cell 1</td>
<td>Table Cell 2</td>
<td>Table Cell 3</td>
<td>Table Cell 4</td>
<td>Table Cell 5</td>
</tr>
</tbody>
</table>
</section>
<h3>Poetry Styling</h3>
<article class="poem col-9 h-center">
<header class="align-center">
<h4>Hymn of Breaking Strain</h4>
<p>Rudyard Kipling</p>
</header>
<pre class="poem h-center">
THE careful text-books measure
(Let all who build beware!)
The load, the shock, the pressure
Material can bear.
So, when the buckled girder
Lets down the grinding span,
'The blame of loss, or murder,
Is laid upon the man.
Not on the Stuff—the Man!
But in our daily dealing
With stone and steel, we find
The Gods have no such feeling
Of justice toward mankind.
To no set gauge they make us—
For no laid course prepare—
And presently o'ertake us
With loads we cannot bear:
Too merciless to bear.
The prudent text-books give it
In tables at the end
'The stress that shears a rivet
Or makes a tie-bar bend—
'What traffic wrecks macadam—
What concrete should endure—
but we, poor Sons of Adam
Have no such literature,
To warn us or make sure!
We hold all Earth to plunder—
All Time and Space as well—
Too wonder-stale to wonder
At each new miracle;
Till, in the mid-illusion
Of Godhead 'neath our hand,
Falls multiple confusion
On all we did or planned—
The mighty works we planned.
We only of Creation
(Oh, luckier bridge and rail)
Abide the twin damnation—
To fail and know we fail.
Yet we - by which sole token
We know we once were Gods—
Take shame in being broken
However great the odds—
The burden of the Odds.
Oh, veiled and secret Power
Whose paths we seek in vain,
Be with us in our hour
Of overthrow and pain;
That we - by which sure token
We know Thy ways are true—
In spite of being broken,
Because of being broken
May rise and build anew
Stand up and build anew.
</pre>
</article>
</section>
</main>
</body>
</html>