Make WordPress Core

Changeset 48425


Ignore:
Timestamp:
07/10/2020 04:10:07 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Sitemaps: Remove some extra space from WP_Sitemaps_Stylesheet::get_stylesheet_css().

Follow-up to [48414].

See #50449.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php

    r48414 r48425  
    8787            <head>
    8888                <title>{$title}</title>
    89                 <style>{$css}</style>
     89                <style>
     90                    {$css}
     91                </style>
    9092            </head>
    9193            <body>
     
    193195            <head>
    194196                <title>{$title}</title>
    195                 <style>{$css}</style>
     197                <style>
     198                    {$css}
     199                </style>
    196200            </head>
    197201            <body>
     
    252256
    253257        $css = <<<EOF
    254        
     258
    255259                    body {
    256260                        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    257261                        color: #444;
    258262                    }
    259                    
     263
    260264                    #sitemap__table {
    261265                        border: solid 1px #ccc;
    262266                        border-collapse: collapse;
    263267                    }
    264                    
     268
    265269                    #sitemap__table tr td.loc {
    266270                        /*
    267271                         * URLs should always be LTR.
    268                          * see https://core.trac.wordpress.org/ticket/16834 and
    269                          * https://core.trac.wordpress.org/ticket/49949
     272                         * See https://core.trac.wordpress.org/ticket/16834
     273                         * and https://core.trac.wordpress.org/ticket/49949
    270274                         */
    271275                        direction: ltr;
    272276                    }
    273                    
     277
    274278                    #sitemap__table tr th {
    275279                        text-align: {$text_align};
    276280                    }
    277                    
     281
    278282                    #sitemap__table tr td,
    279283                    #sitemap__table tr th {
    280284                        padding: 10px;
    281285                    }
    282                    
     286
    283287                    #sitemap__table tr:nth-child(odd) td {
    284288                        background-color: #eee;
    285289                    }
    286                    
     290
    287291                    a:hover {
    288292                        text-decoration: none;
    289293                    }
     294
    290295EOF;
    291296
Note: See TracChangeset for help on using the changeset viewer.