generated from argyleink/vite-postcss-preset-env
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Created durations.css to address #415; * cut v1.6.3 with new durations.css --------- Co-authored-by: Adam Argyle <[email protected]>
- Loading branch information
1 parent
6c6898b
commit c9272aa
Showing
3 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
:where(html) { | ||
--minute: 60s; | ||
--hour: calc( 60 * var(--minute)); | ||
--day: calc( 24 * var(--hour)); | ||
--week: calc( 7 * var(--day)); | ||
--fortnight: calc( 14 * var(--day)); | ||
--month: calc( 30 * var(--day)); | ||
--quarter: calc( 13 * var(--week)); | ||
--year: calc(365 * var(--day)); | ||
--leap-year: calc( 4 * var(--year)); | ||
--decade: calc( 10 * var(--year)); | ||
--generation: calc( 3 * var(--decade)); | ||
--lifetime: calc( 8 * var(--decade)); | ||
|
||
--work-day: calc( 8 * var(--hour)); | ||
--work-week: calc( 5 * var(--day)); | ||
|
||
--blink: .1s; | ||
--sneeze: .5s; | ||
--brief-moment: 15s; | ||
--pause: 10s; | ||
--unhealthy-pause: 30s; | ||
|
||
/* | ||
* https://en.wikipedia.org/wiki/List_of_unusual_units_of_measurement | ||
*/ | ||
--moment: 90s; | ||
--kermit: calc(14.4 * var(--minute)); | ||
--microfortnight: 1.2096s; | ||
|
||
/* Approximate astronomical durations */ | ||
--sidereal-day: calc((23 * var(--hour)) + (56 * var(--minute)) + 4.091s); | ||
--iss-orbit: calc(91.5 * var(--minute)); | ||
--lunar-month: calc(29.5 * var(--day)); | ||
--venus-year: calc(225 * var(--day)); | ||
--sol: 88775s; | ||
--mars-year: calc(668.5907 * var(--sol)); | ||
|
||
/* | ||
* 10 Little-Known Units of Time | ||
* https://www.mentalfloss.com/article/60080/10-little-known-units-time | ||
*/ | ||
--atom: .15957s; | ||
--ghurry: calc(24 * var(--minute)); | ||
--lustre: calc(5 * var(--year)); | ||
--mileway: calc(20 * var(--minute)); | ||
--nundine: calc(9 * var(--day)); | ||
--nychthemeron: var(--day); | ||
--punct: calc(15 * var(--minute)); | ||
--quadrant: calc(6 * var(--hour)); | ||
--quinzieme: calc(15 * var(--day)); | ||
--scruple: calc(24 * var(--minute)); | ||
|
||
/* | ||
* The Potrzebie System of Weights and Measures | ||
* https://madcoversite.com/mad033-36.html | ||
* https://webmadness.net/resources/The-Potrzebie-system-of-weights-and-measures.pdf | ||
* | ||
* There is an inconsistency in the definitions where 1 wolverton = 0.00001 clarke. | ||
* Calculating fractions of clarkes suggests that a 1 wolverton = 0.00000001 clarke. | ||
*/ | ||
--clarke: var(--sidereal-day); | ||
--wood: calc(0.1 * var(--clarke)); | ||
--martin: calc(0.01 * var(--wood)); | ||
--kovac: calc(0.01 * var(--martin)); | ||
--wolverton: calc(0.001 * var(--kovac)); | ||
--mingo: calc(10 * var(--clarke)); | ||
--cowznofski: calc(10 * var(--mingo)); | ||
|
||
/* | ||
* https://en.wikipedia.org/wiki/List_of_humorous_units_of_measurement | ||
*/ | ||
--friedman: calc(6 * var(--month)); | ||
--jiffy: 0.01s; | ||
--microcentury: calc((52 * var(--minute)) + 35.7s); | ||
--nanocentury: 3.156s; | ||
--scaramucci: calc(11 * var(--day)); | ||
} |