From 77d7ee0b194d239d2b4b541006ea6e05f161a731 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 Nov 2020 23:10:25 +0000 Subject: [PATCH] Profile header style --- epicyon-profile.css | 10 ++++------ webapp_profile.py | 3 ++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 184c6916..b4128f0b 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -256,8 +256,6 @@ a:focus { position: relative; overflow: hidden; margin: 10px; - min-width: 230px; - max-width: 315px; width: 100%; color: #ffffff; text-align: left; @@ -271,7 +269,7 @@ a:focus { bottom: 100%; left: 25px; z-index: 1; - max-width: 90px; + max-width: 20%; opacity: 1; box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); } @@ -283,10 +281,10 @@ a:focus { transition: all 0.25s ease; } -.profileHeader img { - max-width: 100%; +.profileHeader img.profileBackground { + width: 100%; + height: 20vw; vertical-align: top; - opacity: 0.85; } .profileHeader figcaption { diff --git a/webapp_profile.py b/webapp_profile.py index 1f7d5096..8b182e4b 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -284,7 +284,8 @@ def getProfileHeader(baseDir: str, nickname: str, domain: str, htmlStr += ' \n' - htmlStr += ' \n' + htmlStr += ' \n' htmlStr += '
\n' htmlStr += \ '