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:
parent
5e160ea4a9
commit
a7a91ba8dc
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user