From fd6b22b5651287b22260cc6d89c30fd87f28d38c Mon Sep 17 00:00:00 2001 From: Thomas Guillot Date: Fri, 21 Feb 2025 13:07:52 +0000 Subject: [PATCH] feat: update login screen when no custom logo (#2442) --- newspack-theme/inc/login-screen.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/newspack-theme/inc/login-screen.php b/newspack-theme/inc/login-screen.php index 157b0e709..44870426a 100644 --- a/newspack-theme/inc/login-screen.php +++ b/newspack-theme/inc/login-screen.php @@ -56,17 +56,19 @@ function newspack_login_enqueue_scripts() { } #login h1 a { - background-position: bottom center; - background-repeat: no-repeat; - background-size: contain; - height: 72px; margin: 0 auto; background-image: url( "" ); + background-position: bottom center; + background-repeat: no-repeat; + background-size: contain; + height: 72px; width: 272px; - background-image: url( "data:image/svg+xml,%3Csvg width='72' height='72' fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 32c8.836 0 16-7.164 16-16S24.836 0 16 0 0 7.164 0 16s7.163 16 16 16z' fill='%2336f'/%3E%3Cpath d='M22.988 16.622h-1.72l-1.103-1.124h2.823v1.124zm0-3.31H18.02l-1.102-1.124h6.071v1.124zm0-3.31h-8.217l-1.103-1.125h9.32v1.125zm0 13.12L9.012 8.878v14.246h3.45v-5.98l5.867 5.98h4.66z' fill='%23fff'/%3E%3C/svg%3E%0A" ); - width: 72px; + background: none; + height: auto; + text-indent: inherit; + width: auto; }