diff --git a/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php b/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php index 490541ab28..829e50813a 100644 --- a/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php +++ b/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php @@ -248,33 +248,46 @@ XSL; * @return string The CSS. */ public function get_stylesheet_css() { - $css = ' - body { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - color: #444; - } + $text_align = is_rtl() ? 'right' : 'left'; - #sitemap__table { - border: solid 1px #ccc; - border-collapse: collapse; - } - - #sitemap__table tr th { - text-align: left; - } - - #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; - }'; + $css = <<