diff options
author | 2022-08-31 15:18:53 -0400 | |
---|---|---|
committer | 2022-08-31 19:18:53 +0000 | |
commit | ca2d0728e421a19492dd88aa35c37626c6a2897a (patch) | |
tree | 9965eecf06f1eec0099e85441f77860d8e2064c2 /examples/basics/src | |
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/basics/src')
-rw-r--r-- | examples/basics/src/layouts/Layout.astro | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro index e39be4386..5c724bfdd 100644 --- a/examples/basics/src/layouts/Layout.astro +++ b/examples/basics/src/layouts/Layout.astro @@ -41,15 +41,19 @@ const { title } = Astro.props; margin: 0; } - :global(h1) { + +</style> + +<style is:global> + h1 { font-size: var(--font-size-xl); } - :global(h2) { + h2 { font-size: var(--font-size-lg); } - :global(code) { + code { font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; } |