Make WordPress Core

Ticket #47140: 47140.1.diff

File 47140.1.diff, 4.2 KB (added by kjellr, 5 years ago)
  • src/wp-content/themes/twentynineteen/sass/site/primary/_archives.scss

     
    55        margin: $size__spacing-unit $size__spacing-unit calc(3 * #{$size__spacing-unit});
    66
    77        @include media(tablet) {
    8                 margin: 0 $size__site-margins $size__site-margins;
     8                margin: 0 $size__site-margins calc(3 * #{$size__spacing-unit});
    99        }
    1010
    1111        .page-title {
     
    2525                clear: both;
    2626
    2727                &:after {
    28                         content: ".";
    2928                        font-weight: bold;
    3029                        color: $color__text-light;
    3130                }
     
    3231        }
    3332}
    3433
    35 .archive .page-header .page-description {
     34.archive .page-header .page-description,
     35.search .page-header .page-description {
    3636        display: block;
    3737        color: $color__text-main;
    3838        font-size: 1em;
     
    5050.error-404.not-found,
    5151.no-results.not-found {
    5252
    53         .page-title,
    5453        .page-content {
    5554
    5655                margin: calc(3 * #{$size__spacing-unit}) #{$size__spacing-unit};
  • src/wp-content/themes/twentynineteen/search.php

     
    1919
    2020                        <header class="page-header">
    2121                                <h1 class="page-title">
    22                                         <?php _e( 'Search results for:', 'twentynineteen' ); ?>
     22                                        <?php _e( 'Search results for: ', 'twentynineteen' ); ?>
     23                                        <span class="page-description"><?php echo get_search_query(); ?></span>
    2324                                </h1>
    24                                 <div class="page-description"><?php echo get_search_query(); ?></div>
    2525                        </header><!-- .page-header -->
    2626
    2727                        <?php
  • src/wp-content/themes/twentynineteen/style-rtl.css

     
    49734973.search .page-header .page-description:after,
    49744974.error404 .page-header .search-term:after,
    49754975.error404 .page-header .page-description:after {
    4976   content: ".";
    49774976  font-weight: bold;
    49784977  color: #767676;
    49794978}
    49804979
    4981 .archive .page-header .page-description {
     4980.archive .page-header .page-description,
     4981.search .page-header .page-description {
    49824982  display: block;
    49834983  color: #111;
    49844984  font-size: 1em;
     
    49914991}
    49924992
    49934993/* 404 & Not found */
    4994 .error-404.not-found .page-title,
    49954994.error-404.not-found .page-content,
    4996 .no-results.not-found .page-title,
    49974995.no-results.not-found .page-content {
    49984996  margin: calc(3 * 1rem) 1rem;
    49994997}
    50004998
    50014999@media only screen and (min-width: 768px) {
    5002   .error-404.not-found .page-title,
    50035000  .error-404.not-found .page-content,
    5004   .no-results.not-found .page-title,
    50055001  .no-results.not-found .page-content {
    50065002    margin: calc(3 * 1rem) calc(10% + 60px) calc(1rem / 2);
    50075003  }
  • src/wp-content/themes/twentynineteen/style.css

     
    49454945  .archive .page-header,
    49464946  .search .page-header,
    49474947  .error404 .page-header {
    4948     margin: 0 calc(10% + 60px) calc(10% + 60px);
     4948    margin: 0 calc(10% + 60px) calc(3 * 1rem);
    49494949  }
    49504950}
    49514951
     
    49794979.search .page-header .page-description:after,
    49804980.error404 .page-header .search-term:after,
    49814981.error404 .page-header .page-description:after {
    4982   content: ".";
    49834982  font-weight: bold;
    49844983  color: #767676;
    49854984}
    49864985
    4987 .archive .page-header .page-description {
     4986.archive .page-header .page-description,
     4987.search .page-header .page-description {
    49884988  display: block;
    49894989  color: #111;
    49904990  font-size: 1em;
     
    49974997}
    49984998
    49994999/* 404 & Not found */
    5000 .error-404.not-found .page-title,
    50015000.error-404.not-found .page-content,
    5002 .no-results.not-found .page-title,
    50035001.no-results.not-found .page-content {
    50045002  margin: calc(3 * 1rem) 1rem;
    50055003}
    50065004
    50075005@media only screen and (min-width: 768px) {
    5008   .error-404.not-found .page-title,
    50095006  .error-404.not-found .page-content,
    5010   .no-results.not-found .page-title,
    50115007  .no-results.not-found .page-content {
    50125008    margin: calc(3 * 1rem) calc(10% + 60px) calc(1rem / 2);
    50135009  }