« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static
diff options
context:
space:
mode:
Diffstat (limited to 'src/static')
-rw-r--r--src/static/site6.css9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/static/site6.css b/src/static/site6.css
index 2ab577ae..331e68a1 100644
--- a/src/static/site6.css
+++ b/src/static/site6.css
@@ -1264,11 +1264,18 @@ img.pixelate, .pixelate img {
 }
 
 .reveal .image.reveal-thumbnail {
+  position: absolute;
+  top: 0;
   image-rendering: pixelated;
 }
 
 .reveal.has-reveal-thumbnail:not(.revealed) .image:not(.reveal-thumbnail) {
-  display: none !important;
+  /* Keep the main image as part of the box model.
+   * It's what actually defines the dimensions of the
+   * image-container, so those dimensions never shift
+   * once the image is actually revealed.
+   */
+  visibility: hidden;
 }
 
 .reveal.revealed.has-reveal-thumbnail .image.reveal-thumbnail {