-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
795 lines (795 loc) · 32.4 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Classic stylesheets 2.0</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="layout.css"/>
<link id="theme-link" rel="stylesheet" type="text/css" href="themes/cde/theme.css"/>
<link id="skin-link" rel="stylesheet" type="text/css" href="themes/cde/skins/crimson-4.css"/>
<link rel="stylesheet" type="text/css" href="demo.css"/>
</head>
<body class="flex-column use-preferred-font">
<div id="toolbar" class="top-panel flex-row gap align-center padding">
<div>Theme</div>
<div class="dropdown">
<select id="theme-select" size=1>
<option value="win9x">Windows 9x</option>
<option value="win3x">Windows 3.x</option>
<option value="winxp">Windows XP</option>
<option value="cde">CDE</option>
<option value="macos9">Mac OS 9</option>
</select>
<div class="dropdown-button"></div>
</div>
<div>Skin</div>
<div class="dropdown">
<select id="skin-select" size=1>
</select>
<div class="dropdown-button"></div>
</div>
</div>
<div class="desktop grow">
<main class="margin window active">
<div class="title-bar">
<div class="title-bar-text">
Classic stylesheets 2.0
</div>
</div>
<div class="window-body">
<div class="padding">
<h1>Classic stylesheets for web applications 2.0</h1>
<p><a href="https://github.com/nielssp/classic-stylesheets">Source on GitHub</a></p>
<div class="checkbox-row margin-vertical">
<input id="use-preferred-font" type="checkbox" checked>
<label for="use-preferred-font">
Use theme font if available
<span id="preferred-font">
</span>
</label>
</div>
<section>
<h2>Buttons</h2>
<div>
<div class="example">
<button>OK</button>
</div>
<div class="example">
<button disabled>Disabled</button>
</div>
<div class="example">
<div class="flex-row gap">
<div class="button">Default</div>
<div class="button disabled">Disabled</div>
<div class="button focus">Focus</div>
<div class="button active">Active</div>
</div>
</div>
</div>
</section>
<section>
<h2>Inputs</h2>
<div>
<div class="example">
<input type="text" value="This is a text input"/>
</div>
<div class="example">
<input type="text" value="This input is read-only" readonly/>
</div>
<div class="example">
<input type="text" value="This input is disabled" disabled/>
</div>
<div class="example">
<textarea>This is a textarea</textarea>
</div>
<div class="example">
<div class="flex-row gap">
<div class="input">Default</div>
<div class="input disabled">Disabled</div>
<div class="input readonly">Readonly</div>
<div class="input focus">Focus</div>
</div>
</div>
</div>
</section>
<section>
<h2>Selects</h2>
<div>
<div class="example">
<div class="dropdown">
<select size=1>
<option>Foo</option>
<option>Bar</option>
<option>Baz</option>
</select>
<div class="dropdown-button"></div>
</div>
</div>
<div class="example">
<div class="dropdown">
<select size=1 disabled>
<option>Foo</option>
<option>Bar</option>
<option>Baz</option>
</select>
<div class="dropdown-button"></div>
</div>
</div>
<div class="example">
<select size=4>
<option>Foo</option>
<option>Bar</option>
<option>Baz</option>
</select>
</div>
<div class="example">
<select size=4 disabled>
<option>Foo</option>
<option>Bar</option>
<option>Baz</option>
</select>
</div>
</div>
</section>
<section>
<h2>Checkboxes</h2>
<div>
<div class="example">
<div class="flex-column gap">
<div class="checkbox-row">
<input type="checkbox" id="checkbox1" checked/>
<label for="checkbox1">Checkbox 1</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="checkbox2"/>
<label for="checkbox2">Checkbox 2</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="checkbox3" disabled/>
<label for="checkbox3">Disabled checkbox</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="checkbox4" disabled checked/>
<label for="checkbox4">Disabled checked checkbox</label>
</div>
</div>
</div>
</div>
</section>
<section>
<h2>Radio buttons</h2>
<div>
<div class="example">
<div class="flex-column gap">
<div class="radio-row">
<input type="radio" id="radio1" name="radio1" checked/>
<label for="radio1">Radio button 1</label>
</div>
<div class="radio-row">
<input type="radio" id="radio2" name="radio1"/>
<label for="radio2">Radio button 2</label>
</div>
<div class="radio-row">
<input type="radio" id="radio3" name="radio1"/>
<label for="radio3">Radio button 3</label>
</div>
</div>
</div>
<div class="example">
<div class="flex-column gap">
<div class="radio-row">
<input type="radio" id="radio4" disabled/>
<label for="radio4">Disabled radio button</label>
</div>
<div class="radio-row">
<input type="radio" id="radio5" disabled checked/>
<label for="radio5">Disabled selected radio button</label>
</div>
</div>
</div>
</div>
</section>
<section>
<h2>Sliders</h2>
<div>
<div class="example">
<input type="range"/>
</div>
</div>
</section>
<section>
<h2>Progress bars</h2>
<div>
<div class="example">
<div class="flex-row gap">
<progress value="40" max="100" style="width: 140px;">40 %</progress>
<progress style="width: 140px;">Indeterminate</progress>
</div>
</div>
<div class="example">
<div class="flex-row gap">
<div class="progress-bar" style="width: 140px;" aria-valuemin=0 aria-valuemax=100 aria-valuenow=40>
<div class="progress-bar-value" style="width: 40%;"></div>
</div>
<div class="progress-bar" style="width: 140px;"></div>
</div>
</div>
</div>
</section>
<section>
<h2>Flex layouts</h2>
<div>
<div class="example">
<div class="flex-row gap align-center">
<label for="flex-input-1">Some text</label>
<input id="flex-input-1" type="text" value="An input"/>
</div>
</div>
<div class="example">
<div class="flex-column gap">
<label for="flex-input-2">Some text</label>
<input id="flex-input-2" type="text" value="An input"/>
</div>
</div>
</div>
</section>
<section>
<h2>Grid layouts</h2>
<div>
<div class="example">
<form class="grid gap align-center" style="grid-template-columns: max-content auto;" onsubmit="return false">
<label for="grid-input-1">Some text</label>
<input id="grid-input-1" type="text" value="An input"/>
<label for="grid-input-2">Some other text</label>
<input id="grid-input-2" type="password" value="Another input"/>
<div class="flex-row gap justify-end" style="grid-column-end: span 2;">
<button type="submit">Save</button>
<button>Cancel</button>
</div>
</form>
</div>
</div>
</section>
<section>
<h2>Panels</h2>
<div>
<div class="example">
<div class="raised padding">
Raised
</div>
</div>
<div class="example">
<div class="lowered padding">
Lowered
</div>
</div>
<div class="example">
<div class="raised flex-row">
<div class="lowered padding grow">
Panel
</div>
<div class="lowered padding grow">
Panel
</div>
<div class="lowered padding grow">
Panel
</div>
</div>
</div>
</div>
</section>
<section>
<h2>Field sets</h2>
<div>
<div class="example">
<fieldset class="padding">
Field set
</fieldset>
</div>
<div class="example">
<fieldset class="padding">
<legend>Legend</legend>
<form class="flex-row gap align-center" onsubmit="return false">
<label for="fieldset-input">Save</label>
<input type="text" id="fieldset-input" />
<button type="submit">Save</button>
</form>
</fieldset>
</div>
</div>
</section>
<section>
<h2>Tabs</h2>
<div>
<div class="example">
<div class="tabs">
<menu role="tablist">
<button role="tab" aria-selected="true" aria-controls="tab1">First tab</button>
<button role="tab" aria-controls="tab2">Second tab</button>
<button role="tab" aria-controls="tab3">Third tab</button>
</menu>
<div role="tabpanel" id="tab1" class="padding">
First tab panel
</div>
<div role="tabpanel" id="tab2" hidden class="padding">
Second tab panel
</div>
<div role="tabpanel" id="tab3" hidden class="padding">
Third tab panel
</div>
</div>
</div>
</div>
</section>
<section>
<h2>Scrollbars</h2>
<div>
<div class="example">
<div class="horizontal-scrollbar">
<button>
</button>
<div class="scrollbar-track">
<div class="scrollbar-thumb" style="left: 30%; width: 30%;">
</div>
</div>
<button>
</button>
</div>
</div>
<div class="example">
<div class="vertical-scrollbar" style="height: 100px">
<button>
</button>
<div class="scrollbar-track">
<div class="scrollbar-thumb" style="top: 30%; height: 30%;">
</div>
</div>
<button>
</button>
</div>
</div>
<div class="example">
<div class="lowered" style="overflow: scroll; width: 150px; height: 100px;">
<div style="width: 400px; height: 400px;">
Webkit scrollbars
</div>
</div>
</div>
</div>
</section>
<section>
<h2>Lists</h2>
<div>
<div class="example">
<div class="list" role="listbox">
<div role="option">Green</div>
<div role="option">Orange</div>
<div role="option">Yellow</div>
<div role="option">Blue</div>
<div role="option">Violet</div>
</div>
</div>
</div>
</section>
<section>
<h2>Detailed lists</h2>
<div>
<div class="example">
<div class="list" role="listbox">
<table class="detailed">
<tbody>
<tr role="option">
<td class="icon">
<img src="icons/folder16.png" />
<div class="icon-label">My Documents</div>
</td>
<td></td>
<td>File Folder</td>
<td>2020-07-14 20:28</td>
</tr>
<tr role="option">
<td class="icon">
<img src="icons/folder16.png" />
<div class="icon-label">Program Files</div>
</td>
<td></td>
<td>File Folder</td>
<td>2020-07-14 20:28</td>
</tr>
<tr role="option">
<td class="icon">
<img src="icons/file16.png" />
<div class="icon-label">autoexec.bat</div>
</td>
<td>0KB</td>
<td>MS-DOS Batch File</td>
<td>2020-07-14 20:28</td>
</tr>
<tr role="option">
<td class="icon">
<img src="icons/file16.png" />
<div class="icon-label">Command.com</div>
</td>
<td>92KB</td>
<td>MS-DOS Application</td>
<td>1999-04-23 22:22</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="example">
<div class="list" role="listbox" aria-multiselectable="true">
<table class="detailed">
<thead>
<tr>
<th>Name</th>
<th>Size</th>
<th>Type</th>
<th>Modified</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="icon" role="option">
<img src="icons/folder16.png" />
<div class="icon-label">My Documents</div>
</div>
</td>
<td></td>
<td>File Folder</td>
<td>2020-07-14 20:28</td>
</tr>
<tr>
<td>
<div class="icon" role="option">
<img src="icons/folder16.png" />
<div class="icon-label">Program Files</div>
</div>
</td>
<td></td>
<td>File Folder</td>
<td>2020-07-14 20:28</td>
</tr>
<tr>
<td>
<div class="icon" role="option">
<img src="icons/file16.png" />
<div class="icon-label">autoexec.bat</div>
</div>
</td>
<td>0KB</td>
<td>MS-DOS Batch File</td>
<td>2020-07-14 20:28</td>
</tr>
<tr>
<td>
<div class="icon" role="option">
<img src="icons/file16.png" />
<div class="icon-label">Command.com</div>
</div>
</td>
<td>92KB</td>
<td>MS-DOS Application</td>
<td>1999-04-23 22:22</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
<section>
<h2>Icon grids</h2>
<div>
<div class="example">
<div class="list" style="max-height: 200px;" role="listbox" aria-multiselectable="true">
<div class="icon-grid">
<div class="icon" role="option">
<img src="icons/network.png" />
<div class="icon-label">Network Neighborhood</div>
</div>
<div class="icon" role="option">
<img src="icons/home.png" />
<div class="icon-label">My Documents</div>
</div>
<div class="icon" role="option">
<img src="icons/text.png" />
<div class="icon-label">New Text Document.txt</div>
</div>
<div class="icon" role="option">
<img src="icons/text.png" />
<div class="icon-label">New Text Document (2).txt</div>
</div>
<div class="icon" role="option">
<img src="icons/text.png" />
<div class="icon-label">New Text Document (3).txt</div>
</div>
<div class="icon" role="option">
<img src="icons/image.png" />
<div class="icon-label">New Bitmap Image.bmp</div>
</div>
<div class="icon" role="option">
<img src="icons/image.png" />
<div class="icon-label">New Bitmap Image (2).bmp</div>
</div>
<div class="icon" role="option">
<img src="icons/image.png" />
<div class="icon-label">New Bitmap Image (3).bmp</div>
</div>
<div class="icon" role="option">
<img src="icons/trash-full.png" />
<div class="icon-label">Recycle Bin</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section>
<h2>Menus</h2>
<div>
<div class="example">
<div class="menu" style="width: 200px;">
<div class="title-bar">
<div class="title-bar-text">
Main Menu
</div>
</div>
<ul role="menu">
<li tabindex=0 data-shortcut="Ctrl+S"><u>S</u>ave</li>
<li tabindex=0>Save <u>A</u>s…</li>
<li tabindex=0 aria-haspopup="true">
<u>E</u>dit
<ul role="menu">
<li tabindex=0 data-shortcut="Ctrl+Z" aria-disabled="true"><u>U</u>ndo</li>
<li role="separator"></li>
<li tabindex=0 data-shortcut="Ctrl+X">Cu<u>t</u></li>
<li tabindex=0 data-shortcut="Ctrl+C"><u>C</u>opy</li>
<li tabindex=0 data-shortcut="Ctrl+V" aria-disabled="true"><u>P</u>aste</li>
<li role="separator"></li>
<li tabindex=0 aria-haspopup="true">
<u>A</u>nother Submenu
<ul role="menu">
<li tabindex=0><u>F</u>oo</li>
<li tabindex=0><u>B</u>az</li>
</ul>
</li>
</ul>
</li>
<li role="separator"></li>
<li tabindex=0>A<u>b</u>out</li>
<li tabindex=0><u>Q</u>uit</li>
</ul>
</div>
</div>
<div class="example">
<ul role="menu" style="width: 200px;">
<li tabindex=0>Open</li>
<li tabindex=0>Edit</li>
<li tabindex=0>Print</li>
<li role="separator"></li>
<li tabindex=0 aria-haspopup="true">
Send To
<ul role="menu">
<li tabindex=0>Compressed Folder</li>
<li tabindex=0>Desktop</li>
</ul>
</li>
<li role="separator"></li>
<li tabindex=0>Properties</li>
</ul>
</div>
<div class="example">
<ul role="menubar">
<li tabindex=0 aria-haspopup="true">
<u>F</u>ile
<ul role="menu">
<li tabindex=0>Save</li>
<li tabindex=0>Save As…</li>
<li role="separator"></li>
<li tabindex=0 aria-haspopup="true">
Another Submenu
<ul role="menu">
<li tabindex=0>Foo</li>
<li tabindex=0>Baz</li>
</ul>
</li>
<li role="separator"></li>
<li tabindex=0>Quit</li>
</ul>
</li>
<li tabindex=0 aria-haspopup="true">
<u>E</u>dit
<ul role="menu">
<li tabindex=0 data-shortcut="Ctrl+Z">Undo</li>
<li role="separator"></li>
<li tabindex=0 data-shortcut="Ctrl+X">Cut</li>
<li tabindex=0 data-shortcut="Ctrl+C">Copy</li>
<li tabindex=0 data-shortcut="Ctrl+V">Paste</li>
</ul>
</li>
<li tabindex=0 aria-haspopup="true">
<u>V</u>iew
<ul role="menu">
<li tabindex=0 role="checkbox" aria-checked="true">Status <u>B</u>ar</li>
<li role="separator"></li>
<li tabindex=0 role="radio" aria-checked="false">Ico<u>n</u>s</li>
<li tabindex=0 role="radio" aria-checked="true"><u>L</u>ist</li>
<li tabindex=0 role="radio" aria-checked="false"><u>D</u>etails</li>
<li role="separator"></li>
<li tabindex=0><u>R</u>efresh</li>
</ul>
</li>
<li tabindex=0 class="help-menu" aria-haspopup="true">
Help
<ul role="menu">
<li tabindex=0>Overview</li>
<li role="separator"></li>
<li tabindex=0>About</li>
</ul>
</li>
</ul>
</div>
</div>
</section>
<section>
<h2>Windows</h2>
<div>
<div class="example">
<div class="title-bar active">
<div class="title-bar-text">
Title Bar
</div>
</div>
</div>
<div class="example">
<div class="title-bar active">
<div class="title-bar-buttons">
<button data-minimize></button>
</div>
<div class="title-bar-text">
Title Bar
</div>
<div class="title-bar-buttons">
<button data-close></button>
</div>
</div>
</div>
<div class="example">
<div class="title-bar">
<div class="title-bar-text">
Inactive Title Bar
</div>
<div class="title-bar-buttons">
<button data-close></button>
</div>
</div>
</div>
<div class="example">
<div class="window active" style="max-width: 400px;">
<div class="title-bar">
<div class="title-bar-text">
Window Title
</div>
<div class="title-bar-buttons">
<button data-minimize></button>
<button data-maximize></button>
<button data-close></button>
</div>
</div>
<div class="window-body">
<ul role="menubar">
<li tabindex=0 aria-haspopup="true">
<u>F</u>ile
<ul role="menu">
<li tabindex=0>Save</li>
<li tabindex=0>Save As…</li>
<li role="separator"></li>
<li tabindex=0 aria-haspopup="true">
Another Submenu
<ul role="menu">
<li tabindex=0>Foo</li>
<li tabindex=0>Baz</li>
</ul>
</li>
<li role="separator"></li>
<li tabindex=0>Quit</li>
</ul>
</li>
<li tabindex=0 aria-haspopup="true">
<u>E</u>dit
<ul role="menu">
<li data-shortcut="Ctrl+Z" aria-disabled="true">Undo</li>
<li role="separator"></li>
<li data-shortcut="Ctrl+X" aria-disabled="true">Cut</li>
<li tabindex=0 data-shortcut="Ctrl+C">Copy</li>
<li tabindex=0 data-shortcut="Ctrl+V">Paste</li>
</ul>
</li>
<li tabindex=0 class="help-menu" aria-haspopup="true">
Help
<ul role="menu">
<li tabindex=0>Overview</li>
<li role="separator"></li>
<li tabindex=0>About</li>
</ul>
</li>
</ul>
<div class="padding">
Window body
<hr class="margin-vertical"/>
Window body
</div>
<div class="padding">
Footer
</div>
</div>
</div>
</div>
<div class="example">
<div class="window" style="max-width: 400px;" tabindex=0>
<div class="title-bar">
<div class="title-bar-text">
Inactive Window Title
</div>
<div class="title-bar-buttons">
<button data-close></button>
</div>
</div>
<div class="window-body">
<div class="padding">
Inactive window body
</div>
</div>
</div>
</div>
</div>
</section>
<section>
<h2>Dialogs</h2>
<div>
<div class="example">
<div class="dialog active" style="max-width: 400px;">
<div class="title-bar">
<div class="title-bar-text">
Dialog Title
</div>
</div>
<div class="dialog-body">
<div class="padding">Do you want to delete everything?</div>
<div class="flex-row gap padding justify-end">
<button>Yes</button>
<button>No</button>
</div>
</div>
</div>
</div>
<div class="example">
<div class="dialog" style="max-width: 400px;" tabindex=0>
<div class="title-bar">
<div class="title-bar-text">
Inactive Dialog Title
</div>
</div>
<div class="dialog-body">
<div class="padding">Do you want to delete everything?</div>
<div class="flex-row gap padding justify-end">
<button>Yes</button>
<button>No</button>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</main>
</div>
<script type="text/javascript" src="demo.js"></script>
<script type="module" src="modules/tabs.js"></script>
<script type="module" src="modules/lists.js"></script>
</body>
</html>