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.


Built from https://develop.svn.wordpress.org/trunk@44652


git-svn-id: http://core.svn.wordpress.org/trunk@44483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
laurelfulford 2019-01-18 20:46:51 +00:00
parent b7897c5761
commit fc83cdfe6c
4 changed files with 10 additions and 1 deletions

View File

@ -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};

View File

@ -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);
}

View File

@ -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);
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-beta1-44651';
$wp_version = '5.1-beta1-44652';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.