From a4de074ca8085f21cab1f41e5ab4968dc4152d92 Mon Sep 17 00:00:00 2001 From: tpart Date: Fri, 12 Apr 2024 15:31:59 +0200 Subject: Fix big poster loading background and size --- web/style/nodepage.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'web') diff --git a/web/style/nodepage.css b/web/style/nodepage.css index 2b76ede..c6cf981 100644 --- a/web/style/nodepage.css +++ b/web/style/nodepage.css @@ -34,12 +34,27 @@ float: left; margin: 3em; margin-top: -1em; + height: 100%; } .page.node .bigposter img { width: 100%; height: 100%; object-fit: cover; object-position: center; + display: block; +} + +.bigposter.aspect-thumb { + aspect-ratio: var(--land-thumb-aspect) +} +.bigposter.aspect-land { + aspect-ratio: var(--land-poster-aspect) +} +.bigposter.aspect-port { + aspect-ratio: var(--port-poster-aspect) +} +.bigposter.aspect-square { + aspect-ratio: 1; } .page.node .title h1 { -- cgit v1.2.3-70-g09d2