From ea091a2a45b77201560fa2e17b8adb00956eddaa Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 26 Nov 2021 18:32:07 +0100 Subject: Update --- Makefile | 2 +- assets/css/_basics.scss | 4 +-- assets/css/_functions.scss | 4 ++- content/9thPK7O3xn/posts/fox.md | 20 ------------- content/9thPK7O3xn/posts/i-am-not-a-fox.md | 19 ++++++++++++ yarn.lock | 48 +++++++++++++++--------------- 6 files changed, 49 insertions(+), 48 deletions(-) delete mode 100644 content/9thPK7O3xn/posts/fox.md create mode 100644 content/9thPK7O3xn/posts/i-am-not-a-fox.md diff --git a/Makefile b/Makefile index 55ec938..8846a3e 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ out/%.woff2: assets/fonts/%.ttf assets/fonts/glyphs.txt | out out/%.css: assets/css/%.scss $(CSS_SRC) | out $(info [SCSS] $< -> $@) - sassc -t compressed "$<" | ./node_modules/.bin/postcss --use postcss-csso autoprefixer --no-map > "$@" + sass "$<" | ./node_modules/.bin/postcss --use postcss-csso autoprefixer --no-map > "$@" .cache/meta: | .cache mkdir -p .cache/meta diff --git a/assets/css/_basics.scss b/assets/css/_basics.scss index efa0279..f2b2624 100644 --- a/assets/css/_basics.scss +++ b/assets/css/_basics.scss @@ -23,7 +23,7 @@ html { background-color: prop(--colors --bg); color: prop(--colors --fg); font-family: $font-fam--text; - font-size: 1em / 16px * $font-size; + font-size: px-to-em($font-size); line-height: $line-height; } @@ -36,7 +36,7 @@ body { main { @include iro-responsive-env(('sm', 'md')) { - font-size: iro-responsive-set((1rem, 1 / 16 * 18rem)); + font-size: iro-responsive-set((1rem, iro-px-to-rem(18px))); } } diff --git a/assets/css/_functions.scss b/assets/css/_functions.scss index 1523772..5e2518e 100644 --- a/assets/css/_functions.scss +++ b/assets/css/_functions.scss @@ -1,5 +1,7 @@ +@use 'sass:math'; + @function px-to-em($s, $b: $font-size) { - @return 1 / ($b / 1px) * ($s / 1px) * 1em; + @return 1 / math.div($b, 1px) * math.div($s, 1px) * 1em; } @function str-repeat($s, $n) { diff --git a/content/9thPK7O3xn/posts/fox.md b/content/9thPK7O3xn/posts/fox.md deleted file mode 100644 index 95050bb..0000000 --- a/content/9thPK7O3xn/posts/fox.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: I Am (Not) a Fox -unlisted: true ---- - -I am not a fox. -It would be ridiculous to claim otherwise since a fox wouldn't be able to type on a keyboard, or come up with this text in the first place. -A fox probably couldn't have a job as a software developer either. -But despite reality being what it is, my existence as a human being doesn't feel right to me. -It never has. - -I was 6 years old when I first became aware that something was wrong. -I'm sure many of you have seen the movie "The Sword in the Stone" by Disney, wherein the protagonist Arthur is transformed into various animals to learn valuable life lessons. -I was watching it one evening and became fascinated by the idea of possessing a nonhuman body, especially that of a bird. -What would it be like to experience to world as one? -To be covered in feathers that are bristling in the wind as I'm flying through the air? -Thinking about this felt right to me. -Or rather, it felt like for the first time in my life, a persistent feeling of discomfort I hadn't noticed before was suddenly gone. -This moment marks the beginning - diff --git a/content/9thPK7O3xn/posts/i-am-not-a-fox.md b/content/9thPK7O3xn/posts/i-am-not-a-fox.md new file mode 100644 index 0000000..1a3417e --- /dev/null +++ b/content/9thPK7O3xn/posts/i-am-not-a-fox.md @@ -0,0 +1,19 @@ +--- +title: I Am Not a Fox +unlisted: true +--- + +I am not a fox. +It would be ridiculous to claim otherwise since a fox wouldn't be able to type on a keyboard, not to mention come up with this text in the first place. +A fox probably couldn't have a job as a software developer, too. +But despite reality being quite obvious, my existence as a human being doesn't feel right to me. +It never has. + +I was 6 years old when I first became aware that something was off. +I'm sure many of you have seen the movie "The Sword in the Stone" by Disney, wherein the protagonist Arthur is transformed into various animals to learn different life lessons. +I was watching this movie one evening and became fascinated by the idea of possessing a nonhuman body, especially that of a bird. +What would it be like to experience the world as one? +To be covered in feathers that are bristling in the wind as I'm flying through the air? +Imagining myself in this situation felt right. +It was as if a constant nagging at the back of my mind, which I hadn't noticed before, was gone for the first time. + diff --git a/yarn.lock b/yarn.lock index b84d740..eadb61b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -60,9 +60,9 @@ integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== ajv@^8.0.1: - version "8.8.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.8.0.tgz#c501f10df72914bb77a458919e79fc73e4a2f9ef" - integrity sha512-L+cJ/+pkdICMueKR6wIx3VP2fjIx3yAhuvadUv/osv9yFD7OVZy442xFF+Oeu3ZvmhBGQzoF6mTSt+LUWBmGQg== + version "8.8.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.8.2.tgz#01b4fef2007a28bf75f0b7fc009f62679de4abbb" + integrity sha512-x9VuX+R/jcFj1DHo/fCp99esgGDWiHENrKxaCENuCxpoMCmAt/COCGVDwA7kleEpEzJjDnvh3yGoOuLu0Dtllw== dependencies: fast-deep-equal "^3.1.1" json-schema-traverse "^1.0.0" @@ -189,9 +189,9 @@ camelcase@^5.3.1: integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== caniuse-lite@^1.0.30001272, caniuse-lite@^1.0.30001280: - version "1.0.30001280" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001280.tgz#066a506046ba4be34cde5f74a08db7a396718fb7" - integrity sha512-kFXwYvHe5rix25uwueBxC569o53J6TpnGu0BEEn+6Lhl2vsnAumRFWEBhDft1fwyo6m1r4i+RqA4+163FpeFcA== + version "1.0.30001283" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001283.tgz#8573685bdae4d733ef18f78d44ba0ca5fe9e896b" + integrity sha512-9RoKo841j1GQFSJz/nCXOj0sD7tHBtlowjYlrqIUS812x9/emfBLBt6IyMz1zIaYc/eRL8Cs6HPUVi2Hzq4sIg== chalk@^2.0.0: version "2.4.2" @@ -326,9 +326,9 @@ dir-glob@^3.0.1: path-type "^4.0.0" electron-to-chromium@^1.3.896: - version "1.3.899" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.899.tgz#4d7d040e73def3d5f5bd6b8a21049025dce6fce0" - integrity sha512-w16Dtd2zl7VZ4N4Db+FIa7n36sgPGCKjrKvUUmp5ialsikvcQLjcJR9RWnlYNxIyEHLdHaoIZEqKsPxU9MdyBg== + version "1.4.3" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.3.tgz#82480df3ef607f04bb38cc3f30a628d8b895339f" + integrity sha512-hfpppjYhqIZB8jrNb0rNceQRkSnBN7QJl3W26O1jUv3F3BkQknqy1YTqVXkFnIcFtBc3Qnv5M7r5Lez2iOLgZA== emoji-regex@^8.0.0: version "8.0.0" @@ -636,7 +636,7 @@ ini@^1.3.5: "iro-sass@git+https://git.vulpes.one/iro-sass/": version "1.0.1" - resolved "git+https://git.vulpes.one/iro-sass/#84fd9ce18cff43a4e4b4e8049f5557ae470482ac" + resolved "git+https://git.vulpes.one/iro-sass/#e20e9a1a94090b263746acf475a1212522c6f9fa" is-arrayish@^0.2.1: version "0.2.1" @@ -744,9 +744,9 @@ lilconfig@^2.0.3: integrity sha512-bfTIN7lEsiooCocSISTWXkiWJkRqtL9wYtYy+8EK3Y41qh3mpwPU0ycTOgjdY9ErwXCc8QyrQp82bdL0Xkm9yA== lines-and-columns@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" - integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= + version "1.2.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== locate-path@^5.0.0: version "5.0.0" @@ -1082,13 +1082,13 @@ postcss-value-parser@^4.1.0: integrity sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ== postcss@^8.2.12, postcss@^8.3.11: - version "8.3.11" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.11.tgz#c3beca7ea811cd5e1c4a3ec6d2e7599ef1f8f858" - integrity sha512-hCmlUAIlUiav8Xdqw3Io4LcpA1DOt7h3LSTAC4G6JGHFFaWzI6qvFt9oilvl8BmkbBRX1IhM90ZAmpk68zccQA== + version "8.4.1" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.1.tgz#73051f825509ad1a716ef500108001bf3d1fa8f7" + integrity sha512-WqLs/TTzXdG+/A4ZOOK9WDZiikrRaiA+eoEb/jz2DT9KUhMNHgP7yKPO8vwi62ZCsb703Gwb7BMZwDzI54Y2Ag== dependencies: nanoid "^3.1.30" picocolors "^1.0.0" - source-map-js "^0.6.2" + source-map-js "^1.0.1" pretty-hrtime@^1.0.3: version "1.0.3" @@ -1211,9 +1211,9 @@ semver@^7.3.4: lru-cache "^6.0.0" signal-exit@^3.0.2: - version "3.0.5" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.5.tgz#9e3e8cc0c75a99472b44321033a7702e7738252f" - integrity sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ== + version "3.0.6" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.6.tgz#24e630c4b0f03fea446a2bd299e62b4a6ca8d0af" + integrity sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ== slash@^3.0.0: version "3.0.0" @@ -1234,10 +1234,10 @@ slice-ansi@^4.0.0: astral-regex "^2.0.0" is-fullwidth-code-point "^3.0.0" -source-map-js@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" - integrity sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug== +source-map-js@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.1.tgz#a1741c131e3c77d048252adfa24e23b908670caf" + integrity sha512-4+TN2b3tqOCd/kaGRJ/sTYA0tR0mdXx26ipdolxcwtJVqEnqNYvlCAt1q3ypy4QMlYus+Zh34RNtYLoq2oQ4IA== source-map@^0.6.1: version "0.6.1" -- cgit v1.2.3-70-g09d2