Fix contrast ratio for Since element in rustodoc dark theme
Signed-off-by: Antonio Souza <arfs.antonio@gmail.com>
This commit is contained in:
parent
873d4682c7
commit
c7788af89a
3 changed files with 7 additions and 7 deletions
|
|
@ -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%);
|
||||
|
|
|
|||
|
|
@ -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%);
|
||||
|
|
|
|||
|
|
@ -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"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue