From 624d74a1d300973876cc5012e7b7dc0c3dff7115 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Thu, 21 Nov 2024 16:32:01 +0100 Subject: [PATCH] fix(core): harmonize footer icon dimension specification Introduce *one* place to specify dimensions for footer icons in the CSS file by adding an `icon` class to the elements. This replaces the inline `height` settings, the CSS `#logo` definition and overwrites the `height` and `font-size` settings for the material symbol if used in the footer with the icon class. Closes: #1340 --- apis_core/core/static/css/core.css | 10 +++++----- apis_core/core/templates/base.html | 1 + apis_core/core/templates/partials/footer-left.html | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/apis_core/core/static/css/core.css b/apis_core/core/static/css/core.css index b09338a15..b6fa1e51c 100644 --- a/apis_core/core/static/css/core.css +++ b/apis_core/core/static/css/core.css @@ -1,8 +1,3 @@ -/* project/site logo in footer */ -#logo { - height: 1.5em; -} - a #logo:hover { opacity: 0.5; } @@ -30,3 +25,8 @@ footer a:has(> span[class*="material-symbols"]):hover { display: none; opacity: 0.5; } + +footer .icon { + height: 1em; + font-size: 1.5em; +} diff --git a/apis_core/core/templates/base.html b/apis_core/core/templates/base.html index 67234e2c0..1dcbd4f0f 100644 --- a/apis_core/core/templates/base.html +++ b/apis_core/core/templates/base.html @@ -224,6 +224,7 @@ {% block footer-center %} diff --git a/apis_core/core/templates/partials/footer-left.html b/apis_core/core/templates/partials/footer-left.html index 761298b26..16e7f854c 100644 --- a/apis_core/core/templates/partials/footer-left.html +++ b/apis_core/core/templates/partials/footer-left.html @@ -3,18 +3,18 @@ {% url "apis_core:api-root" as api_root %} {% if api_root %} - api + api {% endif %} {% url "apis_core:swagger-ui" as swagger_ui %} {% if swagger_ui %} - Swagger UI + Swagger UI {% endif %} {% git_repository_url as repository_url %} {% if repository_url %} - Git repository + Git repository {% endif %}