We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustdoc_css_themes.rs
1 parent 8f9d93b commit 2815edcCopy full SHA for 2815edc
src/tools/tidy/src/rustdoc_css_themes.rs
@@ -74,8 +74,11 @@ fn compare_themes<'a>(
74
(noscript_css_line_number, noscript_css_line),
75
) in rustdoc_css_lines.zip(noscript_css_lines)
76
{
77
- if noscript_css_line.starts_with(":root {")
78
- && rustdoc_css_line.starts_with(&format!(r#":root[data-theme="{name}"] {{"#))
+ if noscript_css_line.starts_with(":root, :root:not([data-theme]) {")
+ && (rustdoc_css_line.starts_with(&format!(r#":root[data-theme="{name}"] {{"#))
79
+ || rustdoc_css_line.starts_with(&format!(
80
+ r#":root[data-theme="{name}"], :root:not([data-theme]) {{"#
81
+ )))
82
83
// selectors are different between rustdoc.css and noscript.css
84
// that's why they both exist: one uses JS, the other uses media queries
0 commit comments