diff options
author | 2022-08-31 15:18:53 -0400 | |
---|---|---|
committer | 2022-08-31 19:18:53 +0000 | |
commit | ca2d0728e421a19492dd88aa35c37626c6a2897a (patch) | |
tree | 9965eecf06f1eec0099e85441f77860d8e2064c2 /examples/docs/src/layouts/MainLayout.astro | |
parent | a5b659e91c5eb166e32cbe2beb9e3751e7ad99a1 (diff) | |
download | astro-ca2d0728e421a19492dd88aa35c37626c6a2897a.tar.gz astro-ca2d0728e421a19492dd88aa35c37626c6a2897a.tar.zst astro-ca2d0728e421a19492dd88aa35c37626c6a2897a.zip |
Update templates to avoid devDependencies and :global (#4544)
* devDependencies => dependencies
* :global -> is:global
* update lockfile
* remove unneeded markdown dependency
Diffstat (limited to 'examples/docs/src/layouts/MainLayout.astro')
-rw-r--r-- | examples/docs/src/layouts/MainLayout.astro | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/examples/docs/src/layouts/MainLayout.astro b/examples/docs/src/layouts/MainLayout.astro index 79a2f81a9..60d43922a 100644 --- a/examples/docs/src/layouts/MainLayout.astro +++ b/examples/docs/src/layouts/MainLayout.astro @@ -47,11 +47,6 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`; overflow-x: hidden; } - .layout :global(> *) { - width: 100%; - height: 100%; - } - .grid-sidebar { height: 100vh; position: sticky; @@ -78,15 +73,6 @@ 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; @@ -116,6 +102,21 @@ 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> |