From 59648d62e707f618799f7ea9993aaff01859c610 Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 5 Feb 2024 19:40:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20home=20to=20breadcrumbs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html | 10 ++++++++++ frontend/styles/header.scss | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html b/fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html index 50756c100..694700e39 100644 --- a/fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html +++ b/fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html @@ -1,4 +1,14 @@ +{% load i18n %} {% load fds_cms_tags %} +{% load cms_tags %} + + {% get_breadcrumb_ancestor ancestors.0 as custom_ancestor %} {% if custom_ancestor %} diff --git a/frontend/styles/header.scss b/frontend/styles/header.scss index 98b156f22..2e69c9958 100644 --- a/frontend/styles/header.scss +++ b/frontend/styles/header.scss @@ -28,6 +28,7 @@ $c: map.get($container-max-widths, 'xxl'); display: block; font-weight: 600; color: var(--bs-emphasis-color); + padding: 0; &:hover { text-decoration: none; @@ -189,3 +190,9 @@ $c: map.get($container-max-widths, 'xxl'); } } } + +@include media-breakpoint-up(md) { + header#header:has(+ nav .breadcrumb) { + border-bottom: 1px var(--bs-border-color-translucent) solid; + } +}