Compare commits

...

2 commits

Author SHA1 Message Date
4de8f62b7e
chore: optimized assets
All checks were successful
Publish and deploy / publish (push) Successful in 37s
Publish and deploy / deploy (push) Successful in 7s
2025-01-30 15:36:52 +03:00
529c606744
chore: use lightningcss 2025-01-30 15:36:25 +03:00
16 changed files with 209 additions and 145 deletions

View file

@ -2,6 +2,8 @@ import node from '@astrojs/node'
import solid from '@astrojs/solid-js' import solid from '@astrojs/solid-js'
import { Graphviz } from '@hpcc-js/wasm-graphviz' import { Graphviz } from '@hpcc-js/wasm-graphviz'
import { defineConfig } from 'astro/config' import { defineConfig } from 'astro/config'
import browserslist from 'browserslist'
import { browserslistToTargets } from 'lightningcss'
import { toString } from 'mdast-util-to-string' import { toString } from 'mdast-util-to-string'
import getReadingTime from 'reading-time' import getReadingTime from 'reading-time'
import { visit } from 'unist-util-visit' import { visit } from 'unist-util-visit'
@ -62,6 +64,15 @@ export default defineConfig({
define: { define: {
'import.meta.env.VITE_BUILD_DATE': JSON.stringify(new Date().toISOString().split('T')[0]), 'import.meta.env.VITE_BUILD_DATE': JSON.stringify(new Date().toISOString().split('T')[0]),
}, },
css: {
transformer: 'lightningcss',
lightningcss: {
targets: browserslistToTargets(browserslist('>= 0.25%')),
},
},
build: {
cssMinify: 'lightningcss',
},
}, },
adapter: node({ adapter: node({
mode: 'standalone', mode: 'standalone',

View file

@ -27,11 +27,13 @@
"astro": "^5.1.9", "astro": "^5.1.9",
"astro-loading-indicator": "0.7.0", "astro-loading-indicator": "0.7.0",
"better-sqlite3": "^11.1.2", "better-sqlite3": "^11.1.2",
"browserslist": "^4.24.4",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"date-fns": "^4.1.0", "date-fns": "^4.1.0",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"drizzle-kit": "^0.23.1", "drizzle-kit": "^0.23.1",
"drizzle-orm": "^0.32.1", "drizzle-orm": "^0.32.1",
"lightningcss": "^1.29.1",
"mdast-util-to-string": "^4.0.0", "mdast-util-to-string": "^4.0.0",
"parse-duration": "^1.1.0", "parse-duration": "^1.1.0",
"rate-limiter-flexible": "^5.0.3", "rate-limiter-flexible": "^5.0.3",

View file

@ -13,13 +13,13 @@ importers:
version: 0.9.4(typescript@5.7.3) version: 0.9.4(typescript@5.7.3)
'@astrojs/node': '@astrojs/node':
specifier: ^9.0.2 specifier: ^9.0.2
version: 9.0.2(astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0)) version: 9.0.2(astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0))
'@astrojs/rss': '@astrojs/rss':
specifier: ^4.0.11 specifier: ^4.0.11
version: 4.0.11 version: 4.0.11
'@astrojs/solid-js': '@astrojs/solid-js':
specifier: ^5.0.4 specifier: ^5.0.4
version: 5.0.4(@types/node@22.0.2)(jiti@2.4.2)(solid-js@1.8.19)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0) version: 5.0.4(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(solid-js@1.8.19)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)
'@fuman/fetch': '@fuman/fetch':
specifier: 0.0.10 specifier: 0.0.10
version: 0.0.10(zod@3.23.8) version: 0.0.10(zod@3.23.8)
@ -46,13 +46,16 @@ importers:
version: 65.4.3 version: 65.4.3
astro: astro:
specifier: ^5.1.9 specifier: ^5.1.9
version: 5.1.9(@types/node@22.0.2)(jiti@2.4.2)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0) version: 5.1.9(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0)
astro-loading-indicator: astro-loading-indicator:
specifier: 0.7.0 specifier: 0.7.0
version: 0.7.0(astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0)) version: 0.7.0(astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0))
better-sqlite3: better-sqlite3:
specifier: ^11.1.2 specifier: ^11.1.2
version: 11.1.2 version: 11.1.2
browserslist:
specifier: ^4.24.4
version: 4.24.4
clsx: clsx:
specifier: ^2.1.1 specifier: ^2.1.1
version: 2.1.1 version: 2.1.1
@ -68,6 +71,9 @@ importers:
drizzle-orm: drizzle-orm:
specifier: ^0.32.1 specifier: ^0.32.1
version: 0.32.1(@types/better-sqlite3@7.6.11)(better-sqlite3@11.1.2) version: 0.32.1(@types/better-sqlite3@7.6.11)(better-sqlite3@11.1.2)
lightningcss:
specifier: ^1.29.1
version: 1.29.1
mdast-util-to-string: mdast-util-to-string:
specifier: ^4.0.0 specifier: ^4.0.0
version: 4.0.0 version: 4.0.0
@ -97,7 +103,7 @@ importers:
version: 5.0.0 version: 5.0.0
unocss: unocss:
specifier: ^65.4.3 specifier: ^65.4.3
version: 65.4.3(postcss@8.5.1)(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3)) version: 65.4.3(postcss@8.5.1)(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3))
zod: zod:
specifier: ^3.23.8 specifier: ^3.23.8
version: 3.23.8 version: 3.23.8
@ -1851,11 +1857,6 @@ packages:
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
engines: {node: '>=8'} engines: {node: '>=8'}
browserslist@4.23.2:
resolution: {integrity: sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
browserslist@4.24.4: browserslist@4.24.4:
resolution: {integrity: sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==} resolution: {integrity: sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
@ -1889,9 +1890,6 @@ packages:
resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==} resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==}
engines: {node: '>=16'} engines: {node: '>=16'}
caniuse-lite@1.0.30001645:
resolution: {integrity: sha512-GFtY2+qt91kzyMk6j48dJcwJVq5uTkk71XxE3RtScx7XWRLsO7bU44LOFkOZYR8w9YMS0UhPSYpN/6rAMImmLw==}
caniuse-lite@1.0.30001695: caniuse-lite@1.0.30001695:
resolution: {integrity: sha512-vHyLade6wTgI2u1ec3WQBxv+2BrTERV28UXQu9LO6lZ9pYeMk34vjXFLOxo1A4UBA8XTL4njRQZdno/yYaSmWw==} resolution: {integrity: sha512-vHyLade6wTgI2u1ec3WQBxv+2BrTERV28UXQu9LO6lZ9pYeMk34vjXFLOxo1A4UBA8XTL4njRQZdno/yYaSmWw==}
@ -2105,6 +2103,11 @@ packages:
resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==}
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
detect-libc@1.0.3:
resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==}
engines: {node: '>=0.10'}
hasBin: true
detect-libc@2.0.3: detect-libc@2.0.3:
resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==} resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==}
engines: {node: '>=8'} engines: {node: '>=8'}
@ -2254,9 +2257,6 @@ packages:
ee-first@1.1.1: ee-first@1.1.1:
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
electron-to-chromium@1.5.4:
resolution: {integrity: sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==}
electron-to-chromium@1.5.88: electron-to-chromium@1.5.88:
resolution: {integrity: sha512-K3C2qf1o+bGzbilTDCTBhTQcMS9KW60yTAaTeeXsfvQuTDDwlokLam/AdqlqcSy9u4UainDgsHV23ksXAOgamw==} resolution: {integrity: sha512-K3C2qf1o+bGzbilTDCTBhTQcMS9KW60yTAaTeeXsfvQuTDDwlokLam/AdqlqcSy9u4UainDgsHV23ksXAOgamw==}
@ -3016,6 +3016,70 @@ packages:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'} engines: {node: '>= 0.8.0'}
lightningcss-darwin-arm64@1.29.1:
resolution: {integrity: sha512-HtR5XJ5A0lvCqYAoSv2QdZZyoHNttBpa5EP9aNuzBQeKGfbyH5+UipLWvVzpP4Uml5ej4BYs5I9Lco9u1fECqw==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [darwin]
lightningcss-darwin-x64@1.29.1:
resolution: {integrity: sha512-k33G9IzKUpHy/J/3+9MCO4e+PzaFblsgBjSGlpAaFikeBFm8B/CkO3cKU9oI4g+fjS2KlkLM/Bza9K/aw8wsNA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [darwin]
lightningcss-freebsd-x64@1.29.1:
resolution: {integrity: sha512-0SUW22fv/8kln2LnIdOCmSuXnxgxVC276W5KLTwoehiO0hxkacBxjHOL5EtHD8BAXg2BvuhsJPmVMasvby3LiQ==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [freebsd]
lightningcss-linux-arm-gnueabihf@1.29.1:
resolution: {integrity: sha512-sD32pFvlR0kDlqsOZmYqH/68SqUMPNj+0pucGxToXZi4XZgZmqeX/NkxNKCPsswAXU3UeYgDSpGhu05eAufjDg==}
engines: {node: '>= 12.0.0'}
cpu: [arm]
os: [linux]
lightningcss-linux-arm64-gnu@1.29.1:
resolution: {integrity: sha512-0+vClRIZ6mmJl/dxGuRsE197o1HDEeeRk6nzycSy2GofC2JsY4ifCRnvUWf/CUBQmlrvMzt6SMQNMSEu22csWQ==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
lightningcss-linux-arm64-musl@1.29.1:
resolution: {integrity: sha512-UKMFrG4rL/uHNgelBsDwJcBqVpzNJbzsKkbI3Ja5fg00sgQnHw/VrzUTEc4jhZ+AN2BvQYz/tkHu4vt1kLuJyw==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
lightningcss-linux-x64-gnu@1.29.1:
resolution: {integrity: sha512-u1S+xdODy/eEtjADqirA774y3jLcm8RPtYztwReEXoZKdzgsHYPl0s5V52Tst+GKzqjebkULT86XMSxejzfISw==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
lightningcss-linux-x64-musl@1.29.1:
resolution: {integrity: sha512-L0Tx0DtaNUTzXv0lbGCLB/c/qEADanHbu4QdcNOXLIe1i8i22rZRpbT3gpWYsCh9aSL9zFujY/WmEXIatWvXbw==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
lightningcss-win32-arm64-msvc@1.29.1:
resolution: {integrity: sha512-QoOVnkIEFfbW4xPi+dpdft/zAKmgLgsRHfJalEPYuJDOWf7cLQzYg0DEh8/sn737FaeMJxHZRc1oBreiwZCjog==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [win32]
lightningcss-win32-x64-msvc@1.29.1:
resolution: {integrity: sha512-NygcbThNBe4JElP+olyTI/doBNGJvLs3bFCRPdvuCcxZCcCZ71B858IHpdm7L1btZex0FvCmM17FK98Y9MRy1Q==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [win32]
lightningcss@1.29.1:
resolution: {integrity: sha512-FmGoeD4S05ewj+AkhTY+D+myDvXI6eL27FjHIjoyUkO/uw7WZD1fBVs0QxeYWa7E17CUHJaYX/RUGISCtcrG4Q==}
engines: {node: '>= 12.0.0'}
lines-and-columns@1.2.4: lines-and-columns@1.2.4:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
@ -3302,9 +3366,6 @@ packages:
node-fetch-native@1.6.6: node-fetch-native@1.6.6:
resolution: {integrity: sha512-8Mc2HhqPdlIfedsuZoc3yioPuzp6b+L5jRCRY1QzuWZh2EGJVQrGppC6V6cF0bLdbW0+O2YpqCA25aF/1lvipQ==} resolution: {integrity: sha512-8Mc2HhqPdlIfedsuZoc3yioPuzp6b+L5jRCRY1QzuWZh2EGJVQrGppC6V6cF0bLdbW0+O2YpqCA25aF/1lvipQ==}
node-releases@2.0.18:
resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==}
node-releases@2.0.19: node-releases@2.0.19:
resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==}
@ -4123,12 +4184,6 @@ packages:
uploadthing: uploadthing:
optional: true optional: true
update-browserslist-db@1.1.0:
resolution: {integrity: sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==}
hasBin: true
peerDependencies:
browserslist: '>= 4.21.0'
update-browserslist-db@1.1.2: update-browserslist-db@1.1.2:
resolution: {integrity: sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==} resolution: {integrity: sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==}
hasBin: true hasBin: true
@ -4607,9 +4662,9 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@astrojs/node@9.0.2(astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0))': '@astrojs/node@9.0.2(astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0))':
dependencies: dependencies:
astro: 5.1.9(@types/node@22.0.2)(jiti@2.4.2)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0) astro: 5.1.9(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0)
send: 1.1.0 send: 1.1.0
server-destroy: 1.0.1 server-destroy: 1.0.1
transitivePeerDependencies: transitivePeerDependencies:
@ -4624,11 +4679,11 @@ snapshots:
fast-xml-parser: 4.5.1 fast-xml-parser: 4.5.1
kleur: 4.1.5 kleur: 4.1.5
'@astrojs/solid-js@5.0.4(@types/node@22.0.2)(jiti@2.4.2)(solid-js@1.8.19)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)': '@astrojs/solid-js@5.0.4(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(solid-js@1.8.19)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)':
dependencies: dependencies:
solid-js: 1.8.19 solid-js: 1.8.19
vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0) vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)
vite-plugin-solid: 2.11.0(solid-js@1.8.19)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)) vite-plugin-solid: 2.11.0(solid-js@1.8.19)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))
transitivePeerDependencies: transitivePeerDependencies:
- '@testing-library/jest-dom' - '@testing-library/jest-dom'
- '@types/node' - '@types/node'
@ -4698,7 +4753,7 @@ snapshots:
dependencies: dependencies:
'@babel/compat-data': 7.25.2 '@babel/compat-data': 7.25.2
'@babel/helper-validator-option': 7.24.8 '@babel/helper-validator-option': 7.24.8
browserslist: 4.23.2 browserslist: 4.24.4
lru-cache: 5.1.1 lru-cache: 5.1.1
semver: 6.3.1 semver: 6.3.1
@ -5721,13 +5776,13 @@ snapshots:
'@ungap/structured-clone@1.2.0': {} '@ungap/structured-clone@1.2.0': {}
'@unocss/astro@65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3))': '@unocss/astro@65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3))':
dependencies: dependencies:
'@unocss/core': 65.4.3 '@unocss/core': 65.4.3
'@unocss/reset': 65.4.3 '@unocss/reset': 65.4.3
'@unocss/vite': 65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3)) '@unocss/vite': 65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3))
optionalDependencies: optionalDependencies:
vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0) vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)
transitivePeerDependencies: transitivePeerDependencies:
- rollup - rollup
- supports-color - supports-color
@ -5870,7 +5925,7 @@ snapshots:
dependencies: dependencies:
'@unocss/core': 65.4.3 '@unocss/core': 65.4.3
'@unocss/vite@65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3))': '@unocss/vite@65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3))':
dependencies: dependencies:
'@ampproject/remapping': 2.3.0 '@ampproject/remapping': 2.3.0
'@rollup/pluginutils': 5.1.4(rollup@4.32.0) '@rollup/pluginutils': 5.1.4(rollup@4.32.0)
@ -5880,7 +5935,7 @@ snapshots:
chokidar: 3.6.0 chokidar: 3.6.0
magic-string: 0.30.17 magic-string: 0.30.17
tinyglobby: 0.2.10 tinyglobby: 0.2.10
vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0) vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)
transitivePeerDependencies: transitivePeerDependencies:
- rollup - rollup
- supports-color - supports-color
@ -6079,11 +6134,11 @@ snapshots:
- supports-color - supports-color
- typescript - typescript
astro-loading-indicator@0.7.0(astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0)): astro-loading-indicator@0.7.0(astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0)):
dependencies: dependencies:
astro: 5.1.9(@types/node@22.0.2)(jiti@2.4.2)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0) astro: 5.1.9(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0)
astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0): astro@5.1.9(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.32.0)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(typescript@5.7.3)(yaml@2.5.0):
dependencies: dependencies:
'@astrojs/compiler': 2.10.3 '@astrojs/compiler': 2.10.3
'@astrojs/internal-helpers': 0.4.2 '@astrojs/internal-helpers': 0.4.2
@ -6135,8 +6190,8 @@ snapshots:
unist-util-visit: 5.0.0 unist-util-visit: 5.0.0
unstorage: 1.14.4 unstorage: 1.14.4
vfile: 6.0.3 vfile: 6.0.3
vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0) vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)
vitefu: 1.0.5(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)) vitefu: 1.0.5(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))
which-pm: 3.0.0 which-pm: 3.0.0
xxhash-wasm: 1.1.0 xxhash-wasm: 1.1.0
yargs-parser: 21.1.1 yargs-parser: 21.1.1
@ -6257,13 +6312,6 @@ snapshots:
dependencies: dependencies:
fill-range: 7.1.1 fill-range: 7.1.1
browserslist@4.23.2:
dependencies:
caniuse-lite: 1.0.30001645
electron-to-chromium: 1.5.4
node-releases: 2.0.18
update-browserslist-db: 1.1.0(browserslist@4.23.2)
browserslist@4.24.4: browserslist@4.24.4:
dependencies: dependencies:
caniuse-lite: 1.0.30001695 caniuse-lite: 1.0.30001695
@ -6291,8 +6339,6 @@ snapshots:
camelcase@8.0.0: {} camelcase@8.0.0: {}
caniuse-lite@1.0.30001645: {}
caniuse-lite@1.0.30001695: {} caniuse-lite@1.0.30001695: {}
ccount@2.0.1: {} ccount@2.0.1: {}
@ -6474,6 +6520,8 @@ snapshots:
destroy@1.2.0: {} destroy@1.2.0: {}
detect-libc@1.0.3: {}
detect-libc@2.0.3: {} detect-libc@2.0.3: {}
deterministic-object-hash@2.0.2: deterministic-object-hash@2.0.2:
@ -6538,8 +6586,6 @@ snapshots:
ee-first@1.1.1: {} ee-first@1.1.1: {}
electron-to-chromium@1.5.4: {}
electron-to-chromium@1.5.88: {} electron-to-chromium@1.5.88: {}
emmet@2.4.7: emmet@2.4.7:
@ -7509,6 +7555,51 @@ snapshots:
prelude-ls: 1.2.1 prelude-ls: 1.2.1
type-check: 0.4.0 type-check: 0.4.0
lightningcss-darwin-arm64@1.29.1:
optional: true
lightningcss-darwin-x64@1.29.1:
optional: true
lightningcss-freebsd-x64@1.29.1:
optional: true
lightningcss-linux-arm-gnueabihf@1.29.1:
optional: true
lightningcss-linux-arm64-gnu@1.29.1:
optional: true
lightningcss-linux-arm64-musl@1.29.1:
optional: true
lightningcss-linux-x64-gnu@1.29.1:
optional: true
lightningcss-linux-x64-musl@1.29.1:
optional: true
lightningcss-win32-arm64-msvc@1.29.1:
optional: true
lightningcss-win32-x64-msvc@1.29.1:
optional: true
lightningcss@1.29.1:
dependencies:
detect-libc: 1.0.3
optionalDependencies:
lightningcss-darwin-arm64: 1.29.1
lightningcss-darwin-x64: 1.29.1
lightningcss-freebsd-x64: 1.29.1
lightningcss-linux-arm-gnueabihf: 1.29.1
lightningcss-linux-arm64-gnu: 1.29.1
lightningcss-linux-arm64-musl: 1.29.1
lightningcss-linux-x64-gnu: 1.29.1
lightningcss-linux-x64-musl: 1.29.1
lightningcss-win32-arm64-msvc: 1.29.1
lightningcss-win32-x64-msvc: 1.29.1
lines-and-columns@1.2.4: {} lines-and-columns@1.2.4: {}
load-tsconfig@0.2.5: {} load-tsconfig@0.2.5: {}
@ -7972,8 +8063,6 @@ snapshots:
node-fetch-native@1.6.6: {} node-fetch-native@1.6.6: {}
node-releases@2.0.18: {}
node-releases@2.0.19: {} node-releases@2.0.19: {}
normalize-package-data@2.5.0: normalize-package-data@2.5.0:
@ -8868,9 +8957,9 @@ snapshots:
unist-util-is: 6.0.0 unist-util-is: 6.0.0
unist-util-visit-parents: 6.0.1 unist-util-visit-parents: 6.0.1
unocss@65.4.3(postcss@8.5.1)(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3)): unocss@65.4.3(postcss@8.5.1)(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3)):
dependencies: dependencies:
'@unocss/astro': 65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3)) '@unocss/astro': 65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3))
'@unocss/cli': 65.4.3(rollup@4.32.0) '@unocss/cli': 65.4.3(rollup@4.32.0)
'@unocss/core': 65.4.3 '@unocss/core': 65.4.3
'@unocss/postcss': 65.4.3(postcss@8.5.1) '@unocss/postcss': 65.4.3(postcss@8.5.1)
@ -8886,9 +8975,9 @@ snapshots:
'@unocss/transformer-compile-class': 65.4.3 '@unocss/transformer-compile-class': 65.4.3
'@unocss/transformer-directives': 65.4.3 '@unocss/transformer-directives': 65.4.3
'@unocss/transformer-variant-group': 65.4.3 '@unocss/transformer-variant-group': 65.4.3
'@unocss/vite': 65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3)) '@unocss/vite': 65.4.3(rollup@4.32.0)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))(vue@3.5.13(typescript@5.7.3))
optionalDependencies: optionalDependencies:
vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0) vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)
transitivePeerDependencies: transitivePeerDependencies:
- postcss - postcss
- rollup - rollup
@ -8906,12 +8995,6 @@ snapshots:
ofetch: 1.4.1 ofetch: 1.4.1
ufo: 1.5.4 ufo: 1.5.4
update-browserslist-db@1.1.0(browserslist@4.23.2):
dependencies:
browserslist: 4.23.2
escalade: 3.1.2
picocolors: 1.0.1
update-browserslist-db@1.1.2(browserslist@4.24.4): update-browserslist-db@1.1.2(browserslist@4.24.4):
dependencies: dependencies:
browserslist: 4.24.4 browserslist: 4.24.4
@ -8963,7 +9046,7 @@ snapshots:
'@types/unist': 3.0.2 '@types/unist': 3.0.2
vfile-message: 4.0.2 vfile-message: 4.0.2
vite-plugin-solid@2.11.0(solid-js@1.8.19)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)): vite-plugin-solid@2.11.0(solid-js@1.8.19)(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)):
dependencies: dependencies:
'@babel/core': 7.25.2 '@babel/core': 7.25.2
'@types/babel__core': 7.20.5 '@types/babel__core': 7.20.5
@ -8971,12 +9054,12 @@ snapshots:
merge-anything: 5.1.7 merge-anything: 5.1.7
solid-js: 1.8.19 solid-js: 1.8.19
solid-refresh: 0.6.3(solid-js@1.8.19) solid-refresh: 0.6.3(solid-js@1.8.19)
vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0) vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)
vitefu: 1.0.5(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)) vitefu: 1.0.5(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0))
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0): vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0):
dependencies: dependencies:
esbuild: 0.24.2 esbuild: 0.24.2
postcss: 8.5.1 postcss: 8.5.1
@ -8985,13 +9068,14 @@ snapshots:
'@types/node': 22.0.2 '@types/node': 22.0.2
fsevents: 2.3.3 fsevents: 2.3.3
jiti: 2.4.2 jiti: 2.4.2
lightningcss: 1.29.1
sugarss: 4.0.1(postcss@8.5.1) sugarss: 4.0.1(postcss@8.5.1)
tsx: 4.19.2 tsx: 4.19.2
yaml: 2.5.0 yaml: 2.5.0
vitefu@1.0.5(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)): vitefu@1.0.5(vite@6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)):
optionalDependencies: optionalDependencies:
vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0) vite: 6.0.11(@types/node@22.0.2)(jiti@2.4.2)(lightningcss@1.29.1)(sugarss@4.0.1(postcss@8.5.1))(tsx@4.19.2)(yaml@2.5.0)
volar-service-css@0.0.62(@volar/language-service@2.4.11): volar-service-css@0.0.62(@volar/language-service@2.4.11):
dependencies: dependencies:

