From 8ba3199965d27fb74e53c976e603a17a572ca732 Mon Sep 17 00:00:00 2001 From: Holger Meyer Date: Thu, 25 May 2023 16:18:01 +0200 Subject: [PATCH] fix: SCSS and PHP linting issues --- site/snippets/blocks/images.php | 2 +- site/snippets/header.php | 2 +- site/templates/search.php | 2 +- src/main.scss | 24 ++++++++---------------- 4 files changed, 11 insertions(+), 19 deletions(-) diff --git a/site/snippets/blocks/images.php b/site/snippets/blocks/images.php index 40801d2..e85980d 100644 --- a/site/snippets/blocks/images.php +++ b/site/snippets/blocks/images.php @@ -21,4 +21,4 @@ - \ No newline at end of file + diff --git a/site/snippets/header.php b/site/snippets/header.php index d41bbef..cc6a304 100644 --- a/site/snippets/header.php +++ b/site/snippets/header.php @@ -23,4 +23,4 @@ - \ No newline at end of file + diff --git a/site/templates/search.php b/site/templates/search.php index 73cbef6..14d68cd 100644 --- a/site/templates/search.php +++ b/site/templates/search.php @@ -47,4 +47,4 @@ - \ No newline at end of file + diff --git a/src/main.scss b/src/main.scss index dae6b19..e1b4eba 100644 --- a/src/main.scss +++ b/src/main.scss @@ -40,10 +40,6 @@ @apply text-headline-3 md:text-headline-3-md font-bold hyphens-auto; } - .headline-3 { - @apply text-headline-3 md:text-headline-3-md font-bold hyphens-auto; - } - .copy { @apply text-copy md:text-copy-md hyphens-auto; } @@ -55,6 +51,10 @@ .richtext { h2 { @apply text-headline-2 md:text-headline-2-md font-bold hyphens-auto; + + &:not(:first-child) { + @apply mt-xl; + } } h3 { @@ -67,6 +67,10 @@ p { @apply text-copy md:text-copy-md inline-block; + + &:not(:last-child) { + @apply mb-s; + } } p + h2, @@ -85,12 +89,6 @@ } } - h2 { - &:not(:first-child) { - @apply mt-xl; - } - } - h3, h4 { &:not(:first-child) { @@ -98,12 +96,6 @@ } } - p { - &:not(:last-child) { - @apply mb-s; - } - } - ul { @apply list-inside list-disc; }