Fix contrast ratio for Since element in rustodoc dark theme

Signed-off-by: Antonio Souza <arfs.antonio@gmail.com>
This commit is contained in:
Antonio Souza 2026-01-25 20:51:30 -05:00
parent 873d4682c7
commit c7788af89a
No known key found for this signature in database
GPG key ID: 5CB516E19A6938E3
3 changed files with 7 additions and 7 deletions

View file

@ -163,7 +163,7 @@ nav.sub {
--headings-border-bottom-color: #d2d2d2;
--border-color: #e0e0e0;
--button-background-color: #f0f0f0;
--right-side-color: grey;
--right-side-color: #d0d0d0;
--code-attribute-color: #999;
--toggles-color: #999;
--toggle-filter: invert(100%);

View file

@ -3286,7 +3286,7 @@ by default.
--headings-border-bottom-color: #d2d2d2;
--border-color: #e0e0e0;
--button-background-color: #f0f0f0;
--right-side-color: grey;
--right-side-color: #d0d0d0;
--code-attribute-color: #999;
--toggles-color: #999;
--toggle-filter: invert(100%);

View file

@ -221,14 +221,14 @@ call-function: (
define-function: (
"check-since-color",
[theme],
[theme, color],
block {
call-function: ("switch-theme", {"theme": |theme|})
assert-css: (".since", {"color": "#808080"}, ALL)
assert-css: (".since", {"color": |color|}, ALL)
},
)
go-to: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
call-function: ("check-since-color", {"theme": "ayu"})
call-function: ("check-since-color", {"theme": "dark"})
call-function: ("check-since-color", {"theme": "light"})
call-function: ("check-since-color", {"theme": "ayu", "color": "#808080"})
call-function: ("check-since-color", {"theme": "dark", "color": "#d0d0d0"})
call-function: ("check-since-color", {"theme": "light", "color": "#808080"})