-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.html
214 lines (201 loc) · 5.86 KB
/
test.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
<html>
<head>
<title>Compare Classless CSS frameworks</title>
<link rel="stylesheet" href="${frameworks[currentFramework].cssUrl.toString()}">
<meta name="author" content="Paul Kinlan">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<body>
<h1>Welcome</h1>
<p>I was struggling to make a simple page I was building look decent.
I knew there were stylesheets just used 'semantic html' (like Tufte) and didn't require any special className
(i.e <code><button class="btn-primary">a button</button></code>), however I was struggling to find them.
</p>
<blockquote>I should know this, but I'm looking for a simple CSS stylesheet that would replace the default user agent
and make it look half decent. Google-fu is failing me, all I can find is resets and full frameworks. :\\
</blockquote> — <a href="https://twitter.com/Paul_Kinlan/status/1560769014787411969">Twitter</a>:
<p>Once I found examples of 'class-less CSS', it was a bit of a pain to find them and compare all the different
examples. Hence this page.</p>
<p>This page is designed to collate all the CSS frameworks into one place and let you compare and contrast them.</p>
<p>Here is the list of class-less CSS frameworks that you can checkout:</p>
<ul>
${Object.values(frameworks).map(framework => template`<li><a href="${framework.htmlUrl}">${framework.name}</a> - <a
href="${framework.siteUrl}">homepage</a></li>`)}
</ul>
<p>If you have a framework you would like include, create PR against <a
href="https://github.com/PaulKinlan/classless-css-demo/blob/main/src/frameworks.ts">frameworks.ts</a></p>
<p><a href="https://paul.kinlan.me/">Check out my other site.</a></p>
<hr>
<p>This page is rendered using ${frameworks[currentFramework].name}.</p>
<p>Some of the entries are taken from the layout from <a
href="https://vasanthv.com/stylize.css/demo.html">stylize</a>.
</p>
<h2>Typography:</h2>
<h1>This is a H1 heading</h1>
<h2>This is a H2 heading</h2>
<h3>This is a H3 heading</h3>
<h4>This is a H4 heading</h4>
<h5>This is a H5 heading</h5>
<h6>This is a H6 heading</h6>
<p>This is a paragraph of text. It's my paragraph. I like it a lot.</p>
<br>
<strong>This is a Strong / Bold text</strong>
<br>
<i>This is an Emphasized / Italic text</i>
<br>
This is a <mark>Marked / Highlighted</mark> text
<br>
<small>This is a Small text</small>
<br>
This is a <del>Deleted</del> text
<br>
This is a <ins>Underlined / Inserted</ins> text
<br>
This is a <sub>Subscript</sub> text
<br>
This is a <sup>Superscript</sup> text
<br>
<pre>This is a preformatted text.</pre>
<blockquote>This is a Blockquote.</blockquote>
<samp>This is a sample output.</samp>
<br>
This is the <code><code></code> & <kbd>kbd</kbd>
<br>
<h3>Links & navigation:</h3>
<nav>
<a href="#">Nav Link 1</a>
<a href="#">Nav Link 2</a>
<div class="right">
<a href="#">Nav Link 3</a>
</div>
</nav>
<br>
<br>
<a href="#">Normal link</a>
<hr>
<h2>Lists:</h2>
<ul>
<li>Unordered list item 1</li>
<li>Unordered list item 2</li>
<ul>
<li>Unordered list item 3</li>
</ul>
<li>Unordered list item 4</li>
<li>Unordered list item 5</li>
</ul>
<ol>
<li>Ordered list item 1</li>
<li>Ordered list item 2</li>
<ol>
<li>Ordered list item 3</li>
</ol>
<li>Ordered list item 4</li>
<li>Ordered list item 5</li>
</ol>
<hr>
<h2>Form:</h2>
<fieldset>
<legend>This is a legend on fieldset</legend>
<form>
<br>
<label>Label:</label>
<input type="text" placeholder="Text field">
<br>
<label>Select box:</label>
<select>
<optgroup label="Option group">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</optgroup>
</select>
<br>
<label>Numeric Field:</label>
<input type="number" placeholder="Number" value="0">
<br>
<label>Checkboxes:</label>
<label>Option 1 <input type="checkbox" checked=""></label>
<label>Option 2 <input type="checkbox"></label>
<br>
<label>Radio buttons:</label>
<label>Yes <input type="radio" checked=""></label>
<label>No <input type="radio"></label>
<br>
<textarea placeholder="Textarea" rows="3" cols="50"></textarea>
<br>
<input type="submit" value="Submit button">
</form>
</fieldset>
<br>
<button>Button</button>
<a href="javascript:void(0)" role="button">Anchor role=button</a>
<input type="button" value="Input type=button">
<button disabled="">Button</button>
<br>
<label>Progress bar</label>
<progress value="22" max="100"></progress>
<hr>
<h2>Table:</h2>
<table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Username</th>
<th>Location</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<td>Vasanth</td>
<td>@vsnthv</td>
<td>Chennai, India</td>
</tr>
<tr>
<th>2</th>
<td>John</td>
<td>@john</td>
<td>USA</td>
</tr>
<tr>
<th>3</th>
<td>Chan</td>
<td>@chan</td>
<td>Hong Kong</td>
</tr>
</tbody>
</table>
<p>Table with <code>border=1</code></p>
<table border="1">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Username</th>
<th>Location</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<td>Vasanth</td>
<td>@vsnthv</td>
<td>Chennai, India</td>
</tr>
<tr>
<th>2</th>
<td>John</td>
<td>@john</td>
<td>USA</td>
</tr>
<tr>
<th>3</th>
<td>Chan</td>
<td>@chan</td>
<td>Hong Kong</td>
</tr>
</tbody>
</table>
</body>
</html>