From 512ba9850095d9296573b2571720ea51ec8a2806 Mon Sep 17 00:00:00 2001 From: matsewe Date: Fri, 12 Jul 2024 12:14:27 +0200 Subject: [PATCH] simplify/fix cover position/size --- static/site.css | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/static/site.css b/static/site.css index 163b5e0..51f7bb2 100644 --- a/static/site.css +++ b/static/site.css @@ -118,24 +118,28 @@ header { .cover-container { position: relative; - width: 11.67em; + width: 11.91em; height: 6.7em; float: left; margin-right: 1em; - text-align: center; - background-color: white; + /*background-color: white;*/ + display: flex; + /*align-items: center;*/ + justify-content: center; } .cover { - display: block; - max-width: 100%; + /*display: block;*/ + object-fit: contain; + /*max-width: 100%; max-height: 100%; + scale: 2; position: absolute; - top: 50%; - left: 50%; + top: 75%; + left: 75%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); + transform: translate(-50%, -50%);*/ transition: .3s ease; border-radius: 0.3em; }