summaryrefslogtreecommitdiff
path: root/examples/docs/src/layouts/MainLayout.astro
diff options
context:
space:
mode:
authorGravatar Dan Jutan <danjutan@gmail.com> 2022-08-31 15:27:36 -0400
committerGravatar GitHub <noreply@github.com> 2022-08-31 15:27:36 -0400
commit23d4f80145d083a707b570b9a563ec5621060df9 (patch)
tree2bde65c4823c2d61c823672a03828fe262e12590 /examples/docs/src/layouts/MainLayout.astro
parentca2d0728e421a19492dd88aa35c37626c6a2897a (diff)
downloadastro-23d4f80145d083a707b570b9a563ec5621060df9.tar.gz
astro-23d4f80145d083a707b570b9a563ec5621060df9.tar.zst
astro-23d4f80145d083a707b570b9a563ec5621060df9.zip
Revert "Update templates to avoid devDependencies and :global (#4544)" (#4575)
This reverts commit ca2d0728e421a19492dd88aa35c37626c6a2897a.
Diffstat (limited to 'examples/docs/src/layouts/MainLayout.astro')
-rw-r--r--examples/docs/src/layouts/MainLayout.astro29
1 files changed, 14 insertions, 15 deletions
diff --git a/examples/docs/src/layouts/MainLayout.astro b/examples/docs/src/layouts/MainLayout.astro
index 60d43922a..79a2f81a9 100644
--- a/examples/docs/src/layouts/MainLayout.astro
+++ b/examples/docs/src/layouts/MainLayout.astro
@@ -47,6 +47,11 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
overflow-x: hidden;
}
+ .layout :global(> *) {
+ width: 100%;
+ height: 100%;
+ }
+
.grid-sidebar {
height: 100vh;
position: sticky;
@@ -73,6 +78,15 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
display: none;
}
+ :global(.mobile-sidebar-toggle) {
+ overflow: hidden;
+ }
+
+ :global(.mobile-sidebar-toggle) #grid-left {
+ display: block;
+ top: 2rem;
+ }
+
@media (min-width: 50em) {
.layout {
overflow: initial;
@@ -102,21 +116,6 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
}
}
</style>
- <style is:global>
- .layout > * {
- width: 100%;
- height: 100%;
- }
-
- .mobile-sidebar-toggle {
- overflow: hidden;
- }
-
- .mobile-sidebar-toggle #grid-left {
- display: block;
- top: 2rem;
- }
- </style>
</head>
<body>