-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkitchen-sink.html
447 lines (434 loc) · 17.9 KB
/
kitchen-sink.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Minimal CSS library to let you focus on functionality">
<title>Keep It Simple CSS - Kitchen Sink Test</title>
<!--
See https://stackoverflow.com/questions/45321043/preload-css-file-not-supported-on-firefox-and-safari-mac
-->
<link href="kis.css" as="style" rel="preload">
<link href="kis.css" rel="stylesheet">
<!-- stuff that we know a priori to exist in the app -->
<link rel="preload" href="assets/branding/kiscss.svg.png" as="image">
<link rel="preload" href="assets/fonts/fontello.woff2" as="font" crossorigin>
<style type="text/css">.intro{padding:10px;max-width:900px;margin:4rem auto}@font-face{font-family:fontello;src:url(assets/fonts/fontello.eot);src:url(assets/fonts/fontello.eot#iefix) format("embedded-opentype"),url(assets/fonts/fontello.woff2) format("woff2"),url(assets/fonts/fontello.woff) format("woff"),url(assets/fonts/fontello.ttf) format("truetype"),url(assets/fonts/fontello.svg#plugin) format("svg");font-weight:400;font-style:normal}.icon-puzzle:before{content:"\e800"}.icon-login:before{content:"\e801"}.icon-logout:before{content:"\e802"}.icon-user-add:before{content:"\e803"}.icon-user-remove:before{content:"\e804"}.icon-cog:before{content:"\e805"}.icon-doc:before{content:"\e806"}.icon-docs:before{content:"\e807"}.icon-leaf:before{content:"\e808"}.icon-paper-plane:before{content:"\e809"}.icon-mobile:before{content:"\e80a"}.icon-picture:before{content:"\e80b"}.icon-help:before{content:"\e80c"}.icon-globe:before{content:"\e80d"}.icon-ellipsis:before{content:"\e80e"}.icon-ellipsis-vert:before{content:"\e80f"}.icon-menu:before{content:"\e810"}.icon-list:before{content:"\e811"}.icon-doc-remove:before{content:"\e812"}.icon-doc-add:before{content:"\e813"}.icon-link:before{content:"\e814"}.icon-cloud:before{content:"\e815"}.icon-home:before{content:"\e816"}.icon-heart:before{content:"\e817"}.icon-sort:before{content:"\e818"}.icon-videocam:before{content:"\e819"}.icon-play:before{content:"\e81a"}.icon-stop:before{content:"\e81b"}.icon-pause:before{content:"\e81c"}.icon-spin-1:before{content:"\e81d"}.icon-spin-2:before{content:"\e81e"}.icon-spin-3:before{content:"\e81f"}</style></head>
<body>
<div id="root">
<nav>
<a href="index.html" class="brand">
<img class="logo" alt="logo" src="assets/branding/kiscss.svg.png">
</a>
<input id="nav" type="checkbox" class="show">
<label for="nav" class="burger icon-menu"></label>
<ul class="menu">
<li>
<a href="index.html" class="icon-home">Home</a>
</li>
<li>
<a href="https://github.com/million-views/kis.css"
target="_blank"
rel="noreferrer"
class="icon-puzzle">GitHub</a>
</li>
<li>
<a href="https://github.com/million-views/kis.css/blob/master/README.md"
class="icon-help">Documentation</a>
</li>
</ul>
</nav>
<main class="intro">
<h1>Keep it Simple CSS</h1>
<br />
<p>
All in one page to test kis.css behavior across device types. Kitchen sink
test also exists to identify elements that still need to be worked on...
</p>
<p>
NOTE: this is a work in progress and elements that have not been worked on
will look ugly. The point of this test is to find those areas that still
need kiscss ;-)
</p>
<hr />
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<p>
This page is styled using the kis.css that was generated by webpack. The setup required
to produce this file is stupendously complex compared to whipping it out using gulp.
We still pursue this path because for better or worse webpack seems to have become
the 'standard' for building reactive web applications, and one of the objectives for
kis.css is to easily integrate into the build processes built using webpack. There is a
lot of knowledge embedded into this project in trying to wrangle webpack into submission
to produce a css file and the webpage to render fast. If all of the foregoing sounds
like gibberish then so be it. I just didn't like to go the lorem ipsum way in order
to test the typography of a paragraph. But then you never know the same paragraph may
appear in the documentation. So you might as well get used to it ;-)
</p>
<p>This is an <span>inline element</span>.</p>
<p>This is an <q>inline quotation</q>.</p>
<blockquote>
<p>A block quotation is a quotation that is offset from the main text as a paragraph, or block of text.</p>
<cite>Quote citation</cite>
</blockquote>
<p><a href="#">This is a text link with a <strong>strong element</strong></a></p>
<p><strong>Strong</strong> is used to indicate strong importance.</p>
<p>This text has added <em>emphasis</em>.</p>
<p>The <b>b element</b> is stylistically different text from normal text, without any special importance.</p>
<p>The <i>i element</i> is text that is offset from the normal text.</p>
<p>The <u>u element</u> is text with an unarticulated, though explicitly rendered, non-textual annotation.</p>
<p>
<del>This text is deleted.</del>
</p>
<p>
<ins>This text is inserted.</ins>
</p>
<p><s>This text has a strikethrough</s>.</p>
<p>Superscript<sup>®</sup>.</p>
<p>Subscript for things like H<sub>2</sub>O.</p>
<p>
<small>This small text is small for for fine print, etc.</small>
</p>
<p>Abbreviation: <abbr title="HyperText Markup Language">HTML</abbr></p>
<p><q cite="https://developer.mozilla.org/en-US/docs/HTML/Element/q">This text is a short inline
quotation.</q></p>
<p><cite>This is a citation.</cite></p>
<p>The <dfn>dfn element</dfn> indicates a definition.</p>
<p>The
<mark>mark element</mark>
indicates a highlight.
</p>
<p>The <var>variable element</var>, such as <var>x</var> = <var>y</var>.</p>
<address>
2518 W Armitage Ave<br/>
Chicago IL 60647
</address>
<p>The time element:
<time datetime="2013-04-06T12:32+00:00">2 weeks ago</time>
</p>
<dl>
<dt>Definition List Title</dt>
<dd>This is a definition list division.</dd>
</dl>
<ol>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ol>
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
<ul class="is-unstyled">
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
<li>
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
</li>
</ul>
<details>
<summary>Summary (click for details)</summary>
<p>Details</p>
</details>
<hr>
<details>
<summary>
<i>Form ever follows function. This is the law? </i>
<a href="https://www.smashingmagazine.com/2013/08/semantic-css-with-intelligent-selectors/">
Semantic CSS with intelligent selectors</a>
</summary>
<p>It's because the details block is html5. If you want to modify it your best bet is using html5. </p>
</details>
<hr>
<table>
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
<td>Row 1 Cell 3</td>
<td>Row 1 Cell 4</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
</tr>
</thead>
<tbody>
<tr>
<th>Row 1</th>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
<td>Row 1 Cell 3</td>
</tr>
<tr>
<th>Row 2</th>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
</tr>
<tr>
<th>Row 3</th>
<td>Row 3 Cell 1</td>
<td>Row 3 Cell 2</td>
<td>Row 3 Cell 3</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
</tr>
</tfoot>
</table>
<p>To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd></p>
<p><code><div>code</div></code></p>
<p><a href="#">This is a link with <code>code</code></a></p>
<p>
<samp>This is sample output from a computer program.</samp>
</p>
<pre>
P R E F O R M A T T E D T E X T
! " # $ % & ' ( ) * + , - . /
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
@ A B C D E F G H I J K L M N O
P Q R S T U V W X Y Z [ \ ] ^ _
` a b c d e f g h i j k l m n o
p q r s t u v w x y z { | } ~
</pre>
<code>
Difference between <code></code> and
its siblings for monospace font is that 'code'
'pre' for white-space instead of 'pre-wrap'.
This ensures code preserves line breaks and
also eliminates the need for wrapping in <pre></pre>.
The whole point of kis.css is to minimize markup
and be semantic.
The code below is indented using white space
and contains line breaks which should be preserved.
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
When using 'code' tags you are responsible for
ensuring the text fits to the screen width. A
horizontal scroll bar will appear if the text
won't fit. If you stay within 70 characters then
you would do fine on most screen sizes.
NOTE: VS Code can't grok large html files (last
I checked) and might mess up your 'pre' formatted
text indents. If you hit that bug then turn off
format html option for the file you are working on.
</code>
<figure>
<img src="assets/images/placeholder.svg" alt="Image alt text">
</figure>
<figure>
<img src="assets/images/placeholder.svg" alt="Image alt text">
<figcaption>Here is a caption for this image.</figcaption>
</figure>
<p>
<audio controls="">audio</audio>
</p>
<figure>
<video controls="" poster="assets/images/placeholder.svg">video</video>
</figure>
<p>
<progress value="50" max="100">progress</progress>
</p>
<p>
<progress>progress</progress>
</p>
<p style="display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 2rem;">
<meter min="0" max="100" low="25" high="75" optimum="100" value="10"></meter>
<meter min="0" max="100" low="25" high="75" optimum="100" value="50"></meter>
<meter min="0" max="100" low="25" high="75" optimum="100" value="80"></meter>
</p>
<p>
<button>Button</button>
<button type="button">Button</button>
<button type="submit">Submit</button>
<button type="reset">Reset</button>
<a role="button">Link as button</a>
<button type="button" disabled>Disabled</button>
</p>
<form>
<fieldset>
<legend>Input fields (and there are none)</legend>
</fieldset>
<p>
<label for="text">Text Input</label>
<input type="text" id="text" name="text" placeholder="Enter text" required />
</p>
<p>
<label for="disabled">Disabled Input</label>
<input type="text" id="disabled" name="disabled" placeholder="Enter text" disabled />
</p>
<p>
<label for="read-only">Read-only Input</label>
<input type="text" id="read-only" name="readonly" placeholder="Enter text" readonly />
</p>
<p>
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="••••••••" />
</p>
<p>
<label for="url">Web Address</label>
<input type="url" id="url" name="url" placeholder="http://yoursite.com" />
</p>
<p>
<label for="email">Email Address</label>
<input type="email" id="email" name="email" placeholder="name@email.com" />
</p>
<p>
<label for="tel">Phone Number</label>
<input type="tel" id="tel" name="tel" placeholder="(999) 999-9999" />
</p>
<p>
<label for="search">Search</label>
<input type="search" id="search" name="search" placeholder="Enter search term" />
</p>
<p>
<label for="number">Number Input</label>
<input type="number" id="number" name="number" placeholder="1234" />
</p>
<p>
<label for="date">Date Input</label>
<input type="date" id="date" name="date" placeholder="mm/dd/yyyy" />
</p>
<p>
<label for="time">Time Input</label>
<input type="time" id="time" name="time" placeholder="--:-- --" />
</p>
<p>
<label for="month">Month Input</label>
<input type="month" id="month" name="month" placeholder="--------- ----" />
</p>
<p>
<label for="week">Week Input</label>
<input type="week" id="week" name="week" placeholder="Week --, ----" />
</p>
<p>
<label for="datetime">Datetime Local Input</label>
<input type="datetime-local" id="datetime" name="datetime" placeholder="mm/dd/yyyy, --:-- --" />
</p>
<p>
<label for="textarea">Text area</label>
<textarea id="textarea" name="textarea" rows="3" placeholder="Text area"></textarea>
</p>
<p>
<label for="select">Select</label>
<select id="select" name="select">
<optgroup label="Option Group">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</optgroup>
</select>
</p>
<p>
<label for="multi-select">Multi-select</label>
<select multiple id="multi-select">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</p>
<p>
<label for="datalist">Datalist</label>
<input list="options" id="datalist" name="datalist" placeholder="Enter option" />
<datalist id="options">
<option value="Option 1">
<option value="Option 2">
<option value="Option 3">
</datalist>
</p>
<fieldset>
<legend>Fieldset legend</legend>
<div>
<input type="checkbox" name="day" id="check-option1" value="option1"/>
<label for="check-option1">Option 1</label>
</div>
<div>
<input type="checkbox" name="day" id="check-option2" value="option2"/>
<label class="checkable" for="check-option2">Option 2</label>
</div>
<div>
<input type="checkbox" name="day" id="check-option3" value="option3" class="indeterminate" />
<label class="checkable" for="check-option3">Option 3</label>
</div>
<div>
<input type="checkbox" name="day" id="check-option4" value="option4" disabled/>
<label class="checkable" for="check-option4">Option 4</label>
</div>
</fieldset>
<fieldset>
<legend>Fieldset legend</legend>
<div>
<input type="radio" name="day" id="radio-option1" value="option1"/>
<label class="checkable" for="radio-option1">Option 1</label>
</div>
<div>
<input type="radio" name="day" id="radio-option2" value="option2"/>
<label class="checkable" for="radio-option2">Option 2</label>
</div>
<div>
<input type="radio" name="day" id="radio-option3" value="option3" disabled/>
<label class="checkable" for="radio-option3">Option 3</label>
</div>
</fieldset>
<p>
<label for="range">Range</label>
<input type="range" id="range" name="range" min="100" max="500" step="10" />
</p>
<p>
<label for="range-disabled">Disabled Range</label>
<input type="range" id="range-disabled" name="range" min="100" max="500" step="10" disabled />
</p>
<p>
<label for="file">Upload File</label>
<input type="file" id="file" name="file" />
</p>
<p>
<label for="color">Color</label>
<input type="color" id="color" name="color" />
</p>
<p>
<output name=output for="val1 val2">0</output>
</p>
<p>
<input type="submit" value="Submit" />
<input type="button" value="Button" />
<input type="reset" value="Reset" />
<input type="submit" value="Disabled" disabled />
</p>
</form>
</main>
</div>
</body>
</html>