From 20c52746091c2a256ee358bb71de09024380ba11 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Thu, 16 Jan 2020 20:42:09 +0100 Subject: [PATCH] Further tweaks after content updates. Wait #3332 @0.5 --- resources/styles/common/headings.styl | 10 +++++++--- resources/styles/common/markdown.styl | 3 +++ resources/views/pages/solution.blade.php | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/resources/styles/common/headings.styl b/resources/styles/common/headings.styl index a7b3114..abf4bd5 100644 --- a/resources/styles/common/headings.styl +++ b/resources/styles/common/headings.styl @@ -12,7 +12,7 @@ h1, h2, h3, h4 content: '' display: block -.h1 +.h1, .markdown h1 @apply text-6xl &:after @@ -26,7 +26,7 @@ h1, h2, h3, h4 +below(1000px) @apply text-4xl -.h2, .markdown h1 +.h2, .markdown h2 @apply text-4xl &:after @@ -35,5 +35,9 @@ h1, h2, h3, h4 constrain(width, 2.5vw) height: 4px -.h3, .markdown h2 +.h3, .template-text .markdown h2 font-size: 1.375rem + +// On text template pages, the H2's should look like H3's (no underline) +.template-text .markdown h2:after + display: none diff --git a/resources/styles/common/markdown.styl b/resources/styles/common/markdown.styl index 9cc2eed..3003312 100644 --- a/resources/styles/common/markdown.styl +++ b/resources/styles/common/markdown.styl @@ -1,6 +1,9 @@ // Markdown blocks .markdown + p + h2 + margin-top: 1.5em // Give H2's a bit more room when in the middle of text + table margin: 1.5em 0; diff --git a/resources/views/pages/solution.blade.php b/resources/views/pages/solution.blade.php index 46e2ca2..b7bc947 100644 --- a/resources/views/pages/solution.blade.php +++ b/resources/views/pages/solution.blade.php @@ -2,9 +2,9 @@ @section('content') - @intro(['padding' => 'pb-4v']) + @intro(['padding' => 'pb-2v']) - + -- 2.39.5