diff options
| author | Michael Howell <michael@notriddle.com> | 2022-10-18 11:14:01 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-10-18 12:01:53 -0700 |
| commit | a01b88575e2ee7646c46fa02a94abf8cd2d33fed (patch) | |
| tree | 2e4bbb8cf8eed4e7775670a50768c17ba62ac883 /src/librustdoc/html/static/js | |
| parent | e94827e5b09b5b098ea10d0c57a84892fc73b5a7 (diff) | |
| download | rust-a01b88575e2ee7646c46fa02a94abf8cd2d33fed.tar.gz rust-a01b88575e2ee7646c46fa02a94abf8cd2d33fed.zip | |
rustdoc: remove class name `location` from sidebar sibling nav
This change tweaks the CSS to apply most of its styles to `.sidebar h2`, cleaning up a few redundant rules from `.mobile-topbar .location` and restoring useful navigation aids in mobile mode.
Diffstat (limited to 'src/librustdoc/html/static/js')
| -rw-r--r-- | src/librustdoc/html/static/js/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/js/main.js b/src/librustdoc/html/static/js/main.js index 3bcadcda534..b9a99e1e799 100644 --- a/src/librustdoc/html/static/js/main.js +++ b/src/librustdoc/html/static/js/main.js @@ -55,7 +55,7 @@ function blurHandler(event, parentElem, hideCallback) { function setMobileTopbar() { // FIXME: It would be nicer to generate this text content directly in HTML, // but with the current code it's hard to get the right information in the right place. - const mobileLocationTitle = document.querySelector(".mobile-topbar h2.location"); + const mobileLocationTitle = document.querySelector(".mobile-topbar h2"); const locationTitle = document.querySelector(".sidebar h2.location"); if (mobileLocationTitle && locationTitle) { mobileLocationTitle.innerHTML = locationTitle.innerHTML; |
