I have an mdx file with the following frontmatter:
---
{
title: "The Framework Field Guide",
associatedSeries: "Framework Field Guide",
description: "A practical and free way to teach Angular, React, and Vue all at once, so you can choose the right tool for the job and learn the underlying concepts in depth.",
authors: ["crutchcorn"],
coverImg: "./cover.png",
socialImg: "/framework_field_guide_social.png",
type: "book",
published: "2023-01-01T13:45:00.284Z",
layout: "../../../layouts/collections-mdx.astro",
}
---
Inside of layout, I have the following code:
---
import "../page-components/collections/collections.scss";
import "../styles/post-body.scss";
import "../styles/shiki.scss";
import "../styles/convertkit.scss";
import Document from "./document.astro";
---
<Document>
<slot />
</Document>
And while Document's scss import seems to load just fine, ../page-components/collections/collections.scss doesn't seem to apply at all.
Why is that? How can I fix that?