Fix oscilloscope CSS: use is:global for child component styles

Astro scopes <style> block imports to the authoring component.
Since OscilloscopeDisplay.astro is a child of index.astro, the
scoped selectors didn't match. Move the CSS import into the
component itself with is:global.
This commit is contained in:
Ryan Malloy 2026-02-20 16:31:20 -07:00
parent 4b2ce896b5
commit 67bb47c0cd
2 changed files with 4 additions and 1 deletions

View File

@ -599,3 +599,7 @@
// Re-init on Astro page transitions
document.addEventListener('astro:page-load', initAll);
</script>
<style is:global>
@import '../styles/oscilloscope.css';
</style>

View File

@ -24,7 +24,6 @@ try {
>
<style>
@import '../styles/homepage.css';
@import '../styles/oscilloscope.css';
</style>
<!-- Hero: Split layout — text left, animated scope visual right -->