#How to extend CSS scoping to a child component?

7 messages · Page 1 of 1 (latest)

civic pumice
#

I have my posts in the following manner:

<!-- src/pages/posts/[id].astro -->

---
// some code, some getStaticPath

const item: Post = Astro.props.post;
---

<PostLayout>
  <div>
    <Pills list={item.frontmatter.tags} />
    <HeadTag post={item} />
  </div>
  <main>
    <item.Content />
  </main>
</PostLayout>

<style type="sass">
  // when I use the different styles here, under main, they get scoped.
  // when I add the is:global tag, they don't get the access to the CSS properties.
</style>
civic pumice
#

Or, is there a way to opt out of astro's css scoping by importing css? If I can, how do I import scss?

outer zodiac
civic pumice
outer zodiac
civic pumice
#

Here's the issue that I have, the <MarkdownPage.Content> is that from the markdown file, and I want to style that. It's not being created as a file, so I wasn't sure how to style it.
I can import a markdown.sass file though, and that solves it I guess. Thanks a lot for the time and effort, I'm really glad :)