From 1f45be3798acc81c1c0f5393b4c315e77158d356 Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Wed, 13 Nov 2024 14:51:31 +0100 Subject: [PATCH] Fix huge custom logo on standard header (#767) --- sass/_header.scss | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/sass/_header.scss b/sass/_header.scss index 6c45e9e..4ef6488 100755 --- a/sass/_header.scss +++ b/sass/_header.scss @@ -183,15 +183,26 @@ body { padding: 27px 0; .img-container { - margin-right: 0.75rem; - } + margin-right: 0.5rem; - .sunflower-logo { + &.sunflower-logo { - img { - width: 55px; - background: transparent; + img { + width: 55px; + background: transparent; + } + } + + &.custom-logo { + + img { + max-width: 100px; + max-height: 55px; + object-fit: contain; + object-position: right; + } } + } &-name { @@ -228,7 +239,14 @@ body { } .img-container { - margin-right: 0.25rem; + margin-right: 1rem; + + &.custom-logo { + + img { + max-width: 150px; + } + } } } } @@ -269,9 +287,7 @@ body { background-color: $secondary; } - margin-right: 1rem; height: 95px; - width: 95px; display: flex; justify-content: center; align-items: center;