From 0c0809153509877ce63f70f6bc5e39831e6cad44 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Fri, 2 Aug 2019 17:50:10 +0200 Subject: [PATCH] Center login logo --- theme/static/css/admin.css | 8 ++++++++ theme/templates/admin/base_site.html | 11 ++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/theme/static/css/admin.css b/theme/static/css/admin.css index 876a2ff..348e139 100644 --- a/theme/static/css/admin.css +++ b/theme/static/css/admin.css @@ -134,6 +134,14 @@ input[type=button]:focus, .button:hover, input[type=submit]:hover, input[type=bu text-align: center !important; } +/* Branding logo */ +#branding img { + vertical-align: middle; +} +#site-name { + padding-left: 10px; +} + /* Dashboard should take all page */ .dashboard #content { width: auto; diff --git a/theme/templates/admin/base_site.html b/theme/templates/admin/base_site.html index 3418233..bc1456a 100644 --- a/theme/templates/admin/base_site.html +++ b/theme/templates/admin/base_site.html @@ -8,11 +8,12 @@ SPDX-License-Identifier: GPL-3.0-or-later {% block title %}{{ title }} | {{ request.site.name }}{% endblock %} {% block branding %} - - - {{ request.site.name }} - - + + + + {{ request.site.name }} + + {% endblock %} {% block usertools %}