-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update devDependencies `svelte` to `5.0.0-next.158` and `@sveltejs/vite-plugin-svelte` to `4.0.0-next.3` * Move global styles to app.css * Add explicit <tbody> to work around Svelte 5 issue (svelte/issues#12090) * Work around "Cannot assign to constant" Svelte 5 error * Workaround some Svelte 5 typescript errors with props/types * Move createEventDispatcher() after `data` declaration which seems to make Svelte 5 compiler happier (but unable to reproduce in REPL) * Upgrade to latest svelte 5 (next.175) * Use `toggleOff` instead of `toggle` to fix Svelte 5 calling twice and opening dialog * Disable sveld until Svelte 5 is supported * Fix `Stores` type no longer available * Update svelte and vite plugin to latest next release * Fix all "Self-closing HTML tags for non-void elements are ambiguous" warnings * Fix "Object literal may only specify known properties, and 'children' does not exist in type ..." due to slot forwarding * Revert unneeded change * Revert Svelte 5 dependency update and re-enable sveld to allow compatibility changes to be merged to main without running docs on Svelte 5 (since there are still oustanding issues) * Improve Svelte 5 compatibility, especially with docs (enabling `svelte-check` to pass)
- Loading branch information
Showing
21 changed files
with
175 additions
and
203 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'svelte-ux': minor | ||
--- | ||
|
||
Improve Svelte 5 compatibility, especially with docs (enabling `svelte-check` to pass) |
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
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
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 |
---|---|---|
@@ -1,3 +1,54 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
html { | ||
@apply bg-surface-200 accent-primary scroll-smooth; | ||
/* background-image: | ||
radial-gradient(at 0% 0%, hsl(var(--color-secondary) / 0.33) 0px, transparent 50%), | ||
radial-gradient(at 98% 1%, hsl(var(--color-primary) / 0.33) 0px, transparent 50%); */ | ||
} | ||
|
||
nav h1 { | ||
@apply py-2 pl-4 mt-4 text-sm text-surface-content font-bold bg-surface-200 border-t border-b; | ||
} | ||
|
||
nav h2 { | ||
@apply pt-4 pb-2 pl-4 text-xs text-surface-content font-bold; | ||
} | ||
|
||
main :is(h1, h2, h3):not(.prose *, .related *, .ApiDocs *) { | ||
scroll-margin-top: calc(var(--headerHeight) + 148px); /* app header + docs header */ | ||
} | ||
|
||
main h1:not(.prose *, .related *, .ApiDocs *) { | ||
@apply text-xl font-semibold mt-4 mb-2 border-b pb-1; | ||
} | ||
|
||
main h2:not(.prose *, .related *, .ApiDocs *) { | ||
@apply text-lg font-semibold mt-4 mb-1; | ||
} | ||
|
||
main h3:not(.prose *, .related *, .ApiDocs *) { | ||
@apply text-xs text-surface-content/50 mb-1; | ||
} | ||
main :not(.prose) h2 + h3 { | ||
@apply -mt-1; | ||
} | ||
|
||
main small { | ||
@apply text-xs text-surface-content/50 inline-block; | ||
} | ||
|
||
.TableOfContents small { | ||
@apply hidden; | ||
} | ||
|
||
/* Code/Preview backgrounds */ | ||
pre[class*='language-'] { | ||
@apply bg-surface-content; | ||
} | ||
|
||
.dark pre[class*='language-'] { | ||
@apply bg-surface-300; | ||
} |
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
Oops, something went wrong.