From 667d821e0296ef9bdfb344f840bac432416160fb Mon Sep 17 00:00:00 2001 From: "julia.kirschenheuter" Date: Thu, 10 Nov 2022 09:10:48 +0100 Subject: [PATCH] Add alt to the logo, adapt css for logo Signed-off-by: julia.kirschenheuter Signed-off-by: nextcloud-command --- core/css/guest.css | 9 +++------ core/css/header.css | 6 ------ core/css/header.scss | 6 ------ core/css/server.css | 6 ------ core/templates/layout.guest.php | 3 ++- core/templates/layout.public.php | 11 ++--------- core/templates/layout.user.php | 2 +- lib/private/TemplateLayout.php | 9 +++++---- 8 files changed, 13 insertions(+), 39 deletions(-) diff --git a/core/css/guest.css b/core/css/guest.css index 7baa6017a5559..a65b0dae27b2e 100644 --- a/core/css/guest.css +++ b/core/css/guest.css @@ -76,12 +76,9 @@ body { } #header .logo { - background-image: var(--image-logo, url('../../core/img/logo/logo.svg')); - background-repeat: no-repeat; - background-size: contain; - background-position: center; - width: 175px; - height: 130px; + max-width: 175px; + width: auto; + max-height: 130px; margin: 0 auto; position: relative; left: unset; diff --git a/core/css/header.css b/core/css/header.css index eb48529c60810..8824a48f86385 100644 --- a/core/css/header.css +++ b/core/css/header.css @@ -173,15 +173,9 @@ } #header .logo { display: inline-flex; - background-image: var(--image-logoheader, var(--image-logo, url("../img/logo/logo.svg"))); - background-repeat: no-repeat; - background-size: contain; - background-position: center; width: 62px; position: absolute; left: 12px; - top: 1px; - bottom: 1px; filter: var(--image-logoheader-custom, var(--background-image-invert-if-bright)); } #header .header-appname-container { diff --git a/core/css/header.scss b/core/css/header.scss index c363312ab8bdb..8691d464bd027 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -163,15 +163,9 @@ } .logo { display: inline-flex; - background-image: var(--image-logoheader, var(--image-logo, url('../img/logo/logo.svg'))); - background-repeat: no-repeat; - background-size: contain; - background-position: center; width: 62px; position: absolute; left: 12px; - top: 1px; - bottom: 1px; // Invert if not customized and background is bright filter: var(--image-logoheader-custom, var(--background-image-invert-if-bright)); } diff --git a/core/css/server.css b/core/css/server.css index cf837d3baa370..6639386c9c64d 100644 --- a/core/css/server.css +++ b/core/css/server.css @@ -2193,15 +2193,9 @@ label.infield { } #header .logo { display: inline-flex; - background-image: var(--image-logoheader, var(--image-logo, url("../img/logo/logo.svg"))); - background-repeat: no-repeat; - background-size: contain; - background-position: center; width: 62px; position: absolute; left: 12px; - top: 1px; - bottom: 1px; filter: var(--image-logoheader-custom, var(--background-image-invert-if-bright)); } #header .header-appname-container { diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index a302d19c99b0f..e4026639e1e66 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -35,7 +35,8 @@
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php index 8dfa4ecec72e3..e8b9e2a15e058 100644 --- a/core/templates/layout.public.php +++ b/core/templates/layout.public.php @@ -37,15 +37,8 @@