Rollup merge of #103211 - notriddle:notriddle/dot-location, r=GuillaumeGomez
rustdoc: remove class name `location` from sidebar sibling nav Preview: https://notriddle.com/notriddle-rustdoc-demos/sidebar-location/std/vec/struct.Vec.html 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. ## Before  ## After 
This commit is contained in:
commit
433f736b86
8 changed files with 39 additions and 38 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue