From 7c0a304cf4316a46b8d3db5d7933004cb0b0e866 Mon Sep 17 00:00:00 2001 From: laurelfulford Date: Fri, 18 Jan 2019 20:45:34 +0000 Subject: [PATCH] Twenty Nineteen: Fix alignment of page title when there are no posts. Fix the alignment of the "Nothing Found" page title when there are no posts, to match how it appears for the search results when nothing is found, and the 404 page. Props kjellr, lorenzone92. Fixes #45887. git-svn-id: https://develop.svn.wordpress.org/trunk@44652 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentynineteen/sass/site/primary/_archives.scss | 1 + src/wp-content/themes/twentynineteen/style-rtl.css | 4 ++++ src/wp-content/themes/twentynineteen/style.css | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/src/wp-content/themes/twentynineteen/sass/site/primary/_archives.scss b/src/wp-content/themes/twentynineteen/sass/site/primary/_archives.scss index e6e5f45894..c040c27b35 100644 --- a/src/wp-content/themes/twentynineteen/sass/site/primary/_archives.scss +++ b/src/wp-content/themes/twentynineteen/sass/site/primary/_archives.scss @@ -50,6 +50,7 @@ .error-404.not-found, .no-results.not-found { + .page-title, .page-content { margin: calc(3 * #{$size__spacing-unit}) #{$size__spacing-unit}; diff --git a/src/wp-content/themes/twentynineteen/style-rtl.css b/src/wp-content/themes/twentynineteen/style-rtl.css index 3bb1465405..c350a04a19 100644 --- a/src/wp-content/themes/twentynineteen/style-rtl.css +++ b/src/wp-content/themes/twentynineteen/style-rtl.css @@ -4800,13 +4800,17 @@ body.page .main-navigation { } /* 404 & Not found */ +.error-404.not-found .page-title, .error-404.not-found .page-content, +.no-results.not-found .page-title, .no-results.not-found .page-content { margin: calc(3 * 1rem) 1rem; } @media only screen and (min-width: 768px) { + .error-404.not-found .page-title, .error-404.not-found .page-content, + .no-results.not-found .page-title, .no-results.not-found .page-content { margin: calc(3 * 1rem) calc(10% + 60px) calc(1rem / 2); } diff --git a/src/wp-content/themes/twentynineteen/style.css b/src/wp-content/themes/twentynineteen/style.css index 34f353e690..6d5ccec058 100644 --- a/src/wp-content/themes/twentynineteen/style.css +++ b/src/wp-content/themes/twentynineteen/style.css @@ -4806,13 +4806,17 @@ body.page .main-navigation { } /* 404 & Not found */ +.error-404.not-found .page-title, .error-404.not-found .page-content, +.no-results.not-found .page-title, .no-results.not-found .page-content { margin: calc(3 * 1rem) 1rem; } @media only screen and (min-width: 768px) { + .error-404.not-found .page-title, .error-404.not-found .page-content, + .no-results.not-found .page-title, .no-results.not-found .page-content { margin: calc(3 * 1rem) calc(10% + 60px) calc(1rem / 2); }