From 73adb5a23ac0ce3ea8577ace50a8af1a249e4a8d Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Sat, 9 Sep 2023 15:53:09 +0200 Subject: [PATCH] [STYLE] Center lightbox images --- static/css/style.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 3426ff6..8c229aa 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -25,7 +25,7 @@ } html { background-color: var(--background-color); - font-family: serif; + font-family: "Times New Roman", Georgia, serif; font-size: medium; color: var(--font-color); } @@ -846,10 +846,13 @@ blockquote:after { } .lightbox img { + position: absolute; max-width: 90%; max-height: 92vh; - margin-top: 2%; opacity: 0; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } .lightbox:target {