From c85c7e2188c5e385f97bf43a3ba822c8e23a0e8a Mon Sep 17 00:00:00 2001
From: Drew Powers <1369770+drwpow@users.noreply.github.com>
Date: Tue, 26 Oct 2021 09:57:17 -0600
Subject: [PATCH] Template fixes (#1656)
---
examples/blog/public/blog.css | 24 +---
examples/blog/src/components/BlogHeader.astro | 4 +-
.../blog/src/components/BlogPostPreview.astro | 5 +-
examples/blog/src/layouts/BlogPost.astro | 15 ++-
examples/blog/src/pages/index.astro | 10 +-
examples/blog/src/pages/posts/index.md | 6 +-
examples/portfolio/src/pages/about.astro | 3 +-
packages/astro/src/@types/astro-core.ts | 20 ++--
packages/astro/src/core/create-vite.ts | 103 +-----------------
packages/astro/src/core/ssr/css.ts | 3 +-
packages/astro/src/runtime/server/index.ts | 4 +-
packages/astro/test/astro-pagination.test.js | 7 +-
12 files changed, 41 insertions(+), 163 deletions(-)
diff --git a/examples/blog/public/blog.css b/examples/blog/public/blog.css
index 9264f4e02..1bd7479ce 100644
--- a/examples/blog/public/blog.css
+++ b/examples/blog/public/blog.css
@@ -90,31 +90,19 @@ body {
}
body {
- display: flex;
- flex-direction: column;
- min-height: 100vh;
font-family: var(--font-body);
font-size: 1rem;
font-size: clamp(0.875rem, 0.4626rem + 1.0309vw + var(--user-font-scale), 1.125rem);
line-height: 1.625;
}
-body {
+.wrapper {
+ margin-left: auto;
+ margin-right: auto;
+ max-width: 65em;
+ padding-left: 2rem;
+ padding-right: 2rem;
width: 100%;
- display: grid;
- --gutter: 0.5rem;
- --doc-padding: 2rem;
-}
-
-.layout {
- display: grid;
- grid-auto-flow: column;
- grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--max-width)) minmax(var(--gutter), 1fr);
- gap: 1em;
-}
-
-.layout > :is(main, article) {
- grid-column: 2;
}
nav ul {
diff --git a/examples/blog/src/components/BlogHeader.astro b/examples/blog/src/components/BlogHeader.astro
index 35ea272b7..92d0cbfb1 100644
--- a/examples/blog/src/components/BlogHeader.astro
+++ b/examples/blog/src/components/BlogHeader.astro
@@ -56,7 +56,7 @@ h1 a {
}
-
@@ -87,4 +87,4 @@ h1 a {