Commit 7bcd95c
committed
Auto merge of #119743 - lukas-code:beta-z-index, r=notriddle
[beta] rustdoc ui: adjust tooltip z-index to be above sidebar
Backport of #119477.
Fixes #119472.
range-diff:
```range-diff
446: d796ad4 = 11: 53637cd rustdoc ui: adjust tooltip z-index to be above sidebar
459: b1853eb ! 12: c4c4ff6 use css variable for z-index of the sidebar
`@@` src/librustdoc/html/static/css/rustdoc.css: so that we can apply CSS-filters to
margin-top: 7px;
border-radius: 3px;
border: 1px solid var(--border-color);
-`@@` src/librustdoc/html/static/css/rustdoc.css: a.tooltip:hover::after {
- }
- .src #sidebar-button {
- left: 8px;
-- z-index: 101;
-+ z-index: calc(var(--desktop-sidebar-z-index) + 1);
- }
- .hide-sidebar .src #sidebar-button {
- position: static;
```
The "show sidebar" button on the [source view page](https://doc.rust-lang.org/nightly/src/std/lib.rs.html) works differently on beta and nightly, but it is in fact above the sidebar in both versions.
beta button:

nightly button:

cc `@Mark-Simulacrum`File tree
2 files changed
+16
-4
lines changed- src/librustdoc/html/static/css
- tests/rustdoc-gui
2 files changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
399 | | - | |
| 400 | + | |
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
| |||
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
419 | | - | |
| 420 | + | |
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
| |||
448 | 449 | | |
449 | 450 | | |
450 | 451 | | |
451 | | - | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| |||
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
1062 | | - | |
| 1062 | + | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments