-
-
Notifications
You must be signed in to change notification settings - Fork 26
docs: add dark mode support + theme toggle #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e43ca86
docs: add dark mode support
desmondinho 9212f5e
docs: add missing border for the preview component
desmondinho 7afed12
docs: remove extra border in the preview code component
desmondinho 670d862
chore(badge): improve flat variant contrast in light theme
desmondinho ac69e7a
chore(tabs): remove `EditorRequired` attribute from `Id` param
desmondinho c4d92ad
docs: add null check and theme class cleanup to prevent issues
desmondinho 874e83a
docs: remove IPopoverService injection from theme toggle component
desmondinho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,18 +1,30 @@ | ||
| @namespace LumexUI.Docs.Client.Components | ||
| @rendermode InteractiveWebAssembly | ||
|
|
||
| <div class="relative my-6 first:mt-0 last:mb-0 rounded-large overflow-hidden" @ref="@_ref"> | ||
| <div class="prose prose-zinc bg-zinc-800"> | ||
| @if( !string.IsNullOrEmpty( Code.Name ) ) | ||
| { | ||
| <div class="flex items-center px-3 py-2 text-xs leading-6 border-b border-zinc-600/50"> | ||
| <div class="flex items-center px-2 py-0.5 text-orange-400 bg-zinc-700/40 rounded-lg"> | ||
| <div class="group relative my-6 first:mt-0 last:mb-0" | ||
| data-expanded="@(Expandable ? _isExpanded.ToAttributeValue() : null)"> | ||
| <div class="rounded-large overflow-hidden group-data-[expanded=false]:max-h-72"> | ||
| <div class="prose prose-zinc dark:prose-invert"> | ||
| @if( !string.IsNullOrEmpty( Code.Name ) ) | ||
| { | ||
| <div class="flex items-center px-4 py-2.5 gap-2 border-b border-zinc-700 text-small text-foreground-400 bg-zinc-800 dark:text-foreground-500 dark:bg-zinc-900"> | ||
| <CodeXmlIcon Size="16" /> | ||
| @Code.Name | ||
| </div> | ||
| } | ||
|
|
||
| <div id="@Id" class="*:my-0" @ref="@_ref"> | ||
| @_renderCodeSnippet | ||
| </div> | ||
| } | ||
| <div id="@Id" class="*:my-0"> | ||
| @_renderCodeSnippet | ||
| </div> | ||
| </div> | ||
|
|
||
| @if( Expandable ) | ||
| { | ||
| <button type="button" | ||
| class="absolute inset-x-0 bottom-0 flex h-20 items-center justify-center rounded-b-large bg-linear-to-b from-default-800/70 to-default-800 text-foreground-200 text-small group-data-[expanded=true]:hidden dark:from-default-50/70 dark:to-default-50 dark:text-foreground-700" | ||
| @onclick="@(() => _isExpanded = true)"> | ||
| Expand | ||
| </button> | ||
| } | ||
| </div> |
This file contains hidden or 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
17 changes: 0 additions & 17 deletions
17
docs/LumexUI.Docs.Client/Components/CodeSnippetCollapsible.razor
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
docs/LumexUI.Docs.Client/Components/CodeSnippetCollapsible.razor.cs
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.