From f7623210afd0b100f09bffcbbf57f32142ba304b Mon Sep 17 00:00:00 2001 From: davegson <3080765+davegson@users.noreply.github.com> Date: Wed, 13 May 2020 09:55:43 +0200 Subject: [PATCH] Style podcast episode pages with tailwind --- _layouts/page_container.html | 2 +- _layouts/podcast.html | 57 +++++++++++++++--------------------- _sass/_page_container.scss | 28 +++++++++++++++++- 3 files changed, 51 insertions(+), 36 deletions(-) diff --git a/_layouts/page_container.html b/_layouts/page_container.html index a24d72f..0e49fda 100644 --- a/_layouts/page_container.html +++ b/_layouts/page_container.html @@ -2,7 +2,7 @@ layout: page --- -
+
diff --git a/_layouts/podcast.html b/_layouts/podcast.html index 2beea52..de3fbc2 100644 --- a/_layouts/podcast.html +++ b/_layouts/podcast.html @@ -1,40 +1,29 @@ --- -layout: page +layout: page_container title: "The Safing Podcast" heading: "The Safing Podcast" +container_class: "podcast" --- -
-
-
-
-
-
-
- {% assign title_length = page.title | size %} - #{{ page.title | slice: 2, 2 }} -

{{ page.title | slice: 7, title_length }}

-

{{ page.date | date: "%B %-d, %Y" }}

- -
- {{ content | replace: '', '' }} -
-

Description

- {{ page.summary }} -
-
-
-
-
+
+ {% assign title_length = page.title | size %} + #{{ page.title | slice: 2, 2 }} +

{{ page.title | slice: 7, title_length }}

+

{{ page.date | date: "%B %-d, %Y" }}

+ -
+
+
+ {{ content | replace: '', '' }} +

Description

+ {{ page.summary }} +
diff --git a/_sass/_page_container.scss b/_sass/_page_container.scss index 8237c03..f1a5090 100644 --- a/_sass/_page_container.scss +++ b/_sass/_page_container.scss @@ -1,3 +1,12 @@ +#page-container { + padding: 10rem 0; + + &.podcast { + padding-top: 16rem; + padding-bottom: 6rem; + } +} + #page-container content { p { padding-top: 1.8rem; @@ -41,6 +50,12 @@ font-weight: 800; } + h4 { + font-size: 1.1rem; + padding: 0.5rem 0; + font-weight: 500; + } + ul { padding-top: 2rem; } @@ -69,7 +84,7 @@ } p { - padding-top: 1rem; + padding: 0.5rem 0; } p img { @@ -90,5 +105,16 @@ margin-bottom: 4rem; margin-top: 5rem; } + + .podcast h2 { + padding-top: 1rem; + font-weight: 500; + font-size: 1rem; + padding-bottom: 0.5rem; + } + + audio { + padding-bottom: 1.5rem; + } } }