From e166704dee3eb2e75ab56f17fbbb06646b1b4ec5 Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 20 May 2026 22:56:56 +0200 Subject: [PATCH] Add template and styles for breadcrumbs --- custom/styles/base.css | 32 ++++++++++++++++++++++++++++++++ custom/templates/page.php | 12 ++++++++++++ 2 files changed, 44 insertions(+) diff --git a/custom/styles/base.css b/custom/styles/base.css index 02e5815..189c850 100644 --- a/custom/styles/base.css +++ b/custom/styles/base.css @@ -119,6 +119,38 @@ main { } } .button { margin-top: 1.3rem; justify-self: start } + + /* BREADCRUMB */ + .breadcrumb { + display: grid; + grid-template-columns: minmax(.8rem, 1fr) minmax(0, 42rem) minmax(.8rem, 1fr); + margin-top: 1rem; + margin-bottom: 1rem; + font-size: 0.85em; + ol { + grid-column: 2; + display: flex; + flex-wrap: wrap; + list-style: none; + margin: 0; + padding: 0; + li { + display: inline-flex; + align-items: center; + &:not(:last-child)::after { + content: '›'; + margin: 0 0.6rem; + color: var(--color-grey); + font-size: 1.2em; + } + a { + color: var(--color-green); + text-decoration: none; + &:hover { color: var(--color-blue) } + } + } + } + } } table { diff --git a/custom/templates/page.php b/custom/templates/page.php index 3dceedf..792eae3 100644 --- a/custom/templates/page.php +++ b/custom/templates/page.php @@ -1,3 +1,15 @@ +breadcrumbs) && empty($ctx->get('hide_breadcrumb'))): ?> + + +