-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
314 lines (251 loc) · 11.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Aether CSS</title>
<meta name="description" content="aether-css"/>
<meta charSet="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta property="og:title" content="Aether CSS"/>
<meta property="og:description" content="aether-css"/>
<meta property="og:locale" content="en_US"/>
<link rel="shortcut icon" type="image/x-icon" href="./icon.png"/>
<link rel="stylesheet" href="./aether.css"/>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap" rel="stylesheet">
</head>
<body style="transition: all 1s;">
<!--
<header>Header – Aether CSS</header>
-->
<main>
<h1>Aether CSS</h1>
<p>
<a onClick="changeBackground()">Change background</a>
|
<a href="https://github.com/tomsoderlund/aether-css" target="_blank" rel="noopener noreferrer">Get the source code</a>
</p>
<h2>Buttons in a Flexbox</h2>
<div class="flex">
<button>Primary</button>
<button class="secondary">Secondary</button>
<button disabled>Disabled</button>
</div>
<button class="secondary autosize">Autosize</button>
<h2>Links</h2>
<p>Did you know that <a href="https://github.com/tomsoderlund/aether-css" target="_blank" rel="noopener noreferrer">this is a link</a>?</p>
<hr/>
<h2>Forms</h2>
<form>
<div class="fieldset">
<label for="textField">Placeholder:</label>
<input id="textField" type="text" autocomplete="name" placeholder="Your name" required />
</div>
<div class="fieldset">
<label for="textField">Text:</label>
<input id="textField" type="text" autocomplete="name" value="Your name" />
</div>
<div class="fieldset">
<label for="readonlyField">Read only:</label>
<input id="readonlyField" type="text" value="Read only" readonly />
</div>
<div class="fieldset">
<label for="disabledField">Disabled:</label>
<input id="disabledField" type="text" value="Disabled" disabled />
</div>
<div class="fieldset">
<label for="textareaField">Textarea:</label>
<textarea id="textareaField" placeholder="Description"></textarea>
</div>
<div class="fieldset">
<label for="selectField">Select:</label>
<select id="selectField">
<option value="sam">Sam Lowry</option>
<option value="harry" selected>Harry Tuttle</option>
<option value="ida" disabled>Ida Lowry</option>
</select>
</div>
<div class="fieldset">
<label>Fruit:</label>
<div>
<span class="radio-wrapper">
<input type="radio" name="fruit" id="apple" value="apple" checked>
<label for="apple">Apple</label>
</span>
<span class="radio-wrapper">
<input type="radio" name="fruit" id="banana" value="banana">
<label for="banana">Banana</label>
</span>
</div>
</div>
<div class="fieldset">
<label>Vegetables:</label>
<div>
<span class="checkbox-wrapper">
<input type="checkbox" name="avocado" id="avocado" value="Avocado" checked>
<label for="avocado">Avocado</label>
</span>
<span class="checkbox-wrapper">
<input type="checkbox" name="broccoli" id="broccoli" value="Broccoli">
<label for="broccoli">Broccoli</label>
</span>
</div>
</div>
<div class="fieldset">
<span></span>
<button type="submit">Submit</button>
</div>
</form>
<h2>Simple form</h2>
<form><input type="text" placeholder="Enter a value"><button type="button">Create</button></form>
<h2>Progress Button</h2>
<button class="progress-animation in-progress" onClick="toggleClass(this, 'done')">Progress Button</button>
<h2>Pulsate animation</h2>
<button class="pulsate-animation">Pulsate</button>
<h2>no-button button</h2>
<button class="no-button">no-button</button>
<h2>Table</h2>
<table>
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
</table>
<h2>Tags</h2>
<div class="tags">
<span class="tag">Apple</span>
<span class="tag">Banana</span>
<span class="tag">Citrus</span>
<span class="tag new">New</span>
<span class="tag selectable">Selectable</span>
<span class="tag selected">Selected</span>
<span class="tag">With x-button <span class="x-button"></span></span>
</div>
<h2>Notifications</h2>
<div class="notification color-information-bg">information</div>
<div class="notification color-warning-bg">warning</div>
<div class="notification color-error-bg">error</div>
<div class="notification color-success-bg">success</div>
<hr/>
<h2>Text</h2>
<p>A beautiful golden sun is setting. The sky is on fire. A large neon sign rises into shot. It rests on top of a skyscraper and fills the frame. The building is neither past nor future in design but a bit of both.</p>
<p>Slowly we pan downwards revealing the city that spreads below.</p>
<h2>Heading 2</h2>
<p>A glittering conglomeration of elevated transport tubes, smaller square buildings which are merely huge, with, here and there, the comparatively minuscule relics of previous ages of architecture, pavement level awnings suggesting restaurants and shops.</p>
<h2>Heading 2</h2>
<p>Flexbox:</p>
<div class="flex">
<div>
<h3>Heading 3</h3>
<p>Transparent tubes carry whizzing transport cages past us. An elevated highway carrying traffic composed primarily of large transport lorries passes through frame. As we descend, the sunlight is blocked out and street lights & neon signs take over as illumination. Eventually we reach the upper levels of a plush shopping precinct.</p>
</div>
<div>
<h3>Heading 3</h3>
<p>An elevated highway carrying traffic composed primarily of large transport lorries passes through frame. As we descend, the sunlight is blocked out and street lights & neon signs take over as illumination. Eventually we reach the upper levels of a plush shopping precinct.</p>
</div>
<div>
<h3>Heading 3</h3>
<p>As we descend, the sunlight is blocked out and street lights & neon signs take over as illumination. Eventually we reach the upper levels of a plush shopping precinct.</p>
</div>
</div>
<hr/>
<h2>Lists</h2>
<p>Unordered:</p>
<ul>
<li>Transparent tubes carry whizzing transport cages past us</li>
<li>An elevated highway carrying traffic composed primarily of large transport lorries passes through frame</li>
<li>As we descend, the sunlight is blocked out and street lights & neon signs take over as illumination</li>
</ul>
<p>Ordered:</p>
<ol>
<li>Transparent tubes carry whizzing transport cages past us</li>
<li>An elevated highway carrying traffic composed primarily of large transport lorries passes through frame</li>
<li>As we descend, the sunlight is blocked out and street lights & neon signs take over as illumination</li>
</ol>
<hr/>
<h2>Quote</h2>
<blockquote>“A beautiful golden sun is setting. The sky is on fire.”</blockquote>
<h2>Code</h2>
How to use the package <code>aether-css-framework</code>
<pre>
<code>Install
yarn add aether-css-framework
Import in JavaScript
import '../node_modules/aether-css-framework/dist/aether.min.css'</code>
</pre>
<hr/>
<h2>Toggle Switch (checkbox)</h2>
<div class="fieldset">
<span class="toggle-switch">
<input id="toggle-switch-1" type="checkbox" />
<label for="toggle-switch-1" />
</span>
</div>
<h2>All Regular Input Types</h2>
<div class="fieldset"><label>checkbox:</label><input type="checkbox"></div>
<div class="fieldset"><label>radio:</label><input type="radio"></div>
<div class="fieldset"><label>range:</label><input type="range"></div>
<div class="fieldset"><label>color:</label><input type="color"></div>
<div class="fieldset"><label>text:</label><input type="text"></div>
<div class="fieldset"><label>number:</label><input type="number"></div>
<div class="fieldset"><label>password:</label><input type="password"></div>
<div class="fieldset"><label>search:</label><input type="search"></div>
<div class="fieldset"><label>tel:</label><input type="tel"></div>
<div class="fieldset"><label>email:</label><input type="email"></div>
<div class="fieldset"><label>url:</label><input type="url"></div>
<div class="fieldset"><label>datetime-local:</label><input type="datetime-local"></div>
<div class="fieldset"><label>date:</label><input type="date"></div>
<div class="fieldset"><label>time:</label><input type="time"></div>
<div class="fieldset"><label>month:</label><input type="month"></div>
<div class="fieldset"><label>week:</label><input type="week"></div>
<div class="fieldset"><label>hidden:</label><input type="hidden"></div>
<div class="fieldset"><label>file:</label><input type="file"></div>
<div class="fieldset"><label>image:</label><input type="image" src="https://upload.wikimedia.org/wikipedia/commons/c/c1/Like_button.png" style="width: 3em;"></div>
<div class="fieldset"><label>button:</label><input type="button" value="Button"></div>
<div class="fieldset"><label>reset:</label><input type="reset"></div>
<div class="fieldset"><label>submit:</label><input type="submit"></div>
</main>
<a class="button circle-menu-button" href="index.html"><img src="./icons/menu.svg" /></a>
<button class="circle-menu-button right"><img src="./icons/person.svg" /></button>
<button class="circle-menu-button bottom right"><img src="./icons/help.svg" /></button>
<button class="circle-menu-button bottom" style="x-background-image: url('docs/demo.png')">TS</button>
<!--
<footer>Footer – Made by @tomsoderlund</footer>
-->
</body>
<script type="application/javascript">
const COLORS = ['', 'darkturquoise', 'salmon', 'rebeccapurple']
function changeBackground () {
const currentColor = document.querySelector('body').style.backgroundColor
const nextColor = COLORS[(COLORS.indexOf(currentColor) + 1) % COLORS.length]
document.querySelector('body').style.backgroundColor = nextColor
}
function toggleClass (target, className) {
const classStr = ' ' + className
target.className = target.className.includes(classStr) ? target.className.replace(classStr, '') : target.className + classStr
}
document.querySelectorAll('.tag').forEach(
element => element.addEventListener(
'click',
event => toggleClass(event.target, 'selected')
)
)
</script>
</html>