diff options
author | 2022-08-31 16:17:15 -0400 | |
---|---|---|
committer | 2022-08-31 16:17:15 -0400 | |
commit | d5bd23d5f41fe9618d705d75724092af49dd5bc5 (patch) | |
tree | 5672239b2d204d2cabc1863aca20a9ee6f400f7b /examples/basics/src | |
parent | fa48d011098a48c1d609f6b70e6562d44c3217b5 (diff) | |
download | astro-d5bd23d5f41fe9618d705d75724092af49dd5bc5.tar.gz astro-d5bd23d5f41fe9618d705d75724092af49dd5bc5.tar.zst astro-d5bd23d5f41fe9618d705d75724092af49dd5bc5.zip |
Update templates to avoid devDependencies and :global (#4576)
* devDependencies => dependencies
* :global -> is:global
* update lockfile
* remove unneeded markdown dependency
* fix remaining merge conflicts
* update lockfile
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; } |