-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
231 lines (213 loc) · 10.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>gyr.css</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Gyr | Classless CSS" />
<meta name="keywords" content="hvlck,gyr,css,stylesheet,classless stylesheet" />
<meta name="author" content="hvlck" />
<link rel="stylesheet" href="./src/index.css" type="text/css" />
</head>
<body>
<header>
<nav>
<a href="#demo">Preview</a>
<a href="https://github.com/hvlck/gyr-css">Source</a>
</nav>
<h1>Gyr</h1>
<p>
Gyr automatically styles many common HTML elements with a
simple, elegant theme. Just place the link in your
<code>head</code> tag, and you're good to go!
</p>
<p>Gyr is fairly small and <a href="https://bundlephobia.com/result?p=gyr-css@latest">lightweight</a>. <a href="https://github.com/hvlck/gyr-css">Get started here</a> or scroll down for a demo.</p>
<p>Dark mode can be toggled on/off using your system preferences, or the browser theme on Firefox. Motion can be disabled by turning on your device's reduced motion settings.</p>
</header>
<hr>
<main id="demo">
<h1>H1 header</h1>
<h2>H2 header</h2>
<h3>H3 header</h3>
<h4>H4 header</h4>
<h5>H5 header</h5>
<h6>H6 header</h6>
<a href="#">A Link for Demonstration Purposes</a>
<p><i>Italicized</i> text.</p>
<p><b>Bold</b> text.</p>
<p><sup>Superscript</sup> text.</p>
<p><sub>Subscript</sub> text.</p>
<p><small>Small</small> text.</p>
<p><del>Deleted</del> text.</p>
<p><mark>Marked</mark> text.</p>
<p>
Laurem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</p>
<details>
<summary>An example <code>details</code>/<code>summary</code></summary>
<p>With some hidden text inside, too!</p>
</details>
<h2>Tables</h2>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Item 1</td>
<td>Item 2</td>
<td>Item 3</td>
</tr>
<tr>
<td>Item 1</td>
<td>Item 2</td>
<td>Item 3</td>
</tr>
<tr>
<td>Item 1</td>
<td>Item 2</td>
<td>Item 3</td>
</tr>
</tbody>
</table>
<h2>Forms</h2>
<form>
<fieldset>
<legend><code>Fieldset</code> and <code>legend</code></legend>
<button>Normal <code>button</code></button>
<select id="select-example">
<optgroup label="Default">
<option>Option one</option>
<option selected="selected">Option two</option>
<option disabled>Disabled option</option>
</optgroup>
</select>
<br>
<input id="inp-button-example" type="button" value="Input Button Element" />
<div>
<input id="checkbox-example" type="checkbox" checked />
<label>Example
<code><input type="checkbox" /></code> element<br /></label>
</div>
<input id="inp-submit-example" type="submit" />
</fieldset>
<div>
<label for="inp-num-example">Pick a number, any number (negative numbers throw an error - check it out!)</label>
</div>
<input id="inp-num-example" type="number" placeholder="42" min="0" />
<input id="inp-reset-example" type="reset" />
<br>
<label>Example
<code><input type="radio" /></code> element</label>
<div>
<input id="radio-one" name="radio" type="radio" checked />
<label for="radio-one">Option 1</label>
</div>
<div>
<input id="radio-two" name="radio" type="radio" />
<label for="radio-two">Option 2</label>
</div>
<div>
<input id="radio-three" disabled name="radio" type="radio" />
<label for="radio-three">Option 3 (Disabled)</label>
</div>
<label for="txtarea">Example <code><textarea /></code> element</label>
<textarea id="txtarea" placeholder="Type something already!"></textarea>
</form>
<h2>Dialogs</h2>
<p><b>Warning</b>: may not work on all browsers (esp. Safari).</p>
<button onclick="this.nextElementSibling.showModal()">Open dialog</button>
<dialog>
<header>
<h2>Welcome to <i>the</i> <code>dialog</code>.</h2>
</header>
<p>Here you'll find quite a lot of information.</p>
<p>For instance:</p>
<p>These are the instructions to install <code>gyr-css</code>, again:</p>
<pre><code><link rel="stylesheet" href="https://unpkg.com/gyr-css@latest/dist/index.css" type="text/css" /></code></pre>
<p>Laurem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur.
</p>
<blockquote>Same thing again, this time as a quote: "Laurem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur."
<cite>Marcus Aurelius</cite>
</blockquote>
<p>"Laurem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur."
</p>
<form method="dialog">
<button>Close</button>
</form>
</dialog>
<h2>Unordered Lists</h2>
<ul>
<li>Unordered List Item 1</li>
<li>Unordered List Item 2</li>
<ul>
<li>Nested list item 1</li>
<li>Nested list item 2</li>
</ul>
<li>Unordered List Item 4</li>
</ul>
<h2>Ordered Lists</h2>
<ol>
<li>Ordered List Item 1</li>
<ul>
<li>Nested list item 1</li>
<li>Nested list item 2</li>
</ul>
<li>Ordered List Item 2</li>
<li>Ordered List Item 3</li>
<ol>
<li>Nested list item 1</li>
<li>Nested list item 2</li>
</ol>
<li>Ordered List Item 4</li>
</ol>
<p><code>console.log("Awesome!");</code></p>
<p><kbd>KBD</kbd></p>
<h2>Other Elements</h2>
<p><code><HR></code> Element</p>
<hr />
<h2>Blockquotes</h2>
<blockquote>
"Laurem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur."
<cite>Placeholder Text</cite>
</blockquote>
</main>
<footer>
<a title="Back to Top" href="#">Back to Top</a>
<a href="https://github.com/hvlck/gyr-css">GitHub</a>
<a href="https://www.npmjs.com/package/gyr-css">NPM</a>
<a href="https://www.jsdelivr.com/package/npm/gyr-css">JSDelivr</a>
<a href="https://unpkg.com/browse/gyr-css@latest/">Unpkg</a>
</footer>
</body>
</html>