diff options
author | 2021-08-26 15:04:19 -0700 | |
---|---|---|
committer | 2021-08-26 15:04:44 -0700 | |
commit | fdd701dd88529ee0d4911283e35be86b000ed1fc (patch) | |
tree | 61d450d04633eece1c12b350b9ef3512dc2fa7b7 /examples/docs/src/components/RightSidebar/RightSidebar.astro | |
parent | 84c18d3030c98b2770144a8a27d1cca7bbfedc1d (diff) | |
parent | 2e8db7ad2384b756894eac6be72bcf720f7f28fa (diff) | |
download | astro-fdd701dd88529ee0d4911283e35be86b000ed1fc.tar.gz astro-fdd701dd88529ee0d4911283e35be86b000ed1fc.tar.zst astro-fdd701dd88529ee0d4911283e35be86b000ed1fc.zip |
Merge branch 'okikio/main' (#1111)
Diffstat (limited to 'examples/docs/src/components/RightSidebar/RightSidebar.astro')
-rw-r--r-- | examples/docs/src/components/RightSidebar/RightSidebar.astro | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/docs/src/components/RightSidebar/RightSidebar.astro b/examples/docs/src/components/RightSidebar/RightSidebar.astro new file mode 100644 index 000000000..ed1dd37cc --- /dev/null +++ b/examples/docs/src/components/RightSidebar/RightSidebar.astro @@ -0,0 +1,25 @@ +--- +import TableOfContents from './TableOfContents.jsx'; +import MoreMenu from './MoreMenu.astro'; +const {content, githubEditUrl} = Astro.props; +const headers = content.astro.headers; +--- +<style> + .sidebar-nav { + width: 100%; + position: sticky; + top: 0; + } + .sidebar-nav-inner { + height: 100%; + padding: 0; + padding-top: var(--doc-padding); + overflow: auto; + } +</style> +<nav class="sidebar-nav" aria-labelledby="grid-right"> + <div class="sidebar-nav-inner"> + <TableOfContents client:media="(min-width: 50em)" headers={headers} /> + <MoreMenu editHref={githubEditUrl} /> + </div> +</nav>
\ No newline at end of file |