From 7632b4058e443b5381248844f129540af4b621c0 Mon Sep 17 00:00:00 2001 From: Dan Head Date: Sat, 15 Dec 2018 17:38:37 +0000 Subject: [PATCH] Fix layout issues in Webkit browsers --- css/content.css | 1 - css/page.css | 12 ++++++------ theme/index.php | 4 ++-- theme/page.php | 29 ++++++++++++----------------- theme/search.php | 12 +++++------- theme/single.php | 8 ++++---- theme/tag.php | 12 +++++------- 7 files changed, 34 insertions(+), 44 deletions(-) diff --git a/css/content.css b/css/content.css index b9e321c..502fb28 100644 --- a/css/content.css +++ b/css/content.css @@ -1,6 +1,5 @@ .content { border-bottom: 1px solid var(--color-light-grey); - margin-bottom: var(--space-md); padding-bottom: var(--space-md); } diff --git a/css/page.css b/css/page.css index 7a6ee91..60c4802 100644 --- a/css/page.css +++ b/css/page.css @@ -27,7 +27,8 @@ @media (--viewport-lg) { .page { grid-template-columns: 224px 1fr; - grid-template-rows: 60px 134px; + grid-template-rows: 60px 134px 1fr; + grid-auto-rows: auto; grid-gap: var(--space-md); padding: 0 var(--space-md); } @@ -45,16 +46,15 @@ .page__content, .page__article { grid-column-start: 2; + } + + .page__content, + .page__article.is-first { grid-row: span 2; } .page__metadata { grid-column-start: 1; - grid-row: span 2; - } - - .page__metadata.is-first { - grid-row: span 1; } .page__pagination, diff --git a/theme/index.php b/theme/index.php index e1ad4e2..f26fbd2 100644 --- a/theme/index.php +++ b/theme/index.php @@ -4,7 +4,7 @@ -
+
-
+ diff --git a/theme/page.php b/theme/page.php index 88d6618..35766e6 100644 --- a/theme/page.php +++ b/theme/page.php @@ -4,27 +4,22 @@
-
-
-
-

- - - -

- »', 'windycoys')); ?> +
+
+

+ +

+
-
+
-
-
-

Sorry, there is no article to display

-
- Go back home -
-
+
+
+

Sorry, there is no article to display

+ Go back home +
diff --git a/theme/search.php b/theme/search.php index dd5448b..edf4507 100644 --- a/theme/search.php +++ b/theme/search.php @@ -56,13 +56,11 @@ get_header();
-
- +
+
+

Sorry, no results found.

+ Go back home +
diff --git a/theme/single.php b/theme/single.php index fe60f49..6224053 100644 --- a/theme/single.php +++ b/theme/single.php @@ -4,7 +4,7 @@
-
+
-