Commit
+87 -2 +/-3 browse
1 | diff --git a/docsite/index.html b/docsite/index.html |
2 | index 82f6299..ed48c72 100644 |
3 | --- a/docsite/index.html |
4 | +++ b/docsite/index.html |
5 | @@ -119,7 +119,7 @@ |
6 | </li> |
7 | </ul> |
8 | <small> |
9 | - v1.6.2 |
10 | + v1.6.3 |
11 | <span class="license"> |
12 | <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16"> |
13 | <path fill-rule="evenodd" d="M8.75.75a.75.75 0 00-1.5 0V2h-.984c-.305 0-.604.08-.869.23l-1.288.737A.25.25 0 013.984 3H1.75a.75.75 0 000 1.5h.428L.066 9.192a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.514 3.514 0 00.686.45A4.492 4.492 0 003 11c.88 0 1.556-.22 2.023-.454a3.515 3.515 0 00.686-.45l.045-.04.016-.015.006-.006.002-.002.001-.002L5.25 9.5l.53.53a.75.75 0 00.154-.838L3.822 4.5h.162c.305 0 .604-.08.869-.23l1.289-.737a.25.25 0 01.124-.033h.984V13h-2.5a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-2.5V3.5h.984a.25.25 0 01.124.033l1.29.736c.264.152.563.231.868.231h.162l-2.112 4.692a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.517 3.517 0 00.686.45A4.492 4.492 0 0013 11c.88 0 1.556-.22 2.023-.454a3.512 3.512 0 00.686-.45l.045-.04.01-.01.006-.005.006-.006.002-.002.001-.002-.529-.531.53.53a.75.75 0 00.154-.838L13.823 4.5h.427a.75.75 0 000-1.5h-2.234a.25.25 0 01-.124-.033l-1.29-.736A1.75 1.75 0 009.735 2H8.75V.75zM1.695 9.227c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327l-1.305 2.9zm10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327l-1.305 2.9z"></path> |
14 | @@ -458,6 +458,11 @@ |
15 | </div> |
16 | </div> |
17 | |
18 | + <div class="size"><strong>1.4</strong>kB</div> |
19 | + <div class="file"> |
20 | + <a href="https://github.com/argyleink/open-props/blob/main/src/props.durations.css">durations.css</a> |
21 | + </div> |
22 | + |
23 | <div class="size"><strong>0.2</strong>kB</div> |
24 | <div class="file"> |
25 | <a href="https://github.com/argyleink/open-props/blob/main/src/props.easing.css">easings.css</a> |
26 | diff --git a/package.json b/package.json |
27 | index e9850de..95198c7 100644 |
28 | --- a/package.json |
29 | +++ b/package.json |
30 | @@ -3,7 +3,7 @@ |
31 | "name": "open-props", |
32 | "author": "Adam Argyle", |
33 | "license": "MIT", |
34 | - "version": "1.6.2", |
35 | + "version": "1.6.3", |
36 | "repository": { |
37 | "type": "git", |
38 | "url": "https://github.com/argyleink/open-props" |
39 | @@ -77,6 +77,7 @@ |
40 | "./oklch-hues": "./oklch-hues.min.css", |
41 | "./cyan": "./cyan.min.css", |
42 | "./cyan-hsl": "./cyan-hsl.min.css", |
43 | + "./durations": "./durations.min.css", |
44 | "./easings": "./easings.min.css", |
45 | "./fonts": "./fonts.min.css", |
46 | "./gradients": "./gradients.min.css", |
47 | @@ -201,6 +202,7 @@ |
48 | "lib:animations": "postcss src/props.animations.css -o animations.min.css", |
49 | "lib:aspects": "postcss src/props.aspects.css -o aspects.min.css", |
50 | "lib:borders": "postcss src/props.borders.css -o borders.min.css", |
51 | + "lib:durations": "postcss src/extra/durations.css -o durations.min.css", |
52 | "lib:easing": "postcss src/props.easing.css -o easings.min.css", |
53 | "lib:fonts": "postcss src/props.fonts.css -o fonts.min.css", |
54 | "lib:gradients": "postcss src/props.gradients.css -o gradients.min.css", |
55 | diff --git a/src/extra/durations.css b/src/extra/durations.css |
56 | new file mode 100644 |
57 | index 0000000..4c7be7f |
58 | --- /dev/null |
59 | +++ b/src/extra/durations.css |
60 | @@ -0,0 +1,78 @@ |
61 | + :where(html) { |
62 | + --minute: 60s; |
63 | + --hour: calc( 60 * var(--minute)); |
64 | + --day: calc( 24 * var(--hour)); |
65 | + --week: calc( 7 * var(--day)); |
66 | + --fortnight: calc( 14 * var(--day)); |
67 | + --month: calc( 30 * var(--day)); |
68 | + --quarter: calc( 13 * var(--week)); |
69 | + --year: calc(365 * var(--day)); |
70 | + --leap-year: calc( 4 * var(--year)); |
71 | + --decade: calc( 10 * var(--year)); |
72 | + --generation: calc( 3 * var(--decade)); |
73 | + --lifetime: calc( 8 * var(--decade)); |
74 | + |
75 | + --work-day: calc( 8 * var(--hour)); |
76 | + --work-week: calc( 5 * var(--day)); |
77 | + |
78 | + --blink: .1s; |
79 | + --sneeze: .5s; |
80 | + --brief-moment: 15s; |
81 | + --pause: 10s; |
82 | + --unhealthy-pause: 30s; |
83 | + |
84 | + /* |
85 | + * https://en.wikipedia.org/wiki/List_of_unusual_units_of_measurement |
86 | + */ |
87 | + --moment: 90s; |
88 | + --kermit: calc(14.4 * var(--minute)); |
89 | + --microfortnight: 1.2096s; |
90 | + |
91 | + /* Approximate astronomical durations */ |
92 | + --sidereal-day: calc((23 * var(--hour)) + (56 * var(--minute)) + 4.091s); |
93 | + --iss-orbit: calc(91.5 * var(--minute)); |
94 | + --lunar-month: calc(29.5 * var(--day)); |
95 | + --venus-year: calc(225 * var(--day)); |
96 | + --sol: 88775s; |
97 | + --mars-year: calc(668.5907 * var(--sol)); |
98 | + |
99 | + /* |
100 | + * 10 Little-Known Units of Time |
101 | + * https://www.mentalfloss.com/article/60080/10-little-known-units-time |
102 | + */ |
103 | + --atom: .15957s; |
104 | + --ghurry: calc(24 * var(--minute)); |
105 | + --lustre: calc(5 * var(--year)); |
106 | + --mileway: calc(20 * var(--minute)); |
107 | + --nundine: calc(9 * var(--day)); |
108 | + --nychthemeron: var(--day); |
109 | + --punct: calc(15 * var(--minute)); |
110 | + --quadrant: calc(6 * var(--hour)); |
111 | + --quinzieme: calc(15 * var(--day)); |
112 | + --scruple: calc(24 * var(--minute)); |
113 | + |
114 | + /* |
115 | + * The Potrzebie System of Weights and Measures |
116 | + * https://madcoversite.com/mad033-36.html |
117 | + * https://webmadness.net/resources/The-Potrzebie-system-of-weights-and-measures.pdf |
118 | + * |
119 | + * There is an inconsistency in the definitions where 1 wolverton = 0.00001 clarke. |
120 | + * Calculating fractions of clarkes suggests that a 1 wolverton = 0.00000001 clarke. |
121 | + */ |
122 | + --clarke: var(--sidereal-day); |
123 | + --wood: calc(0.1 * var(--clarke)); |
124 | + --martin: calc(0.01 * var(--wood)); |
125 | + --kovac: calc(0.01 * var(--martin)); |
126 | + --wolverton: calc(0.001 * var(--kovac)); |
127 | + --mingo: calc(10 * var(--clarke)); |
128 | + --cowznofski: calc(10 * var(--mingo)); |
129 | + |
130 | + /* |
131 | + * https://en.wikipedia.org/wiki/List_of_humorous_units_of_measurement |
132 | + */ |
133 | + --friedman: calc(6 * var(--month)); |
134 | + --jiffy: 0.01s; |
135 | + --microcentury: calc((52 * var(--minute)) + 35.7s); |
136 | + --nanocentury: 3.156s; |
137 | + --scaramucci: calc(11 * var(--day)); |
138 | + } |