-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
387 lines (352 loc) · 14.3 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
<!doctype html>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-T1DS3R5LFM"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-T1DS3R5LFM');
</script>
<title>Terminal.css | Semantic styles for the simple web</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="A custom set of semantic styles derived from Terminal Theme for Hugo you always wanted." />
<meta name="author" content="Radek Kozieł (@panr)" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
<!-- OG data -->
<meta property="og:locale" content="en" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Terminal.css">
<meta property="og:description" content="A custom set of semantic styles derived from Terminal Theme for Hugo you always wanted." />
<meta property="og:url" content="https://panr.github.io/terminal-css/" />
<meta property="og:site_name" content="Terminal.css" />
<meta property="og:image" content="https://panr.github.io/terminal-css/og-image.png">
<link rel="shortcut icon" href="./favicon.png">
<title>Terminal.css</title>
<link href="./styles/components/font.css" rel="stylesheet" id="componentsFont" />
<link href="./styles/components/variables.css" rel="stylesheet" id="componentsVariables" />
<link href="./styles/components/heading.css" rel="stylesheet" id="componentsHeading" />
<link href="./styles/base.css" rel="stylesheet" />
<link href="./styles/site.css" rel="stylesheet" />
</head>
<body style="padding: 20px">
<dialog id="presetModal" class="dialog">
<h2>Welcome!</h2>
<p>Want to submit your own preset? <a href="https://github.com/panr/terminal-css" target="_blank">Go ahead!</a></p>
<form method="dialog">
<button autofocus>Close</button>
</form>
</dialog>
<dialog id="typeModal" class="dialog">
<div>
<h2>Choose the right type of the file</h2>
<p>
<strong>Standalone</strong> — includes FireCode font (v6.2.0) via CDN (cdn.jsdelivr.net)<br>
<strong>Terminal Theme</strong> — is prepared for Terminal Theme and uses built-in FiraCode from the theme.
</p>
</div>
<form method="dialog">
<button autofocus>Close</button>
</form>
</dialog>
<main style="width: 1024px; max-width: 100%;">
<h1 id="headline"><a href="/" style="color: inherit;">Terminal.css</a></h1>
<p>A stupid simple, custom set of semantic styles derived from <a href="https://github.com/panr/hugo-theme-terminal" target="_blank">Terminal</a> theme that you always wanted.</p>
<form id="settings">
<div class="settings-wrapper">
<div class="settings-header">
Presets
<span class="dialog-trigger" onclick="presetModal.showModal()">[?]</span>
</div>
<div class="settings-row">
<div class="settings-cell" style="flex-direction: column;">
<div class="settings-input">
<select name="presets" id="presets"></select>
</div>
</div>
</div>
<div class="settings-header">Styling</div>
<div class="settings-row">
<div class="settings-col">
<div class="settings-cell">
<div class="settings-label">Background</div>
<div class="settings-input"><input type="color" id="background" name="background" oninput="setVariable('--background', this.value)"></div>
</div>
<div class="settings-cell">
<div class="settings-label">Foreground</div>
<div class="settings-input"><input type="color" id="foreground" name="foreground" oninput="setVariable('--foreground', this.value)"></div>
</div>
<div class="settings-cell">
<div class="settings-label">Accent</div>
<div class="settings-input"><input type="color" id="accent" name="accent" oninput="setVariable('--accent', this.value)"></div>
</div>
</div>
<div class="settings-col">
<div class="settings-cell">
<div class="settings-label">Font Size</div>
<div class="settings-input"><input type="text" id="fontSize" name="fontSize" oninput="setVariable('--font-size', this.value)"></div>
</div>
<div class="settings-cell">
<div class="settings-label">Line Height</div>
<div class="settings-input"><input type="text" id="lineHeight" name="lineHeight" oninput="setVariable('--line-height', this.value)"></div>
</div>
<div class="settings-cell">
<div class="settings-label">Radius</div>
<div class="settings-input"><input type="number" id="radius" name="radius" min="0" max="8" value="0" oninput="setVariable('--radius', this.value + 'px')"></div>
</div>
</div>
</div>
<div class="settings-header">Options</div>
<div class="settings-row">
<div class="settings-col">
<div class="settings-cell">
<div class="settings-label">Heading Style</div>
<div class="settings-input">
<select name="headingStyle">
<option name="oneSize" value="oneSize">One size</option>
<option name="default" value="default">Browser's default</option>
</select>
</div>
</div>
</div>
<div class="settings-col">
<div class="settings-cell">
<div class="settings-label">
Type
<span class="dialog-trigger" onclick="typeModal.showModal()">[?]</span>
</div>
<div class="settings-input">
<select name="type">
<option name="standalone" value="standalone">Standalone</option>
<option name="terminal" value="terminal">Terminal Theme</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div id="terminal-info" hidden style="margin: 20px 0; padding: 10px;">
Remember to put all the downloaded files directly into <code>/static/</code> folder to make it work, like this:<br>
- <code>/static/terminal.css</code><br>
- <code>/static/favicon.png</code><br>
- <code>/static/og-image.png</code><br>
</div>
<div>
<div style="margin: 20px 0;">
<label style="display: inline-block;"><input id="assets" type="checkbox" name="assets"> Generate <strong>favicon</strong> and <strong>og-image</strong></label>
</div>
<div id="assets-preview" hidden>
<svg id="template-favicon" width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" style="width: 50px; height: 50px;"><rect width="50" height="50" x="0" y="0" fill="var(--accent)" /></svg>
<svg id="template-og-image" width="1200" height="630" viewBox="0 0 1200 630" fill="none" xmlns="http://www.w3.org/2000/svg" style="width: 400px; height: 210px; max-width: 100%;">
<rect width="1200" height="630" fill="var(--background)"/>
<rect x="20" y="228" width="568" height="174" fill="var(--accent)"/>
<g>
<rect x="608" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="645" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="682" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="719" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="756" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="793" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="830" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="867" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="904" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="941" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="978" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="1015" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="1052" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="1089" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="1126" y="228" width="17" height="174" fill="var(--accent)"/>
<rect x="1163" y="228" width="17" height="174" fill="var(--accent)"/>
</g>
</svg>
</div>
<button id="download" type="submit">Download Terminal.css</button>
<button class="copy-preset" data-output="json">Copy preset as JSON</button>
<button class="copy-preset" data-output="css">Copy preset as CSS</button>
</div>
</form>
<hr>
<div>
<section style="border: none;">
<h2 id="headings">
Headings<a href="#headings" class="hanchor" arialabel="Anchor">#</a>
</h2>
<p>
The following HTML <code><h1></code>—<code><h6></code>
elements represent six levels of section headings.
<code><h1></code> is the highest section level while
<code><h6></code> is the lowest.
</p>
<h1 id="h1">Heading 1</h1>
<h2 id="h2">Heading 2</h2>
<h3 id="h3">Heading 3</h3>
<h4 id="h4">Heading 4</h4>
<h5 id="h5">Heading 5</h5>
<h6 id="h6">Heading 6</h6>
</section>
<section>
<h2 id="paragraph">
Paragraphs<a href="#paragraph" class="hanchor" arialabel="Anchor">#</a>
</h2>
<p>
This HTML element represents a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields.
</p>
<p>
Paragraphs are block-level elements, and notably will automatically close if another block-level element is parsed before the closing tag
</p>
</section>
<section>
<h2 id="images">
Images<a href="#images" class="hanchor" arialabel="Anchor">#</a>
</h2>
<img src="./terminal-css.png" alt="Terminal.css preview" loading="lazy" >
<h3>Figures with caption</h3>
<figure style="margin: 10px 0;">
<img src="./terminal-css.png" alt="Terminal.css preview" loading="lazy" >
<figcaption>Terminal.css preview</figcaption>
</figure>
</section>
<section>
<h2 id="blockquotes">
Blockquotes<a href="#blockquotes" class="hanchor" arialabel="Anchor">#</a>
</h2>
<blockquote>
<p>
The blockquote element represents content that is quoted from
another source, optionally with a citation which must be within a
<code>footer</code> or <code>cite</code> element, and optionally
with in-line changes such as annotations and abbreviations.
</p>
</blockquote>
</section>
<section>
<h2 id="buttons">
Buttons and links<a href="#buttons" class="hanchor" arialabel="Anchor">#</a>
</h2>
<button>Button</button>
<a href="">Link</a>
</section>
<section>
<h2 id="tables">
Tables<a href="#tables" class="hanchor" arialabel="Anchor">#</a>
</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bob</td>
<td>27</td>
</tr>
<tr>
<td>Alice</td>
<td>23</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2 id="forms">
Forms<a href="#forms" class="hanchor" arialabel="Anchor">#</a>
</h2>
<fieldset>
<input type="text" placeholder="Type something" /><br />
<input type="number" placeholder="Insert number" /><br />
<input type="text" value="Input value" /><br />
<select>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select><br />
<textarea placeholder="Insert a comment..."></textarea><br />
<label><input type="checkbox" /> I understand<br /></label>
<button type="submi">Submit</button>
</fieldset>
</section>
<section>
<h2 id="code-blocks">
Code Blocks<a href="#code-blocks" class="hanchor" arialabel="Anchor">#</a>
</h2>
<pre><code>pre {
display: block;
font-family: monospace;
white-space: pre;
margin: 1em 0;
}</code></pre>
</section>
<section>
<h2 id="list-types">
List Types<a href="#list-types" class="hanchor" arialabel="Anchor">#</a>
</h2>
<h3 id="ordered-list">
Ordered List<a href="#ordered-list" class="hanchor" arialabel="Anchor">#</a>
</h3>
<ol>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ol>
<h3 id="unordered-list">
Unordered List<a href="#unordered-list" class="hanchor" arialabel="Anchor">#</a>
</h3>
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
<h3 id="nested-list">
Nested list<a href="#nested-list" class="hanchor" arialabel="Anchor">#</a>
</h3>
<ul>
<li>
Item
<ul>
<li>Nested item</li>
<li>Nested item</li>
<li>Nested item</li>
</ul>
</li>
<li>
Item
<ul>
<li>Nested item</li>
<li>Nested item</li>
<li>Nested item</li>
</ul>
</li>
</ul>
</section>
<section>
<h2 id="other-elements--abbr-sub-sup-kbd-mark">
Other Elements — abbr, sub, sup, kbd, mark<a href="#other-elements--abbr-sub-sup-kbd-mark" class="hanchor"
arialabel="Anchor">#</a>
</h2>
<p>Text<sup>sup</sup></p>
<p>Text<sub>sub</sub></p>
<p><abbr title="Abbreviation">Abbr.</abbr></p>
<p><kbd>Kbd</kbd></p>
<p><mark>Marked</mark></p>
</section>
</div>
</main>
<footer style="border-top: 2px solid var(--accent); margin-top: 40px; padding-top: 20px;">
Made by <a href="https://radoslawkoziel.pl" target="_blank">panr</a>. Derived from <a href="https://github.com/panr/hugo-theme-terminal" target="_blank">Terminal</a> theme. Source code on <a href="https://github.com/panr/terminal-css/" target="_blank">Github</a>.
</footer>
<script defer type="module" src="./script.js"></script>
</body>
</html>