-
Notifications
You must be signed in to change notification settings - Fork 207
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
adding header links to sidebar on mobile #1211
Merged
Merged
Changes from 16 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
1b35d00
initial commit, adding header links to sidebar on mobile
thisisjofrank 4f8fff8
make it happen at tablet too
thisisjofrank 99753fd
style like homepage sidenav
thisisjofrank 1c37e72
Merge branch 'main' into add-header-links-in-sidebar
thisisjofrank 1e743aa
Merge branch 'main' into add-header-links-in-sidebar
thisisjofrank ff0df6d
update sidebar order
thisisjofrank 57e98f0
add sidear to api ref
thisisjofrank 24b7dd0
fmt
thisisjofrank a0842b3
Merge branch 'main' into add-header-links-in-sidebar
thisisjofrank de58f2f
add scroll to top
thisisjofrank b0d8790
Merge branch 'add-header-links-in-sidebar' of https://github.com/deno…
thisisjofrank 45d0415
fmt
thisisjofrank a300383
remove colour
thisisjofrank 17843ce
Merge branch 'main' into add-header-links-in-sidebar
thisisjofrank a515935
add totop
thisisjofrank c6038e0
Merge branch 'add-header-links-in-sidebar' of https://github.com/deno…
thisisjofrank 81e8add
Style section switcher
josh-collinsworth 2b017ff
update header on homepage, update back to top styles
thisisjofrank 971031f
fmt
thisisjofrank 665c2b2
styles button
thisisjofrank 2f6e474
Merge branch 'main' of https://github.com/denoland/docs into add-head…
thisisjofrank d6f5015
styles button
thisisjofrank 3100786
styles button
thisisjofrank 3d46677
Merge branch 'main' into add-header-links-in-sidebar
thisisjofrank 73dc575
Minor styling updates; add aliases
josh-collinsworth a912608
fix styles for active deploy and subhosting
thisisjofrank 97b849a
Merge branch 'add-header-links-in-sidebar' of https://github.com/deno…
thisisjofrank 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default function SidebarTopNav(props: { name: string; url: string }) { | ||
return ( | ||
<li class="mx-2"> | ||
<a | ||
class="block px-3 py-1.5 text-[.8125rem] leading-4 font-normal text-foreground-secondary rounded-md ring-1 ring-transparent hover:ring-background-tertiary hover:bg-background-secondary current:bg-background-secondary current:text-blue-500 current:font-semibold transition-colors duration-200 ease-in-out select-none" | ||
href={props.url} | ||
> | ||
{props.name} | ||
</a> | ||
</li> | ||
); | ||
} |
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,12 @@ | ||
export default function ToTop() { | ||
return ( | ||
<a href="#" className="top docs-cta runtime-cta"> | ||
<span> | ||
⇧ | ||
</span> | ||
<span> | ||
To top | ||
</span> | ||
</a> | ||
); | ||
} |
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
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.
sorry for this hack, I can't edit the z-50 on the reference doc that is generated
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.
Can you isolate it instead? May be a little cleaner. https://tailwindcss.com/docs/isolation