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

Follow-up to [48414].

See #50449.
Built from https://develop.svn.wordpress.org/trunk@48425


git-svn-id: http://core.svn.wordpress.org/trunk@48194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-10 16:12:03 +00:00
parent 51856d435b
commit 376435ac9a
2 changed files with 17 additions and 12 deletions

View File

@ -86,7 +86,9 @@ class WP_Sitemaps_Stylesheet {
<html {$lang}> <html {$lang}>
<head> <head>
<title>{$title}</title> <title>{$title}</title>
<style>{$css}</style> <style>
{$css}
</style>
</head> </head>
<body> <body>
<div id="sitemap__header"> <div id="sitemap__header">
@ -192,7 +194,9 @@ XSL;
<html {$lang}> <html {$lang}>
<head> <head>
<title>{$title}</title> <title>{$title}</title>
<style>{$css}</style> <style>
{$css}
</style>
</head> </head>
<body> <body>
<div id="sitemap__header"> <div id="sitemap__header">
@ -251,42 +255,43 @@ XSL;
$text_align = is_rtl() ? 'right' : 'left'; $text_align = is_rtl() ? 'right' : 'left';
$css = <<<EOF $css = <<<EOF
body { body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
color: #444; color: #444;
} }
#sitemap__table { #sitemap__table {
border: solid 1px #ccc; border: solid 1px #ccc;
border-collapse: collapse; border-collapse: collapse;
} }
#sitemap__table tr td.loc { #sitemap__table tr td.loc {
/* /*
* URLs should always be LTR. * URLs should always be LTR.
* see https://core.trac.wordpress.org/ticket/16834 and * See https://core.trac.wordpress.org/ticket/16834
* https://core.trac.wordpress.org/ticket/49949 * and https://core.trac.wordpress.org/ticket/49949
*/ */
direction: ltr; direction: ltr;
} }
#sitemap__table tr th { #sitemap__table tr th {
text-align: {$text_align}; text-align: {$text_align};
} }
#sitemap__table tr td, #sitemap__table tr td,
#sitemap__table tr th { #sitemap__table tr th {
padding: 10px; padding: 10px;
} }
#sitemap__table tr:nth-child(odd) td { #sitemap__table tr:nth-child(odd) td {
background-color: #eee; background-color: #eee;
} }
a:hover { a:hover {
text-decoration: none; text-decoration: none;
} }
EOF; EOF;
/** /**

View File

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