diff options
author | Michael Howell <michael@notriddle.com> | 2023-01-04 13:04:30 -0700 |
---|---|---|
committer | Michael Howell <michael@notriddle.com> | 2023-01-04 13:32:27 -0700 |
commit | 01196c5b4cb3d966aa49ad4ed04bd2ea7aa1f6d2 (patch) | |
tree | cee947d8c58cc340d4ee0b8a0f77574640179e61 /tests/rustdoc-js-std/parser-errors.js | |
parent | b7cdb635c4b973572307ad288466fba64533369c (diff) | |
download | rust-01196c5b4cb3d966aa49ad4ed04bd2ea7aa1f6d2.tar.gz |
rustdoc: remove unnecessary wrapper around sidebar and mobile logos
This commit changes `.sidebar a:hover:not(.logo-container)` to add the `:not()` pseudo-class, retaining the old appearance of the logo when mousing over it.
This didn't used to be necessary because the `a.sidebar-logo` was `display:inline`, and was what got the `background` changed on hover, while the `div.logo-container` inside it was `display:block`. This resulted in the hover rule not having any effect, because the logo-container box was not actually nested inside the sidebar-logo box:
https://www.w3.org/TR/CSS2/visuren.html#anonymous-block-level
> When an inline box contains an in-flow block-level box, the inline box (and its inline ancestors within the same line box) are broken around the block-level box (and any block-level siblings that are consecutive or separated only by collapsible whitespace and/or out-of-flow elements), splitting the inline box into two boxes (even if either side is empty), one on each side of the block-level box(es). The line boxes before the break and after the break are enclosed in anonymous block boxes, and the block-level box becomes a sibling of those anonymous boxes. When such an inline box is affected by relative positioning, any resulting translation also affects the block-level box contained in the inline box.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions