summaryrefslogtreecommitdiff
path: root/examples/docs/src
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2022-01-18 08:34:12 -0500
committerGravatar GitHub <noreply@github.com> 2022-01-18 08:34:12 -0500
commitbcc617f9dc560bd61535c136297e97fb11013d6f (patch)
treeadbc508939ea66350d08533f3745a146ea455473 /examples/docs/src
parent672b831940dd90687da71225e5ca1d8326d42556 (diff)
downloadastro-bcc617f9dc560bd61535c136297e97fb11013d6f.tar.gz
astro-bcc617f9dc560bd61535c136297e97fb11013d6f.tar.zst
astro-bcc617f9dc560bd61535c136297e97fb11013d6f.zip
Update examples to move away from Astro.resolve on styles (#2393)
* Update examples to move away from Astro.resolve on styles * Prepend the subpath * Adds a changeset * Switch to @import for the starter
Diffstat (limited to 'examples/docs/src')
-rw-r--r--examples/docs/src/components/HeadCommon.astro8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/docs/src/components/HeadCommon.astro b/examples/docs/src/components/HeadCommon.astro
index 289aa23aa..2902da5a3 100644
--- a/examples/docs/src/components/HeadCommon.astro
+++ b/examples/docs/src/components/HeadCommon.astro
@@ -8,9 +8,11 @@
<link rel="sitemap" href="/sitemap.xml" />
<!-- Global CSS -->
-<link rel="stylesheet" href={Astro.resolve('../styles/theme.css')} />
-<link rel="stylesheet" href={Astro.resolve('../styles/code.css')} />
-<link rel="stylesheet" href={Astro.resolve('../styles/index.css')} />
+<style global>
+ @import "../styles/theme.css";
+ @import "../styles/code.css";
+ @import "../styles/index.css";
+</style>
<!-- Preload Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />