Skip to content
Permalink
Browse files

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
  • Loading branch information...
afercia committed Sep 22, 2019
1 parent 308e86c commit 975812c7833377b23b06e6c55dc383a6ab5ea36b
@@ -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};
@@ -19,9 +19,9 @@

<header class="page-header">
<h1 class="page-title">
<?php _e( 'Search results for:', 'twentynineteen' ); ?>
<?php _e( 'Search results for: ', 'twentynineteen' ); ?>
<span class="page-description"><?php echo get_search_query(); ?></span>
</h1>
<div class="page-description"><?php echo get_search_query(); ?></div>
</header><!-- .page-header -->

<?php
@@ -4939,7 +4939,7 @@ body.page .main-navigation {
.archive .page-header,
.search .page-header,
.error404 .page-header {
margin: 0 calc(10% + 60px) calc(10% + 60px);
margin: 0 calc(10% + 60px) calc(3 * 1rem);
}
}

@@ -4967,18 +4967,8 @@ body.page .main-navigation {
clear: both;
}

.archive .page-header .search-term:after,
.archive .page-header .page-description:after,
.search .page-header .search-term:after,
.search .page-header .page-description:after,
.error404 .page-header .search-term:after,
.error404 .page-header .page-description:after {
content: ".";
font-weight: bold;
color: #767676;
}

.archive .page-header .page-description {
.archive .page-header .page-description,
.search .page-header .page-description {
display: block;
color: #111;
font-size: 1em;
@@ -4991,17 +4981,13 @@ 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);
}
@@ -4945,7 +4945,7 @@ body.page .main-navigation {
.archive .page-header,
.search .page-header,
.error404 .page-header {
margin: 0 calc(10% + 60px) calc(10% + 60px);
margin: 0 calc(10% + 60px) calc(3 * 1rem);
}
}

@@ -4973,18 +4973,8 @@ body.page .main-navigation {
clear: both;
}

.archive .page-header .search-term:after,
.archive .page-header .page-description:after,
.search .page-header .search-term:after,
.search .page-header .page-description:after,
.error404 .page-header .search-term:after,
.error404 .page-header .page-description:after {
content: ".";
font-weight: bold;
color: #767676;
}

.archive .page-header .page-description {
.archive .page-header .page-description,
.search .page-header .page-description {
display: block;
color: #111;
font-size: 1em;
@@ -4997,17 +4987,13 @@ 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);
}

0 comments on commit 975812c

Please sign in to comment.
You can’t perform that action at this time.