Skip to content

Commit c0e2e13

Browse files
authored
Fix support button and ToC sidebar from appearing on top of zoomed-in images (#1137)
* Make zoomed-in images overlay support button and ToC * Make announcement bar overlay zoomed-in images
1 parent 44f3ddc commit c0e2e13

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/css/custom.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
div[class^='announcementBar'] {
6363
font-size: 1.1rem;
6464
padding: 20px 0;
65+
z-index: 21; /* Ensures the announcement bar stays visible when images are zoomed in on */
6566
}
6667

6768
/* Home page cards */
@@ -360,3 +361,13 @@ hr {
360361
html[data-theme="dark"] .container img[src$=".png"] { /* Adds a white background to transparent .png images. */
361362
background-color: #ffffff;
362363
}
364+
365+
.medium-zoom-overlay {
366+
z-index: 15;
367+
position: fixed;
368+
}
369+
370+
.medium-zoom-image {
371+
z-index: 20;
372+
position: relative;
373+
}

0 commit comments

Comments
 (0)