-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.html
407 lines (378 loc) · 14.8 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>suCSS Playground</title>
<link rel="stylesheet" href="reset-min.css">
<link rel="stylesheet" href="suCSS-min.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="demo.html">Demo</a></li>
<li><a href="https://github.com/Speyll/suCSS">Get suCSS</a></li>
</ul>
</nav>
<h1>suCSS Demo Page</h1>
<p>Welcome to the world of suCSS!</p>
</header>
<main>
<h2>Headings</h2>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<h2>Paragraphs</h2>
<p>Paragraphs are like a fancy talk. They explain things in long, looong sentences. A paragraph consists
of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected
part of formal writing, used to organize longer prose.</p>
<h2>Blockquotes</h2>
<blockquote>
<p>"Blockquotes are like quotes, but they're big and fancy. They wear tuxedos."</p>
<cite><a href="#!">Said no one, ever.</a></cite>
</blockquote>
<h2>Asides</h2>
<aside>
<h4>This is an aside</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsa cumque numquam natus harum delectus autem, ipsam veritatis eligendi.</p>
</aside>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Rerum eligendi optio ipsa nemo assumenda mollitia inventore neque dolores animi ratione libero qui dolorem, distinctio aut, quae, iste, cumque nihil enim!</p>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dolorum perspiciatis corrupti eaque tempore autem doloremque, placeat, in earum ab maxime commodi tenetur quos provident fugit assumenda, consequatur vero ipsum, et.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing, elit. Molestias, facilis. Dolores rerum omnis, adipisci odit ipsa, autem animi molestiae fugit temporibus fuga dignissimos, commodi et, itaque quo voluptatem recusandae voluptatibus.</p>
<h2>Lists</h2>
<h3>Ordered List</h3>
<ol>
<li>Make coffee</li>
<li>Stare at screen</li>
<li>Panic</li>
<li>Breathe</li>
<li>Google the answer</li>
</ol>
<h3>Unordered List</h3>
<ul>
<li>Eat pizza</li>
<li>Watch cat videos</li>
<li>Dance like no one's watching</li>
<li>Try to cook something fancy</li>
<li>Give up and order takeout</li>
</ul>
<h3>Description List</h3>
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language - the language of the web.</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets - the makeup artist of the web.</dd>
<dt>JavaScript</dt>
<dd>The magician of the web - makes things move and shake!</dd>
</dl>
<h2>Details and Summary</h2>
<details>
<summary>Click to reveal secrets</summary>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum, odio! Odio natus ullam ad
quaerat, eaque necessitatibus, aliquid distinctio similique voluptatibus dicta consequuntur
animi. Quaerat facilis quidem unde eos! Ipsa.</p>
</details>
<h2>Address</h2>
<address>
Written with love by <a href="mailto:[email protected]">Jon Doe</a>.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
<h2>Horizontal rules</h2>
<p>Horizontal rules are like a line in the sand. They mark a separation between two things. Or maybe they're just fancy decorations.</p>
<hr>
<p>See, here's another one. Aren't they cool?</p>
<h2>Tabular data</h2>
<table>
<caption>Table</caption>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
<th>Header 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>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
<td>Row 2 Cell 4</td>
</tr>
<tr>
<td>Row 3 Cell 1</td>
<td>Row 3 Cell 2</td>
<td>Row 3 Cell 3</td>
<td>Row 3 Cell 4</td>
</tr>
<tr>
<td>Row 4 Cell 1</td>
<td>Row 4 Cell 2</td>
<td>Row 4 Cell 3</td>
<td>Row 4 Cell 4</td>
</tr>
<tr>
<td>Row 5 Cell 1</td>
<td>Row 5 Cell 2</td>
<td>Row 5 Cell 3</td>
<td>Row 5 Cell 4</td>
</tr>
</tbody>
</table>
<h2>Code</h2>
<p>Code snippets are like recipes for computers. They tell computers what to do in their own language.</p>
<p><strong>Keyboard input:</strong> <kbd>Cmd</kbd></p>
<p><strong>Inline code:</strong> <code><div>code</div></code></p>
<p><strong>Sample output:</strong> <samp>This is sample output from a computer program.</samp></p>
<h3>Pre-formatted text</h3>
<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>
<h2>Text Sections</h2>
<p>Text sections are like building blocks of a story. They add flavor and style to your web page.</p>
<p><a href="#!">This is a text link</a>.</p>
<p><strong>Strong is used to indicate strong importance.</strong></p>
<p><em>This text has added 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> and <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 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>
<p>The time element: <time datetime="2013-04-06T12:32+00:00">2 weeks ago</time></p>
<h2>Images</h2>
<p>Plain <code><img></code> element</p>
<img src="https://placekitten.com/480/480" alt="Photo of a kitten">
<p><code><figure></code> element with <code><img></code> and <code><figcaption></code> elements</p>
<figure><img src="https://placekitten.com/420/420" alt="Photo of a kitten">
<figcaption>Here is a caption for this image.</figcaption></figure>
<p>Background images<p>
<figure style="background-image:url('https://placekitten.com/300/300'); width:300px; height: 300px;"></figure>
<h2>Progress</h2>
<label for="progress-bar">No attributes (indeterminate)</label>
<progress id="progress-bar">progress</progress>
<label for="progress-30">30%, max 100%</label>
<progress id="progress-30" max="100" value="30">30%</progress>
<h2>Dialog</h2>
<button onclick="document.getElementById('dialog-demo').showModal()">Open</button>
<dialog id="dialog-demo">
<h2>Dialog</h2>
<p>Dialogs are like pop-up books. They can contain stories, questions, or secrets.</p>
<form method="dialog">
<button>Close</button>
</form>
</dialog>
<h2>Form elements</h2>
<form>
<fieldset>
<legend>Input fields</legend>
<p>
<label>Text Input</label>
<input type="text" placeholder="Text Input">
</p>
<p>
<label>Password</label>
<input type="password" placeholder="Type your Password">
</p>
<p>
<label>Web Address</label>
<input type="url" placeholder="https://yoursite.com">
</p>
<p>
<label>Email Address</label>
<input type="email" placeholder="[email protected]">
</p>
<p>
<label>Phone Number</label>
<input type="tel" placeholder="(999) 999-9999">
</p>
<p>
<label>Search</label>
<input type="search" placeholder="Enter Search Term">
</p>
<p>
<label>Number Input</label>
<input type="number" placeholder="Enter a Number">
</p>
<p>
<label>File Input</label>
<input type="file">
</p>
</fieldset>
<fieldset>
<legend>Select menus</legend>
<p>
<label for="select">Select</label>
<select id="select">
<optgroup label="Option Group">
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
</optgroup>
</select>
</p>
<p>
<label for="select_multiple">Select (multiple)</label>
<select id="select_multiple" multiple="multiple">
<optgroup label="Option Group">
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
</optgroup>
</select>
</p>
</fieldset>
<fieldset>
<legend>Checkboxes</legend>
<p>Nested <code>label > input</code></p>
<ul>
<li><label for="checkbox1"><input id="checkbox1" name="checkbox" type="checkbox" checked="checked"> Choice A</label></li>
<li><label for="checkbox2"><input id="checkbox2" name="checkbox" type="checkbox"> Choice B</label></li>
<li><label for="checkbox3"><input id="checkbox3" name="checkbox" type="checkbox"> Choice C</label></li>
</ul>
<p>Sibling <code>input + label</code></p>
<ul>
<li>
<input id="checkbox4" name="checkbox" type="checkbox" checked="checked">
<label for="checkbox4">Choice A</label>
</li>
<li>
<input id="checkbox5" name="checkbox" type="checkbox">
<label for="checkbox5">Choice B</label>
</li>
<li>
<input id="checkbox6" name="checkbox" type="checkbox">
<label for="checkbox6">Choice C</label>
</li>
</ul>
</fieldset>
<fieldset>
<legend>Radio buttons</legend>
<p>Nested <code>label > input</code></p>
<ul>
<li><label for="radio1"><input id="radio1" name="radio" type="radio" checked="checked"> Option 1</label></li>
<li><label for="radio2"><input id="radio2" name="radio" type="radio"> Option 2</label></li>
<li><label for="radio3"><input id="radio3" name="radio" type="radio"> Option 3</label></li>
</ul>
<p>Sibling <code>input + label</code></p>
<ul>
<li>
<input id="radio4" name="radio" type="radio" checked="checked">
<label for="radio4">Option 1</label>
</li>
<li>
<input id="radio5" name="radio" type="radio">
<label for="radio5">Option 2</label>
</li>
<li>
<input id="radio6" name="radio" type="radio">
<label for="radio6">Option 3</label>
</li>
</ul>
</fieldset>
<fieldset>
<legend>Textareas</legend>
<p>
<label for="textarea">Textarea</label>
<textarea id="textarea" rows="8" cols="48" placeholder="Enter your message here"></textarea>
</p>
</fieldset>
<fieldset>
<legend>HTML5 inputs</legend>
<p>
<label for="ic">Color input</label>
<input type="color" id="ic" value="#000000">
</p>
<p>
<label for="in">Number input</label>
<input type="number" id="in" min="0" max="10" value="5">
</p>
<p>
<label for="ir">Range input</label>
<input type="range" id="ir" value="10">
</p>
<p>
<label for="idd">Date input</label>
<input type="date" id="idd" value="1970-01-01">
</p>
<p>
<label for="idm">Month input</label>
<input type="month" id="idm" value="1970-01">
</p>
<p>
<label for="idw">Week input</label>
<input type="week" id="idw" value="1970-W01">
</p>
<p>
<label for="idt">Datetime input</label>
<input type="datetime" id="idt" value="1970-01-01T00:00:00Z">
</p>
<p>
<label for="idtl">Datetime-local input</label>
<input type="datetime-local" id="idtl" value="1970-01-01T00:00">
</p>
<p>
<label for="idl">Datalist</label>
<input type="text" id="idl" list="example-list">
<datalist id="example-list">
<option value="Example #1" />
<option value="Example #2" />
<option value="Example #3" />
</datalist>
</p>
</fieldset>
<fieldset id="forms__action">
<legend>Action buttons</legend>
<p>
<input type="submit" value="<input type=submit>">
<input type="button" value="<input type=button>">
<input type="reset" value="<input type=reset>">
<input type="submit" value="<input disabled>" disabled>
</p>
<p>
<button type="submit"><button type=submit></button>
<button type="button"><button type=button></button>
<button type="reset"><button type=reset></button>
<button type="button" disabled><button disabled></button>
</p>
<p>
<a href="#forms__action" class="button"><a class=button></a>
<a href="#forms__action" class="button" aria-disabled="true"><a class=button aria-disabled=true></a>
</p>
</fieldset>
</form>
</main>
<footer>
<p>
Built by <a target="_blank" rel="noopener noreferrer" href="https://github.com/Speyll/">Speyll</a>. suCSS is licensed under <a target="_blank" rel="noopener" href="https://en.wikipedia.org/wiki/Licence_MIT">MIT</a>.
</p>
</footer>
</body>
</html>