View file

@ -1,9 +0,0 @@
import UnoCSS from '@unocss/postcss'
import nesting from 'postcss-nesting'
export default {
plugins: [
UnoCSS(),
nesting(),
],
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

@ -1,22 +0,0 @@
@custom-media --mobile (max-width: 480px);
@custom-media --tablet (max-width: 720px);
@define-mixin font-2xs {
font-size: 10px;
line-height: 12px;
}
@define-mixin font-xs {
font-size: 12px;
line-height: 14px;
}
@define-mixin font-sm {
font-size: 14px;
line-height: 16px;
}
@define-mixin font-md {
font-size: 16px;
line-height: 20px;
}

View file

@ -1,18 +1,18 @@
.input { .input {
@apply hidden; --uno: hidden;
} }
.label { .label {
@apply flex items-center gap-2 cursor-pointer select-none; --uno: flex items-center gap-2 cursor-pointer select-none;
} }
.box { .box {
@apply bg-control-bg border-control-outline hover:bg-control-bg-hover pos-relative h-4 w-4 border rounded-md transition-all; --uno: bg-control-bg border-control-outline hover:bg-control-bg-hover pos-relative h-4 w-4 border rounded-md transition-all;
} }
.input:checked + .label .box::before { .input:checked + .label .box::before {
content: ''; content: '';
display: 'block'; display: 'block';
@apply bg-text-primary absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-2 h-2 rounded-sm; --uno: bg-text-primary absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-2 h-2 rounded-sm;
} }

View file

@ -44,8 +44,6 @@ const finalOg = { ...defaultOgTags, ...og }
</html> </html>
<style is:global> <style is:global>
@import '../components/shared.css';
:root { :root {
--bg: #fffcff; --bg: #fffcff;
--text-accent: #5e72be; --text-accent: #5e72be;
@ -86,6 +84,6 @@ const finalOg = { ...defaultOgTags, ...og }
} }
body { body {
@apply text-sm m-0 p-0 overflow-x-hidden overflow-y-auto bg-bg font-mono text-text-primary min-h-screen; --uno: text-sm m-0 p-0 overflow-x-hidden overflow-y-auto bg-bg font-mono text-text-primary min-h-screen;
} }
</style> </style>

View file

@ -76,102 +76,102 @@ const { Content, remarkPluginFrontmatter } = await render(post);
color: var(--text-content); color: var(--text-content);
h1 { @apply text-4xl font-bold mb-4; } h1 { --uno: text-4xl font-bold mb-4; }
h2 { @apply text-3xl font-bold mb-3 mt-3; } h2 { --uno: text-3xl font-bold mb-3 mt-3; }
h3 { @apply text-2xl font-bold mb-2 mt-2; } h3 { --uno: text-2xl font-bold mb-2 mt-2; }
h4 { @apply text-xl font-bold mb-2; } h4 { --uno: text-xl font-bold mb-2; }
h5 { @apply text-lg font-bold mb-2; } h5 { --uno: text-lg font-bold mb-2; }
h6 { @apply text-md font-bold mb-2; } h6 { --uno: text-md font-bold mb-2; }
.big { @apply text-2xl font-bold; } .big { --uno: text-2xl font-bold; }
.shout { @apply text-4xl font-bold; } .shout { --uno: text-4xl font-bold; }
.thought { .thought {
&::before { &::before {
content: '💭'; content: '💭';
@apply text-4xl font-bold; --uno: text-4xl font-bold;
} }
@apply p-4 mb-4 bg-control-bg-hover rounded-lg flex flex-row gap-4 items-center; --uno: p-4 mb-4 bg-control-bg-hover rounded-lg flex flex-row gap-4 items-center;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
@apply relative text-text-primary cursor-pointer -ml-1em pl-1em; --uno: relative text-text-primary cursor-pointer -ml-1em pl-1em;
[data-anchor-link] { [data-anchor-link] {
@apply hidden absolute left-0 text-text-secondary no-underline hover:underline; --uno: hidden absolute left-0 text-text-secondary no-underline hover:underline;
} }
&:hover [data-anchor-link] { &:hover [data-anchor-link] {
@apply inline; --uno: inline;
} }
} }
p { p {
@apply text-sm mb-5; --uno: text-sm mb-5;
line-height: 1.5; line-height: 1.5;
} }
ul { @apply list-disc list-outside mb-4 ml-4; } ul { --uno: list-disc list-outside mb-4 ml-4; }
ol { @apply mb-4 list-decimal list-outside ml-2em; } ol { --uno: mb-4 list-decimal list-outside ml-2em; }
li { li {
@apply text-sm mt-1; --uno: text-sm mt-1;
line-height: 1.5; line-height: 1.5;
} }
code { code {
@apply text-sm bg-control-bg-hover px-1 rounded-md; --uno: text-sm bg-control-bg-hover px-1 rounded-md;
color: var(--text-content); color: var(--text-content);
} }
blockquote { blockquote {
@apply border-l-4 border-text-secondary pl-4 mb-4 py-2; --uno: border-l-4 border-text-secondary pl-4 mb-4 py-2;
p { @apply text-sm mb-0; } p { --uno: text-sm mb-0; }
p + p { @apply mt-4; } p + p { --uno: mt-4; }
} }
pre { pre {
@apply bg-control-bg-hover text-text-secondary p-2 rounded-md mb-4; --uno: bg-control-bg-hover text-text-secondary p-2 rounded-md mb-4;
code { @apply bg-transparent; } code { --uno: bg-transparent; }
} }
table { table {
@apply border-collapse border-solid border-text-secondary border-spacing-0 mb-2; --uno: border-collapse border-solid border-text-secondary border-spacing-0 mb-2;
th, td { th, td {
@apply border border-text-secondary p-1; --uno: border border-text-secondary p-1;
} }
th { th {
@apply font-bold text-left; --uno: font-bold text-left;
} }
td { td {
@apply text-right; --uno: text-right;
} }
} }
a { a {
@apply text-text-accent underline hover:no-underline; --uno: text-text-accent underline hover:no-underline;
} }
.graphviz-svg { .graphviz-svg {
@apply w-full flex justify-center mb-4; --uno: w-full flex justify-center mb-4;
svg { svg {
@apply border border-text-secondary rounded-md --uno: border border-text-secondary rounded-md
} }
.graph { .graph {
text { text {
@apply font-mono; --uno: font-mono;
fill: var(--text-content); fill: var(--text-content);
font-size: 10px; font-size: 10px;
line-height: 1; line-height: 1;
} }
path, ellipse, polygon { @apply stroke-text-secondary; } path, ellipse, polygon { --uno: stroke-text-secondary; }
> polygon { > polygon {
@apply fill-transparent stroke-none; --uno: fill-transparent stroke-none;
} }
} }
} }

View file

@ -143,8 +143,6 @@ function convert(from: string, amount: number, period: 'hour' | 'month' | 'year'
</DefaultLayout> </DefaultLayout>
<style> <style>
@import '../components/shared.css';
.table-wrap { .table-wrap {
overflow: auto; overflow: auto;
margin-block: 12px; margin-block: 12px;
@ -159,7 +157,7 @@ function convert(from: string, amount: number, period: 'hour' | 'month' | 'year'
border: 1px solid var(--control-outline); border: 1px solid var(--control-outline);
padding: 4px 8px; padding: 4px 8px;
@media (--tablet) { @media (max-width: 600px) {
padding: 2px 4px; padding: 2px 4px;
} }
} }

View file

@ -1,4 +1,4 @@
import { defineConfig, presetIcons, presetUno, transformerVariantGroup } from 'unocss' import { defineConfig, presetIcons, presetUno, transformerCompileClass, transformerDirectives, transformerVariantGroup } from 'unocss'
export default defineConfig({ export default defineConfig({
presets: [ presets: [
@ -7,6 +7,8 @@ export default defineConfig({
], ],
transformers: [ transformers: [
transformerVariantGroup(), transformerVariantGroup(),
transformerCompileClass(),
transformerDirectives(),
], ],
shortcuts: { shortcuts: {
'content-dblslash': [ 'content-dblslash': [