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

Follow-up to [48414].

See #50449.

git-svn-id: https://develop.svn.wordpress.org/trunk@48425 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-10 16:10:07 +00:00
parent 5e160ea4a9
commit a7a91ba8dc

View File

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