-
Notifications
You must be signed in to change notification settings - Fork 23
/
index.html
532 lines (504 loc) · 21 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
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<title>bonsai.css</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta name='apple-mobile-web-app-title' content='bonsai.css'>
<meta name='application-name' content='bonsai.css'>
<meta name='msapplication-config' content='icons/browserconfig.xml'>
<meta name='theme-color' content='#ffffff'>
<meta name="description" content="Largely classless, blazing fast and super light-weight. Bonsai, a CSS framework for modern browsers.">
<link id='stylesheet' rel='stylesheet' href='dist/bonsai.min.css'>
<link rel='manifest' href='icons/manifest.json'>
<link rel='shortcut icon' href='icons/favicon.ico'>
<style>
section {
margin: 2em 0 4em;
}
.grid-demo {
grid-auto-rows: minmax(50px, auto);
}
.grid-demo > * {
background: var(--primary);
min-height: 3rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
color: white;
text-align: center;
}
.grid-demo > *:nth-child(even) {
background: #3f5aa4;
}
</style>
</head>
<body style="--mv:20px; --p:0; --bg:#f5f5f5; --c:#202020">
<div style="--wrapper:1000px; --gutter:3vw;">
<img src="logo.png" alt="bonsai" style="--m:40px auto 0; --d:block">
<h1 style="--ta:center">bonsai.css</h1>
<p style="--ta:center; --maxw:450px; --m:0 auto 3rem">All the versatility with none of the weight</p>
<section>
<h3 class="primary">Block and Inline Elements</h3>
<p class="green">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.
</p>
<p>
Sed egestas, ante et <a href="#">vulputate volutpat</a>, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est. Sed lectus. Praesent elementum hendrerit tortor. <em>Sed semper lorem at felis.</em> Vestibulum volutpat, lacus a ultrices sagittis, mi neque euismod dui, eu pulvinar nunc sapien ornare nisl. <strong>Phasellus pede</strong> arcu, dapibus eu, fermentum et, dapibus sed, urna. Morbi interdum mollis sapien. Sed ac risus. <small>Phasellus lacinia, magna a ullamcorper laoreet</small>, lectus arcu pulvinar risus, vitae facilisis libero dolor a purus. Sed vel lacus. Mauris nibh felis, adipiscing varius, adipiscing in, lacinia vel, tellus. <code>Suspendisse ac urna.</code> Etiam pellentesque mauris ut lectus. <mark>Nunc tellus ante</mark>, mattis eget, gravida vitae, ultricies ac, leo. Integer leo pede, ornare a, lacinia eu, vulputate vel, nisl.
</p>
<blockquote>
<p>
Suspendisse mauris. Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehicula. Integer adipiscing risus a sem. Nullam quis massa sit amet nibh viverra malesuada. Nunc sem lacus, accumsan quis, faucibus non, congue vel, arcu. Ut scelerisque hendrerit tellus. Integer sagittis. Vivamus a mauris eget arcu gravida tristique.
</p>
<footer>—Parmenides, <cite>Nunc sem lacus, accumsan quis</cite></footer>
</blockquote>
</section>
<section>
<h3 class="primary">Headings</h3>
<h1>Heading Level 1</h1>
<h2>Heading Level 2</h2>
<h3>Heading Level 3</h3>
<h4>Heading Level 4</h4>
<h5>Heading Level 5</h5>
<h6>Heading Level 6</h6>
</section>
<section>
<h3 class="primary">Lists</h3>
<div class="grid" style="--col:2">
<ul>
<li>Unordered list item 1</li>
<li>
Unordered list item 2
<ul>
<li>Unordered list sub-item 1</li>
<li>Unordered list sub-item 2</li>
</ul>
</li>
<li>Unordered list item 3</li>
<li>Unordered list item 4</li>
</ul>
<ol>
<li>Ordered list item 1</li>
<li>
Ordered list item 2
<ol>
<li>Ordered list sub-item 1</li>
<li>Ordered list sub-item 2</li>
</ol>
</li>
<li>Ordered list item 3</li>
<li>Ordered list item 4</li>
</ol>
</div>
</section>
<section>
<h3 class="primary">Layout</h3>
<p>Bonsai.css a multi dimensional, easy to use layout framework. </p>
<div class="grid grid-demo" style="--col-xs:2; --col-sm:6; --gap:1rem;">
<div style="--sc-sm:2; --sr-sm:2">--sc-sm:2; --sr-sm:2</div>
<div style="--sr-sm:3">--sr-sm:3</div>
<div style="--sr-sm:4">--sr-sm:4</div>
<div style="--sr-sm:5">--sr-sm:5</div>
<div style="--sr-sm:6">--sr-sm:6</div>
<div style="--sc-sm:2">--sc-sm:2</div>
<div style="--sc-sm:3">--sc-sm:3</div>
<div style="--sr-sm:6">--sr-sm:6</div>
<div style="--sc-sm:3">--sc-sm:3</div>
<div style="--sr-sm:5">--sr-sm:5</div>
<div style="--sc-sm:3">--sc-sm:3</div>
<div style="--sr-sm:4">--sr-sm:4</div>
<div style="--sc-sm:3">--sc-sm:3</div>
<div style="--sr-sm:3">--sr-sm:3</div>
<div style="--sc-sm:2">--sc-sm:2</div>
<div style="--sc-sm:2; --sr-sm:2">--sc-sm:2; --sr-sm:2</div>
</div>
</section>
<section class="section">
<h3 class="primary">Inputs & Textareas</h3>
<div class="grid" style="--col: 2">
<p>
<label>First Name
<input type="text" placeholder="John">
</label>
</p>
<p>
<label>Last Name
<input type="text" placeholder="Dow">
</label>
</p>
</div>
<div class="grid" style="--col:3">
<p>
<label for="input-date">Input with type="date"
<input type="date" id="input-date">
</label>
</p>
<p>
<label for="input-time">Input with type="time"
<input type="time" id="input-time">
</label>
</p>
<p>
<label>Type
<select name="type">
<option value="message">Message</option>
<option value="feature">Feature</option>
<option value="report">Report</option>
</select>
</label>
</p>
</div>
<div class="row">
<p class="col">
<label>Message
<textarea placeholder="Greetings..."></textarea>
</label>
</p>
</div>
<h4 class="primary">Input States</h4>
<form class="flex">
<p>
<label for="input-text-standard">Standard
<input type="text">
</label>
</p>
<p>
<label for="input-text-disabled">Disabled
<input type="text" disabled="">
</label>
</p>
<p>
<label for="input-text-readonly">Read Only
<input type="text" readonly="">
</label>
</p>
</form>
</section>
<section>
<h3 class="primary">Buttons</h3>
<div>
<p style="--mb:0">Button with button tag</p>
<button>Button</button>
<button aria-label="add">
<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"/></svg>
Button
</button>
<button disabled>Button Disabled</button>
</div>
<div>
<p style="--mb:0">Button with link tag</p>
<a href="#" class="button">Button Link</a>
<a href="#" class="button" aria-label="add">
<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"/></svg>
Button Link
</a>
<a href="#" class="button disabled">Button Link Disabled</a>
</div>
<div>
<p style="--mb:0">Button Color Variations</p>
<button class="green">Green</button>
<button class="orange">Orange</button>
<button class="red">Red</button>
<button class="white">White</button>
<button class="grey">Grey</button>
<button class="black">Black</button>
<button class="transparent">Transparent</button>
</div>
<div>
<p style="--mb:0">Button Groups (Horizontal)</p>
<span class="group">
<button>Button</button>
<button>Button</button>
<button>Button</button>
</span>
<span class="group">
<input type="text" placeholder="John" aria-label="Name">
<button>Button</button>
<button>Button</button>
</span>
<span class="group">
<button>Button</button>
<input type="text" placeholder="John" aria-label="Name">
</span>
<span class="group">
<button aria-label="upload">
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="svg-inline--fa fa-download fa-w-18"><path fill="currentColor" d="M528 288h-92.1l46.1-46.1c30.1-30.1 8.8-81.9-33.9-81.9h-64V48c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v112h-64c-42.6 0-64.2 51.7-33.9 81.9l46.1 46.1H48c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V336c0-26.5-21.5-48-48-48zm-400-80h112V48h96v160h112L288 368 128 208zm400 256H48V336h140.1l65.9 65.9c18.8 18.8 49.1 18.7 67.9 0l65.9-65.9H528v128zm-88-64c0-13.3 10.7-24 24-24s24 10.7 24 24-10.7 24-24 24-24-10.7-24-24z"/></svg>
</button>
<input type="text" placeholder="filename.txt" aria-label="Filename">
</span>
<span class="group">
<input type="text" placeholder="Name" aria-label="Name">
<button>Submit</button>
</span>
</div>
<div>
<p style="--mb:0">Buttons with Outline</p>
<button class="green outline">Green</button>
<button class="orange outline">Orange</button>
<button class="red outline">Red</button>
<button class="white outline">White</button>
<button class="grey outline">Grey</button>
<button class="black outline" outline>Black</button>
<button class="transparent outline">Transparent</button>
</div>
<div>
<p style="--mb:0">Button Groups (Vertical)</p>
<span class="group vertical">
<button>Button</button>
<button>Button</button>
<button>Button</button>
<button>Button</button>
</span>
<span class="group vertical">
<button class="white">Button</button>
<button class="grey">Button</button>
<button class="green">Button</button>
</span>
<span class="group vertical">
<input type="text" placeholder="Name" aria-label="Name">
<button>Button</button>
</span>
<span class="group vertical">
<button>Button</button>
<input type="number" placeholder="Quantity" aria-label="Quantity">
</span>
</p>
</section>
<section>
<h3 class="primary">Radios & Checkboxes</h3>
<div style="--mb:1rem">
<div>
<input type="radio" name="radio" id="radio-1" checked="">
<label for="radio-1">Radio 1</label>
</div>
<div>
<input type="radio" name="radio" id="radio-2">
<label for="radio-2">Radio 2</label>
</div>
<div>
<input type="radio" name="radio" id="radio-3">
<label for="radio-3">Radio 3</label>
</div>
<div>
<input type="radio" name="radio" id="radio-4" disabled="">
<label for="radio-4">Radio 4 (disabled)</label>
</div>
</div>
<div style="--mb:1rem">
<div>
<input type="checkbox" id="checkbox-1">
<label for="checkbox-1">Checkbox</label>
</div>
<div>
<input type="checkbox" id="checkbox-2" checked="">
<label for="checkbox-2">Checked Checkbox</label>
</div>
<div>
<input type="checkbox" id="checkbox-3" disabled="">
<label for="checkbox-3">Disabled Checkbox</label>
</div>
</div>
</section>
<section>
<h3 class="primary">Other Form Elements</h3>
<fieldset>
<legend>Fieldset</legend>
<div class="grid" style="--col: 2">
<p>
<label>Username
<input type="text" placeholder="John">
</label>
</p>
<p>
<label>Password
<input type="password" placeholder="Dow">
</label>
</p>
</div>
<button>Submit</button>
</fieldset>
<div class="grid" style="--col:2">
<div>
<p>
<label for="select">Select
<select id="select">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<optgroup label="Subgroup">
<option value="4">Option 4</option>
<option value="5">Option 5</option>
</optgroup>
</select>
</label>
</p>
<p>
<label for="input-file">Input File
<input type="file">
</label>
</p>
<p>
<label for="input-color">Input Color
<input type="color" value="#4a69bd">
</label>
</p>
</div>
<div>
<p>
<label for="selectmultiple">Multiselect
<select id="selectmultiple" multiple="">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
<option value="6">Option 6</option>
<optgroup label="Subgroup">
<option value="7">Option 7</option>
<option value="8">Option 8</option>
</optgroup>
</select>
</label>
</p>
<p>
<label for="input-range">Input Range
<input type="range">
</label>
</p>
</div>
</div>
</section>
<section>
<h3 class="primary">Tags</h3>
<div>
<p style="--mb:0">Tag Variations</p>
<div class="tag white">white</div>
<div class="tag green">green</div>
<div class="tag blue">blue</div>
<div class="tag orange">orange</div>
<div class="tag red">red</div>
<div class="tag grey">grey</div>
<div class="tag black">black</div>
</div>
<div>
<p style="--mb:0">Tag Groups (Horizontal)</p>
<span class="group">
<span class="tag black">node.js</span>
<span class="tag primary">12.16.1</span>
</span>
<span class="group">
<span class="tag black">npm</span>
<span class="tag green">6.14</span>
</span>
<span class="group">
<span class="tag black">git</span>
<span class="tag white">2.25.1</span>
</span>
<span class="group">
<span class="tag black">node.js</span>
<span class="tag orange">12.16.1</span>
</span>
</div>
<div>
<p style="--mb:0">Tag Groups (Vertical)</p>
<span class="group vertical">
<span class="tag black">node.js</span>
<span class="tag primary">12.16.1</span>
</span>
<span class="group vertical">
<span class="tag black">npm</span>
<span class="tag green">6.14</span>
</span>
<span class="group vertical">
<span class="tag black">git</span>
<span class="tag white">2.25.1</span>
</span>
<span class="group vertical">
<span class="tag black">node.js</span>
<span class="tag orange">12.16.1</span>
</span>
</div>
</section>
<section class="section">
<h3 class="primary">Table</h3>
<table class="accent">
<caption>Table caption</caption>
<thead>
<tr>
<th scope="row">Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Row 1 Value 1</th>
<td>Row 1 Value 2</td>
<td>Row 1 Value 3</td>
<td>Row 1 Value 4</td>
</tr>
<tr>
<th scope="row">Row 2 Value 1</th>
<td>Row 2 Value 2</td>
<td>Row 2 Value 3</td>
<td>Row 2 Value 4</td>
</tr>
<tr>
<th scope="row">Row 3 Value 1</th>
<td>Row 3 Value 2</td>
<td>Row 3 Value 3</td>
<td>Row 3 Value 4</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row">Total 1</th>
<th>Total 2</th>
<th>Total 3</th>
<th>Total 4</th>
</tr>
</tfoot>
</table>
</section>
<section>
<h3 class="primary">Horizontal Rule</h3>
<hr>
</section>
<section>
<h3 class="primary">Figure & Figcaption</h3>
<figure>
<img src="https://source.unsplash.com/BUMBTtu09sA/500x300" alt="Aliquam erat volutpat">
<figcaption>Aliquam erat volutpat</figcaption>
</figure>
</section>
<section>
<h3 class="primary">Details</h3>
<details>
<summary>Details/Summary example</summary>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat velit
lorem, feugiat congue lacus laoreet quis. Praesent maximus ex nec justo iaculis, in
euismod eros dictum. Cras ac lorem sit amet purus malesuada blandit. Mauris gravida
augue non urna sodales porttitor. Etiam ullamcorper luctus ullamcorper. In lobortis
consequat ante.
</p>
</details>
</section>
<section>
<h3 class="primary">Definition Lists</h3>
<dl>
<dt>Term 1</dt>
<dd>Definition for term 1.</dd>
<dt>Term 2</dt>
<dd>Definition for term 2.</dd>
<dt>Term 3</dt>
<dd>Definition for term 3.</dd>
</dl>
</section>
</div>
<a href="https://github.com/bonsaicss/bonsai.css" target="_blank" rel="noopener" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:var(--primary); color:var(--white); --pos: absolute; top: 0; border: 0; right: 0; height: auto;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor"/><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor"/></svg></a>
</body>
</html>