summaryrefslogtreecommitdiff
path: root/examples/basics/src
diff options
context:
space:
mode:
authorGravatar Dan Jutan <danjutan@gmail.com> 2022-08-31 16:17:15 -0400
committerGravatar GitHub <noreply@github.com> 2022-08-31 16:17:15 -0400
commitd5bd23d5f41fe9618d705d75724092af49dd5bc5 (patch)
tree5672239b2d204d2cabc1863aca20a9ee6f400f7b /examples/basics/src
parentfa48d011098a48c1d609f6b70e6562d44c3217b5 (diff)
downloadastro-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.astro10
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;
}