-
Notifications
You must be signed in to change notification settings - Fork 15
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
move styles for search results and mobile menu #1710
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ba8f826
Add PRODUCTS_MENU_LIST
hasparus 2d1505e
Replace --hive-meta-label-color and --hive-meta-lettermark-bg with Ta…
hasparus 26b0b56
Make HiveNavigation better on screens between 1024px to 1170px
hasparus f9f125a
Fix styles for mobiles after Headless UI in Nextra
hasparus 70974ef
Move styles for .nextra-sidebar-container
hasparus 6e807a9
Fix a path
hasparus a6a1424
Move kbd style
hasparus de76804
Move styles
hasparus 82f45b8
Add an absolute path to tailwind.config.ts
hasparus afd94bd
Revert "Add an absolute path to tailwind.config.ts"
hasparus ef724a1
Stop bundling styles to let the website have full control over colors
hasparus cf0584d
Add a missing type to PRODUCTS_MENU_LIST
hasparus 3956402
Bump the margin between logo and navigation menu to 16px
hasparus 258f43b
Fix a type error
hasparus 679f5c5
Rename .hive-search-results to .nextra-search-results to stop using m…
hasparus fb5a81b
Update Nextra
hasparus 7a49a4f
Update nextra-theme-docs
hasparus 144026e
Bump Nextra to 3.0.8
hasparus a766c15
Remove redundant style
hasparus 7ebe11f
Name and export withGuildDocs options to emit next.config.d.mts again
hasparus 3eb4ced
Cascade layers (#1712)
hasparus 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basically, the searchbox doesn't shrink anymore, and this should make it work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you use
&&
and not&
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, what is the purpose of
input:is(input)
? higher priority? use!important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or import nextra styles as layer https://nextra.site/docs/guide/advanced/customize-the-cascade-layers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, specificity. I'm definitely moving to importing nextra styles as layer. This is a good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks better now, but I think it will be even better to change search classes from
packages/components/style.css
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kinda wanna avoid putting global styles in the CSS if we can pass a className with Tailwind somewhere. Here the Search component is rendered by our HiveNavigation, so we can style it through the parent.