From bed8eea4163bb5e1ee58fec810dccadc2f3dff17 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 1 Dec 2023 21:12:37 +0100 Subject: use pixel value in banner max-width Let's stick to one unit. `em` is font-size dependent, so let's just do it the simple way and count pixels. --- static/css/main.css | 2 +- static/sass/main.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/css/main.css b/static/css/main.css index f9260ba..2188a9c 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -2321,7 +2321,7 @@ img.social-icon { display: none; } #sideBanner { - max-width: calc(1150px - 48em - 8px); + max-width: 442px; position: fixed; padding-top: 30px; padding-left: 30px; diff --git a/static/sass/main.scss b/static/sass/main.scss index 346c0f0..e8c2407 100644 --- a/static/sass/main.scss +++ b/static/sass/main.scss @@ -262,7 +262,7 @@ img.social-icon { display: none; } #sideBanner { - max-width: calc($breakpoint - 48em - 8px); + max-width: calc($breakpoint - 708px); position: fixed; padding-top: $spacing; padding-left: $spacing; -- cgit v1.2.3