aerolith 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -3
- package/README.md +10 -8
- package/library/dist/aerolith.css +5 -17
- package/library/dist/aerolith.js +8 -0
- package/package.json +1 -1
- package/library/dist/fonts/OFL-Istok-Web.txt +0 -94
- package/library/dist/fonts/istok-web-bold-italic.woff2 +0 -0
- package/library/dist/fonts/istok-web-bold.woff2 +0 -0
- package/library/dist/fonts/istok-web-italic.woff2 +0 -0
- package/library/dist/fonts/istok-web-regular.woff2 +0 -0
package/LICENSE
CHANGED
|
@@ -21,9 +21,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
21
21
|
SOFTWARE.
|
|
22
22
|
|
|
23
23
|
The rendered sprite images in library/dist/ are covered by the same license.
|
|
24
|
-
The fonts in library/dist/fonts/ are not: they are under the SIL
|
|
25
|
-
License 1.1 (
|
|
24
|
+
The fonts in library/dist/fonts/ and fonts/ are not: they are under the SIL
|
|
25
|
+
Open Font License 1.1 (Aerolith Text, which is derived from Selawik, and
|
|
26
26
|
Aerolith Display, which is derived from Istok Web). Their license files are in
|
|
27
|
-
|
|
27
|
+
those folders.
|
|
28
28
|
Bryce is a trademark of its respective owner. This project is not affiliated
|
|
29
29
|
with or endorsed by it, and contains no part of the Bryce software.
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ example of every component. Self-hosting: keep `sprites/` and `fonts/` next to `
|
|
|
39
39
|
| GitHub Packages | `npm i @immineal/aerolith --registry=https://npm.pkg.github.com` | same |
|
|
40
40
|
| Composer | `composer require immineal/aerolith` | serve `vendor/immineal/aerolith/library/dist/` |
|
|
41
41
|
| PyPI | `pip install aerolith` | `aerolith.static_dir()`; Django: add `"aerolith"` to `INSTALLED_APPS` |
|
|
42
|
-
| CDN | jsDelivr, unpkg, esm.sh | or `cdn.jsdelivr.net/gh/immineal/aerolith@v1.
|
|
42
|
+
| CDN | jsDelivr, unpkg, esm.sh | or `cdn.jsdelivr.net/gh/immineal/aerolith@v1.3.1/library/dist/aerolith.css` |
|
|
43
43
|
|
|
44
44
|
React, Vue, Svelte, Astro: import the CSS once in your entry file and use the classes
|
|
45
45
|
(`className` in JSX). Content added after load needs `window.Aerolith.init(container)`.
|
|
@@ -49,7 +49,7 @@ React, Vue, Svelte, Astro: import the CSS once in your entry file and use the cl
|
|
|
49
49
|
| Class | On | States |
|
|
50
50
|
|---|---|---|
|
|
51
51
|
| `.aer-button` (+ `.aer-secondary`, `.aer-quiet`; `.aer-s`, `.aer-l`) | `<button>`, `<a>` | hover, pressed, `aria-pressed`, disabled |
|
|
52
|
-
| `.aer-iconbtn` (+ `.aer-quiet`) | `<button>` with an `.aer-icon` | hover, pressed |
|
|
52
|
+
| `.aer-iconbtn` (+ `.aer-quiet`) | `<button>` with an `.aer-icon` | hover, pressed, `aria-pressed` (`data-aer-toggle` flips it on click; a heart turns to its outline when off) |
|
|
53
53
|
| `.aer-icon .aer-icon-<name>` (+ `.aer-s`, `.aer-pearl`) | `<span aria-hidden="true">` | 35 glyphs, 24/16 px |
|
|
54
54
|
| `.aer-toggle` (+ `.aer-theme`) | `<input type="checkbox" role="switch">` | on, disabled |
|
|
55
55
|
| `.aer-check`, `.aer-radio` | checkbox, radio | checked, mixed, disabled |
|
|
@@ -81,10 +81,13 @@ React, Vue, Svelte, Astro: import the CSS once in your entry file and use the cl
|
|
|
81
81
|
|
|
82
82
|
Aerolith Display is a colour font of rendered gel letters, so titles stay real, selectable text.
|
|
83
83
|
Use it from 32 px up. Each material is about 0.6 MB, loaded only where used. Browsers without
|
|
84
|
-
colour fonts show heavy
|
|
84
|
+
colour fonts show plain heavy letters.
|
|
85
85
|
|
|
86
86
|
Body text is **Aerolith Text**, Selawik (an open Segoe UI stand-in) with a kern table, because Selawik
|
|
87
|
-
ships without kerning.
|
|
87
|
+
ships without kerning. Both fonts are also in [`fonts/`](fonts/) as TTF files for your computer
|
|
88
|
+
([download](https://github.com/immineal/aerolith/releases/latest/download/aerolith-fonts.zip)).
|
|
89
|
+
|
|
90
|
+
Dark mode follows the system; `data-theme="dark"` or `"light"` on `<html>` forces it,
|
|
88
91
|
and the sun/moon switch (`input[data-aer-theme]`) sets that for you.
|
|
89
92
|
|
|
90
93
|
## Accessibility
|
|
@@ -138,8 +141,7 @@ Setup: [harness/README.md](harness/README.md). Design rules:
|
|
|
138
141
|
|
|
139
142
|
## License
|
|
140
143
|
|
|
141
|
-
MIT for code and sprites ([LICENSE](LICENSE)).
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
Istok Web Bold. Bryce is a trademark of its owner; Aerolith is not affiliated and contains no
|
|
144
|
+
MIT for code and sprites ([LICENSE](LICENSE)). The fonts in `library/dist/fonts/` and `fonts/` are
|
|
145
|
+
SIL OFL 1.1: Aerolith Text, derived from Selawik (Microsoft) with a kern table added and renamed
|
|
146
|
+
because the OFL reserves "Selawik"; Aerolith Display, derived from Istok Web Bold (Andrey V. Panov). Bryce is a trademark of its owner; Aerolith is not affiliated and contains no
|
|
145
147
|
Bryce code.
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--aer-target-gap: var(--aer-space-2);
|
|
22
22
|
|
|
23
23
|
/* type: modular scale 1.2 */
|
|
24
|
-
--aer-font-ui: "Aerolith Text", "Selawik", "Segoe UI", "
|
|
24
|
+
--aer-font-ui: "Aerolith Text", "Selawik", "Segoe UI", "Myriad Pro", Tahoma, system-ui, sans-serif; /* bundled: type.css */
|
|
25
25
|
--aer-font-text: var(--aer-font-ui);
|
|
26
26
|
--aer-font-mono: "Consolas", "Lucida Console", ui-monospace, monospace;
|
|
27
27
|
--aer-text-xs: 0.833rem;
|
|
@@ -107,21 +107,11 @@
|
|
|
107
107
|
|
|
108
108
|
/* ---- type.css ---- */
|
|
109
109
|
/* Aerolith type.
|
|
110
|
-
Text: Aerolith Text
|
|
111
|
-
or Istok Web (data-aer-type="istok"), both bundled, both SIL OFL 1.1.
|
|
110
|
+
Text: Aerolith Text, Selawik with a kern table (renamed because the OFL reserves "Selawik"), SIL OFL 1.1.
|
|
112
111
|
Titles: Aerolith Display, gel letters rendered in Bryce and packed into colour fonts. Each
|
|
113
112
|
material comes as OpenType-SVG (Firefox, Safari) and sbix (Chromium); tech() makes a browser
|
|
114
113
|
download only the file it can draw. The fonts keep outlines, so a browser without colour-font
|
|
115
|
-
support still shows the title
|
|
116
|
-
|
|
117
|
-
@font-face { font-family: "Istok Web"; src: url(fonts/istok-web-regular.woff2) format("woff2");
|
|
118
|
-
font-weight: 400; font-style: normal; font-display: swap; }
|
|
119
|
-
@font-face { font-family: "Istok Web"; src: url(fonts/istok-web-italic.woff2) format("woff2");
|
|
120
|
-
font-weight: 400; font-style: italic; font-display: swap; }
|
|
121
|
-
@font-face { font-family: "Istok Web"; src: url(fonts/istok-web-bold.woff2) format("woff2");
|
|
122
|
-
font-weight: 700; font-style: normal; font-display: swap; }
|
|
123
|
-
@font-face { font-family: "Istok Web"; src: url(fonts/istok-web-bold-italic.woff2) format("woff2");
|
|
124
|
-
font-weight: 700; font-style: italic; font-display: swap; }
|
|
114
|
+
support still shows the title as plain heavy letters. */
|
|
125
115
|
|
|
126
116
|
@font-face { font-family: "Aerolith Text"; src: url(fonts/aerolith-text-light.woff2) format("woff2");
|
|
127
117
|
font-weight: 300; font-display: swap; }
|
|
@@ -145,10 +135,6 @@
|
|
|
145
135
|
src: url(fonts/aerolith-display-pearl.svg.woff2) format("woff2") tech(color-SVG),
|
|
146
136
|
url(fonts/aerolith-display-pearl.bmp.woff2) format("woff2") tech(color-sbix); }
|
|
147
137
|
|
|
148
|
-
[data-aer-type="istok"], .aer-type-istok {
|
|
149
|
-
--aer-font-ui: "Istok Web", "Aerolith Text", "Segoe UI", Tahoma, system-ui, sans-serif;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
138
|
/* Big titles only: the letters are rendered at about 80 px per em and read best from 32 px up.
|
|
153
139
|
Weight 700 picks the bold text face while the font loads; the colour face itself has one weight and is
|
|
154
140
|
never synthesised. */
|
|
@@ -1607,6 +1593,8 @@ a.aer-card:hover, button.aer-card:hover, .aer-card[data-interactive]:hover {
|
|
|
1607
1593
|
--_n: var(--aer-iconbtn-glass-active); --_o: var(--aer-iconbtn-glass-active-outset);
|
|
1608
1594
|
}
|
|
1609
1595
|
.aer-iconbtn:disabled { opacity: 0.5; filter: saturate(0.2); cursor: not-allowed; }
|
|
1596
|
+
/* A toggle that is not pressed shows the heart as an outline. */
|
|
1597
|
+
[aria-pressed="false"] > .aer-icon-heart { --_i: 1; }
|
|
1610
1598
|
|
|
1611
1599
|
/* ------------------------------------------------------------------ segmented control / tab bar
|
|
1612
1600
|
<div class="aer-segmented" role="radiogroup" aria-label="View">
|
package/library/dist/aerolith.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
// data-aer-drag makes it movable
|
|
8
8
|
// - menus: popovers drop down from their button; [data-aer-menu] opens one at the pointer
|
|
9
9
|
// - segmented: the selected chip slides between items
|
|
10
|
+
// - toggle: [data-aer-toggle] flips aria-pressed on click (a heart icon inside turns to outline)
|
|
10
11
|
// - preload: sprites of closed dialogs and popovers load with the page
|
|
11
12
|
(function () {
|
|
12
13
|
"use strict";
|
|
@@ -376,6 +377,13 @@
|
|
|
376
377
|
applyTheme(t);
|
|
377
378
|
});
|
|
378
379
|
});
|
|
380
|
+
root.querySelectorAll("[data-aer-toggle]").forEach(function (b) {
|
|
381
|
+
if (!once(b, "aerToggle")) return;
|
|
382
|
+
if (!b.hasAttribute("aria-pressed")) b.setAttribute("aria-pressed", "false");
|
|
383
|
+
b.addEventListener("click", function () {
|
|
384
|
+
b.setAttribute("aria-pressed", b.getAttribute("aria-pressed") === "true" ? "false" : "true");
|
|
385
|
+
});
|
|
386
|
+
});
|
|
379
387
|
root.querySelectorAll(".aer-lens").forEach(function (el) { if (once(el, "aerBound")) lens(el); });
|
|
380
388
|
}
|
|
381
389
|
|
package/package.json
CHANGED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2008-2012, 2014, Andrey V. Panov (panov@canopus.iacp.dvo.ru),
|
|
2
|
-
with Reserved Font Name Istok.
|
|
3
|
-
|
|
4
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
5
|
-
This license is copied below, and is also available with a FAQ at:
|
|
6
|
-
http://scripts.sil.org/OFL
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-----------------------------------------------------------
|
|
10
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
11
|
-
-----------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
PREAMBLE
|
|
14
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
15
|
-
development of collaborative font projects, to support the font creation
|
|
16
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
17
|
-
open framework in which fonts may be shared and improved in partnership
|
|
18
|
-
with others.
|
|
19
|
-
|
|
20
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
21
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
22
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
23
|
-
redistributed and/or sold with any software provided that any reserved
|
|
24
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
25
|
-
however, cannot be released under any other type of license. The
|
|
26
|
-
requirement for fonts to remain under this license does not apply
|
|
27
|
-
to any document created using the fonts or their derivatives.
|
|
28
|
-
|
|
29
|
-
DEFINITIONS
|
|
30
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
31
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
32
|
-
include source files, build scripts and documentation.
|
|
33
|
-
|
|
34
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
35
|
-
copyright statement(s).
|
|
36
|
-
|
|
37
|
-
"Original Version" refers to the collection of Font Software components as
|
|
38
|
-
distributed by the Copyright Holder(s).
|
|
39
|
-
|
|
40
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
41
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
42
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
43
|
-
new environment.
|
|
44
|
-
|
|
45
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
46
|
-
writer or other person who contributed to the Font Software.
|
|
47
|
-
|
|
48
|
-
PERMISSION & CONDITIONS
|
|
49
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
50
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
51
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
52
|
-
Software, subject to the following conditions:
|
|
53
|
-
|
|
54
|
-
1) Neither the Font Software nor any of its individual components,
|
|
55
|
-
in Original or Modified Versions, may be sold by itself.
|
|
56
|
-
|
|
57
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
58
|
-
redistributed and/or sold with any software, provided that each copy
|
|
59
|
-
contains the above copyright notice and this license. These can be
|
|
60
|
-
included either as stand-alone text files, human-readable headers or
|
|
61
|
-
in the appropriate machine-readable metadata fields within text or
|
|
62
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
63
|
-
|
|
64
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
65
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
66
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
67
|
-
presented to the users.
|
|
68
|
-
|
|
69
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
70
|
-
Software shall not be used to promote, endorse or advertise any
|
|
71
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
72
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
73
|
-
permission.
|
|
74
|
-
|
|
75
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
76
|
-
must be distributed entirely under this license, and must not be
|
|
77
|
-
distributed under any other license. The requirement for fonts to
|
|
78
|
-
remain under this license does not apply to any document created
|
|
79
|
-
using the Font Software.
|
|
80
|
-
|
|
81
|
-
TERMINATION
|
|
82
|
-
This license becomes null and void if any of the above conditions are
|
|
83
|
-
not met.
|
|
84
|
-
|
|
85
|
-
DISCLAIMER
|
|
86
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
87
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
88
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
89
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
90
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
91
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
92
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
93
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
94
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|