From cff15dffa778cd2308cd1d578e908d6ef7c3be7e Mon Sep 17 00:00:00 2001 From: Thomas Cole Date: Sun, 8 Jan 2023 15:43:34 -0500 Subject: [PATCH] Moved post css into inline to fix scope issue. --- src/layouts/InteractiveDemoLayout.astro | 66 ++++++++++++++++++++++--- src/styles/Markdown.css | 27 ---------- 2 files changed, 59 insertions(+), 34 deletions(-) delete mode 100644 src/styles/Markdown.css diff --git a/src/layouts/InteractiveDemoLayout.astro b/src/layouts/InteractiveDemoLayout.astro index 392a7d1..2bedd00 100644 --- a/src/layouts/InteractiveDemoLayout.astro +++ b/src/layouts/InteractiveDemoLayout.astro @@ -1,22 +1,74 @@ --- import Divider from "../components/misc/Divider.astro"; import Layout from "./Layout.astro"; -import '../styles/Markdown.css'; +//import '../styles/Markdown.css'; const { frontmatter } = Astro.props; --- -
+

{frontmatter.title}

{frontmatter.date}

- + + +
- \ No newline at end of file + diff --git a/src/styles/Markdown.css b/src/styles/Markdown.css deleted file mode 100644 index ee7508a..0000000 --- a/src/styles/Markdown.css +++ /dev/null @@ -1,27 +0,0 @@ -.astro-code{ - margin-bottom: 1rem; - padding: 8px; -} - -h1,h2,h3,h4,h5,h6,p,hr{ - margin-bottom: 1rem; -} - -h1{ - font-size: 3rem; - line-height: 1; -} - -h2{ - font-size: 2.25rem; - line-height: 2.5rem; -} - -h3{ - font-size: 1.875rem; - line-height: 2.25rem; -} - -img{ - margin: auto; -} \ No newline at end of file