From 44bf2fc4a41f9dfaf40fd3a65ae48747b2a9c186 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sat, 1 Aug 2020 05:09:51 +0200 Subject: [PATCH] don't put labels on top of images for (hover: none) --- style/shiny/gallery.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/style/shiny/gallery.css b/style/shiny/gallery.css index 1c8fa0c..04adff9 100644 --- a/style/shiny/gallery.css +++ b/style/shiny/gallery.css @@ -126,3 +126,22 @@ footer { } } } + +@media (hover: none) { + .item:not(.year-marker) { + height: min-content; + } + + figcaption { + position: initial; + } + + .item a { + display: block; + height: var(--image-size); + } + + .item img { + margin-bottom: 0; + } +}