diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-04 20:36:28 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-04 20:36:28 -0800 |
| commit | 6132993144cc99a3ba192b10f95b6473333e8705 (patch) | |
| tree | 7f04a653fbb9a9cd9a3223911b91abb47915af72 /compiler/rustc_codegen_llvm/src | |
| parent | 5ce6311f340c2be82fbfe304aa6a56f2fade9230 (diff) | |
| parent | 01196c5b4cb3d966aa49ad4ed04bd2ea7aa1f6d2 (diff) | |
| download | rust-6132993144cc99a3ba192b10f95b6473333e8705.tar.gz rust-6132993144cc99a3ba192b10f95b6473333e8705.zip | |
Rollup merge of #106462 - notriddle:notriddle/logo-container-sidebar, r=GuillaumeGomez
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 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
