From 975812c7833377b23b06e6c55dc383a6ab5ea36b Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sun, 22 Sep 2019 21:58:06 +0000 Subject: [PATCH] Accessibility: Twenty Nineteen: Improve the special pages headings. Improves information provided by the headings, their alignment and spacing in the following special pages: - search page with and without search results - 404 page (no content) - archive pages Props ianbelanger, kjellr, nrqsnchz, audrasjb. Fixes #47140. git-svn-id: https://develop.svn.wordpress.org/trunk@46234 602fd350-edb4-49c9-b593-d223f7449a82 --- .../sass/site/primary/_archives.scss | 12 +++-------- .../themes/twentynineteen/search.php | 4 ++-- .../themes/twentynineteen/style-rtl.css | 20 +++---------------- .../themes/twentynineteen/style.css | 20 +++---------------- 4 files changed, 11 insertions(+), 45 deletions(-) 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 c040c27b35..a3cb801d3f 100644 --- a/src/wp-content/themes/twentynineteen/sass/site/primary/_archives.scss +++ b/src/wp-content/themes/twentynineteen/sass/site/primary/_archives.scss @@ -5,7 +5,7 @@ margin: $size__spacing-unit $size__spacing-unit calc(3 * #{$size__spacing-unit}); @include media(tablet) { - margin: 0 $size__site-margins $size__site-margins; + margin: 0 $size__site-margins calc(3 * #{$size__spacing-unit}); } .page-title { @@ -23,16 +23,11 @@ .page-description { display: inherit; clear: both; - - &:after { - content: "."; - font-weight: bold; - color: $color__text-light; - } } } -.archive .page-header .page-description { +.archive .page-header .page-description, +.search .page-header .page-description { display: block; color: $color__text-main; font-size: 1em; @@ -50,7 +45,6 @@ .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/search.php b/src/wp-content/themes/twentynineteen/search.php index 0191775041..84091a2f27 100644 --- a/src/wp-content/themes/twentynineteen/search.php +++ b/src/wp-content/themes/twentynineteen/search.php @@ -19,9 +19,9 @@ get_header();