From 986470847b79f49c1c486dc775d2b3f9a0ac71d8 Mon Sep 17 00:00:00 2001 From: Liam Johnston Date: Wed, 19 Jun 2024 10:13:53 +1200 Subject: [PATCH] CMS UI improvements - heading component and logo --- static/images/cdh-logo-admin.svg | 95 ++++++++++++++++++++++++++++++ static/wagtailadmin/css/custom.css | 4 ++ templates/wagtailadmin/base.html | 3 +- 3 files changed, 100 insertions(+), 2 deletions(-) create mode 100644 static/images/cdh-logo-admin.svg create mode 100644 static/wagtailadmin/css/custom.css diff --git a/static/images/cdh-logo-admin.svg b/static/images/cdh-logo-admin.svg new file mode 100644 index 000000000..ff2d5b74f --- /dev/null +++ b/static/images/cdh-logo-admin.svg @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/wagtailadmin/css/custom.css b/static/wagtailadmin/css/custom.css new file mode 100644 index 000000000..de185a6b3 --- /dev/null +++ b/static/wagtailadmin/css/custom.css @@ -0,0 +1,4 @@ +/* Remove extra unneeded "heading" label (without `for`) */ +[data-contentpath='heading'] > .w-field__label:not([for]) { + display: none; +} diff --git a/templates/wagtailadmin/base.html b/templates/wagtailadmin/base.html index b2fbbeaf7..976d894de 100644 --- a/templates/wagtailadmin/base.html +++ b/templates/wagtailadmin/base.html @@ -2,6 +2,5 @@ {% load static %} {% block branding_logo %} -CDH Website +CDH Website admin {% endblock %} \ No newline at end of file