diff options
Diffstat (limited to 'examples/docs/src/components')
-rw-r--r-- | examples/docs/src/components/PageContent/PageContent.astro | 7 | ||||
-rw-r--r-- | examples/docs/src/components/RightSidebar/RightSidebar.astro | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/examples/docs/src/components/PageContent/PageContent.astro b/examples/docs/src/components/PageContent/PageContent.astro index e0d96b57c..9af4056c9 100644 --- a/examples/docs/src/components/PageContent/PageContent.astro +++ b/examples/docs/src/components/PageContent/PageContent.astro @@ -2,9 +2,8 @@ import MoreMenu from "../RightSidebar/MoreMenu.astro"; import TableOfContents from "../RightSidebar/TableOfContents"; -const { content, githubEditUrl } = Astro.props; +const { content, headings, githubEditUrl } = Astro.props; const title = content.title; -const headings = content.astro.headings; --- <article id="article" class="content"> @@ -29,9 +28,11 @@ const headings = content.astro.headings; display: flex; flex-direction: column; } - .content > section { + + .content>section { margin-bottom: 4rem; } + .block { display: block; } diff --git a/examples/docs/src/components/RightSidebar/RightSidebar.astro b/examples/docs/src/components/RightSidebar/RightSidebar.astro index c009d2202..71ad5e1c2 100644 --- a/examples/docs/src/components/RightSidebar/RightSidebar.astro +++ b/examples/docs/src/components/RightSidebar/RightSidebar.astro @@ -1,8 +1,7 @@ --- import TableOfContents from "./TableOfContents"; import MoreMenu from "./MoreMenu.astro"; -const { content, githubEditUrl } = Astro.props; -const headings = content.astro.headings; +const { content, headings, githubEditUrl } = Astro.props; --- <nav class="sidebar-nav" aria-labelledby="grid-right"> @@ -18,6 +17,7 @@ const headings = content.astro.headings; position: sticky; top: 0; } + .sidebar-nav-inner { height: 100%; padding: 0; |