22
33define-function: (
44 "check-colors",
5- (theme, main_color, title_color, fqn_color, fqn_type_color , src_link_color, sidebar_link_color),
5+ (theme, main_color, title_color, main_heading_color, main_heading_type_color , src_link_color, sidebar_link_color),
66 block {
77 goto: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
88 // This is needed to ensure that the text color is computed.
@@ -14,8 +14,8 @@ define-function: (
1414 reload:
1515
1616 assert-css: ("#toggle-all-docs", {"color": |main_color|})
17- assert-css: (".fqn a:nth-of-type(1)", {"color": |fqn_color |})
18- assert-css: (".fqn a:nth-of-type(2)", {"color": |fqn_type_color |})
17+ assert-css: (".main-heading h1 a:nth-of-type(1)", {"color": |main_heading_color |})
18+ assert-css: (".main-heading a:nth-of-type(2)", {"color": |main_heading_type_color |})
1919 assert-css: (
2020 ".rightside .srclink",
2121 {"color": |src_link_color|, "text-decoration": "none solid " + |src_link_color|},
@@ -57,7 +57,7 @@ define-function: (
5757 assert-css: ("#top-doc-prose-title", {"color": |title_color|})
5858
5959 assert-css: (".sidebar a", {"color": |sidebar_link_color|})
60- assert-css: ("h1.fqn a", {"color": |title_color|})
60+ assert-css: (".main-heading h1 a", {"color": |title_color|})
6161
6262 // We move the cursor over the "Implementations" title so the anchor is displayed.
6363 move-cursor-to: "h2#implementations"
@@ -77,8 +77,8 @@ call-function: (
7777 "theme": "ayu",
7878 "main_color": "rgb(197, 197, 197)",
7979 "title_color": "rgb(255, 255, 255)",
80- "fqn_color ": "rgb(255, 255, 255)",
81- "fqn_type_color ": "rgb(255, 160, 165)",
80+ "main_heading_color ": "rgb(255, 255, 255)",
81+ "main_heading_type_color ": "rgb(255, 160, 165)",
8282 "src_link_color": "rgb(57, 175, 215)",
8383 "sidebar_link_color": "rgb(83, 177, 219)",
8484 },
@@ -89,8 +89,8 @@ call-function: (
8989 "theme": "dark",
9090 "main_color": "rgb(221, 221, 221)",
9191 "title_color": "rgb(221, 221, 221)",
92- "fqn_color ": "rgb(221, 221, 221)",
93- "fqn_type_color ": "rgb(45, 191, 184)",
92+ "main_heading_color ": "rgb(221, 221, 221)",
93+ "main_heading_type_color ": "rgb(45, 191, 184)",
9494 "src_link_color": "rgb(210, 153, 29)",
9595 "sidebar_link_color": "rgb(253, 191, 53)",
9696 },
@@ -101,8 +101,8 @@ call-function: (
101101 "theme": "light",
102102 "main_color": "rgb(0, 0, 0)",
103103 "title_color": "rgb(0, 0, 0)",
104- "fqn_color ": "rgb(0, 0, 0)",
105- "fqn_type_color ": "rgb(173, 55, 138)",
104+ "main_heading_color ": "rgb(0, 0, 0)",
105+ "main_heading_type_color ": "rgb(173, 55, 138)",
106106 "src_link_color": "rgb(56, 115, 173)",
107107 "sidebar_link_color": "rgb(53, 109, 164)",
108108 },
0 commit comments