diff options
| author | bors <bors@rust-lang.org> | 2023-12-31 15:32:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-31 15:32:15 +0000 |
| commit | 67b6975051b83ef2bd28f06e8467470d570aceb3 (patch) | |
| tree | 25dfa410c9db9138f033e13527eff675e492f2f0 /src/librustdoc/html/static/css/noscript.css | |
| parent | 1c204623386a86d5d6391111b42fc06686374c85 (diff) | |
| parent | 9566db1e496e6a834529e0ffbe3397b0c0d6803a (diff) | |
| download | rust-67b6975051b83ef2bd28f06e8467470d570aceb3.tar.gz rust-67b6975051b83ef2bd28f06e8467470d570aceb3.zip | |
Auto merge of #119066 - notriddle:notriddle/sidebar-source-redesign, r=GuillaumeGomez
rustdoc: clean up source sidebar hide button This is a redesign of the feature, with parts pulled from https://github.com/rust-lang/rust/pull/119049 but with a button that looks more like a button and matches the one used on other sidebar pages. Preview: * http://notriddle.com/rustdoc-html-demo-8/source-sidebar-resize/src/std/lib.rs.html * http://notriddle.com/rustdoc-html-demo-8/source-sidebar-resize/std/index.html | | Before | After | |--|--|--| | Closed |  |  | Open |  |  | Mobile Closed |  |  | Mobile Open |  | 
Diffstat (limited to 'src/librustdoc/html/static/css/noscript.css')
| -rw-r--r-- | src/librustdoc/html/static/css/noscript.css | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/noscript.css b/src/librustdoc/html/static/css/noscript.css index 390e812772a..f425f3ec95c 100644 --- a/src/librustdoc/html/static/css/noscript.css +++ b/src/librustdoc/html/static/css/noscript.css @@ -11,7 +11,7 @@ rules. #copy-path, #sidebar-button, .sidebar-resizer { /* It requires JS to work so no need to display it in this case. */ - display: none; + display: none !important; } nav.sub { @@ -54,6 +54,7 @@ nav.sub { --code-attribute-color: #999; --toggles-color: #999; --toggle-filter: none; + --mobile-sidebar-menu-filter: none; --search-input-focused-border-color: #66afe9; --copy-path-button-color: #999; --copy-path-img-filter: invert(50%); @@ -159,6 +160,7 @@ nav.sub { --code-attribute-color: #999; --toggles-color: #999; --toggle-filter: invert(100%); + --mobile-sidebar-menu-filter: invert(100%); --search-input-focused-border-color: #008dfd; --copy-path-button-color: #999; --copy-path-img-filter: invert(50%); |
