merge with upstream 9780def

This commit is contained in:
sevichecc 2022-08-26 17:26:55 +08:00
parent f69e5b86c5
commit 80a0b23071
4 changed files with 574 additions and 552 deletions

View file

@ -12,7 +12,7 @@
"tsc:watch": "tsc -w -p tsconfig.node.json",
"urara:build": "node urara.js build",
"urara:watch": "node urara.js watch",
"kit:dev": "cross-env NODE_OPTIONS=--max_old_space_size=7680 MODE=development vite dev",
"kit:dev": "cross-env NODE_OPTIONS=--max_old_space_size=7680 vite dev",
"kit:build": "cross-env NODE_OPTIONS=--max_old_space_size=7680 vite build",
"dev:parallel": "npm-run-all -p -r tsc:watch urara:watch \"kit:dev {@} \" --",
"dev": "npm-run-all -s tsc \"dev:parallel {@} \" --",
@ -41,21 +41,21 @@
"@sveltejs/adapter-static": "1.0.0-next.39",
"@sveltejs/kit": "1.0.0-next.405",
"@tailwindcss/typography": "^0.5.4",
"@types/node": "^18.7.3",
"@types/node": "^18.7.8",
"@types/unist": "^2.0.6",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"autoprefixer": "^10.4.8",
"chalk": "^5.0.1",
"chokidar": "^3.5.3",
"cross-env": "^7.0.3",
"cssnano": "^5.1.13",
"daisyui": "^2.24.0",
"eslint": "^8.21.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte3": "^4.0.0",
"fenceparser": "^2.2.0",
"fff-flavored-frontmatter": "~0.2.1",
"fff-flavored-frontmatter": "~0.2.2",
"github-slugger": "^1.4.0",
"mdast-util-to-string": "^3.1.0",
"mdsvex": "^0.10.6",
@ -71,15 +71,15 @@
"shiki-twoslash": "^3.1.0",
"svelte": "^3.49.0",
"svelte-bricks": "^0.1.7",
"svelte-check": "^2.8.0",
"svelte-check": "^2.8.1",
"svelte-preprocess": "^4.10.7",
"svelte-typeahead": "^4.2.4",
"tailwindcss": "^3.1.8",
"tslib": "^2.4.0",
"typescript": "^4.7.4",
"unist-util-visit": "^4.1.0",
"unocss": "^0.45.6",
"vite": "^3.0.7",
"unocss": "^0.45.8",
"vite": "^3.0.9",
"vite-plugin-pwa": "^0.12.3",
"workbox-window": "^6.5.4"
}

File diff suppressed because it is too large Load diff

View file

@ -37,6 +37,12 @@ html {
@apply text-primary;
}
/* .urara-prose list */
.urara-prose > ul > li > input {
@apply my-auto;
}
/* .urara-prose table */
.urara-prose div > table > thead {
@ -50,7 +56,7 @@ html {
/* .urara-prose a */
.urara-prose :is(p, li) > a {
@apply bg-[length:100%_0.2em] hover:bg-[length:100%_100%] bg-[position:0_88%] bg-gradient-to-t from-secondary/50 to-primary/25 bg-no-repeat transition-all ease-in-out !no-underline;
@apply bg-[length:100%_0.2em] hover:bg-[length:100%_100%] bg-[position:0_88%] bg-gradient-to-t from-secondary/50 to-secondary/40 bg-no-repeat transition-all ease-in-out !no-underline;
}
/* .urara-prose misc */
@ -101,8 +107,14 @@ footer a {
/* .urara-prose pre */
@media (max-width: 768px) {
.urara-prose > pre {
@apply -mx-8 rounded-none pb-0;
@apply -mx-8 rounded-none;
}
}
.urara-prose > pre {
@apply pb-0;
}
.urara-prose > pre > div.code-container {

View file

@ -12,7 +12,6 @@ import tailwindConfig from './tailwind.config'
import autoprefixer from 'autoprefixer'
import cssnano from 'cssnano'
export default defineConfig({
mode: process.env.MODE || 'production',
envPrefix: 'URARA_',
css: {
postcss: {