diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 3ed2875..880f556 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -95,7 +95,6 @@ const posts = (await getCollection('blog')).sort(
  • { - post.data.heroImage ? : diff --git a/src/styles/blog.css b/src/styles/blog.css index 5f5cb4c..cfcd8e5 100644 --- a/src/styles/blog.css +++ b/src/styles/blog.css @@ -15,6 +15,7 @@ --box-shadow: 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%), 0 16px 32px rgba(var(--gray), 33%); } + @font-face { font-family: 'Atkinson'; src: url('/fonts/atkinson-regular.woff') format('woff'); @@ -22,6 +23,7 @@ font-style: normal; font-display: swap; } + @font-face { font-family: 'Atkinson'; src: url('/fonts/atkinson-bold.woff') format('woff'); @@ -29,6 +31,7 @@ font-style: normal; font-display: swap; } + body { font-family: 'Atkinson', sans-serif; margin: 0; @@ -43,12 +46,14 @@ body { line-height: 1.7; } + main { width: 720px; max-width: calc(100% - 2em); margin: auto; padding: 3em 1em; } + h1, h2, h3, @@ -59,28 +64,36 @@ h6 { color: rgb(var(--black)); line-height: 1.2; } + h1 { font-size: 3.052em; } + h2 { font-size: 2.441em; } + h3 { font-size: 1.953em; } + h4 { font-size: 1.563em; } + h5 { font-size: 1.25em; } + strong, b { font-weight: 700; } + a { color: var(--accent); } + a:hover { color: var(--accent); } @@ -92,13 +105,12 @@ table { margin-bottom: 1em; } -.prose -{ +.prose { + & p, & ul, & ol, - & table - { + & table { margin-bottom: 2em; } } @@ -107,43 +119,53 @@ textarea { width: 100%; font-size: 16px; } + input { font-size: 16px; } + table { width: 100%; } + img { max-width: 100%; height: auto; border-radius: 8px; } + code { padding: 2px 5px; background-color: rgb(var(--gray-light)); border-radius: 2px; } + pre { padding: 1.5em; border-radius: 8px; } -pre > code { + +pre>code { all: unset; } + blockquote { border-left: 4px solid var(--accent); padding: 0 0 0 20px; margin: 0px; font-size: 1.333em; } + hr { border: none; border-top: 1px solid rgb(var(--gray-light)); } + @media (max-width: 720px) { body { font-size: 18px; } + main { padding: 1em; } @@ -165,4 +187,4 @@ hr { clip-path: inset(50%); /* added line to stop words getting smushed together (as they go onto separate lines and some screen readers do not understand line feeds as a space */ white-space: nowrap; -} +} \ No newline at end of file