2
2
3
3
define-function: (
4
4
"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),
6
6
block {
7
7
goto: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
8
8
// This is needed to ensure that the text color is computed.
@@ -14,8 +14,8 @@ define-function: (
14
14
reload:
15
15
16
16
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 |})
19
19
assert-css: (
20
20
".rightside .srclink",
21
21
{"color": |src_link_color|, "text-decoration": "none solid " + |src_link_color|},
@@ -57,7 +57,7 @@ define-function: (
57
57
assert-css: ("#top-doc-prose-title", {"color": |title_color|})
58
58
59
59
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|})
61
61
62
62
// We move the cursor over the "Implementations" title so the anchor is displayed.
63
63
move-cursor-to: "h2#implementations"
@@ -77,8 +77,8 @@ call-function: (
77
77
"theme": "ayu",
78
78
"main_color": "rgb(197, 197, 197)",
79
79
"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)",
82
82
"src_link_color": "rgb(57, 175, 215)",
83
83
"sidebar_link_color": "rgb(83, 177, 219)",
84
84
},
@@ -89,8 +89,8 @@ call-function: (
89
89
"theme": "dark",
90
90
"main_color": "rgb(221, 221, 221)",
91
91
"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)",
94
94
"src_link_color": "rgb(210, 153, 29)",
95
95
"sidebar_link_color": "rgb(253, 191, 53)",
96
96
},
@@ -101,8 +101,8 @@ call-function: (
101
101
"theme": "light",
102
102
"main_color": "rgb(0, 0, 0)",
103
103
"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)",
106
106
"src_link_color": "rgb(56, 115, 173)",
107
107
"sidebar_link_color": "rgb(53, 109, 164)",
108
108
},
0 commit comments