From 29d8dfe04722ee047fb96951a05d8a421cc7ee5b Mon Sep 17 00:00:00 2001 From: Benjamin Rasmussen Date: Mon, 10 Jun 2024 09:20:51 +0200 Subject: [PATCH] Fix broken header, when logged into admin interface. --- .../custom/dpl_admin/assets/dpl_frontend.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/web/modules/custom/dpl_admin/assets/dpl_frontend.css b/web/modules/custom/dpl_admin/assets/dpl_frontend.css index 11d40df8f..58bbe8c45 100644 --- a/web/modules/custom/dpl_admin/assets/dpl_frontend.css +++ b/web/modules/custom/dpl_admin/assets/dpl_frontend.css @@ -25,6 +25,19 @@ mask-image: url('data:image/svg+xml,') !important; } +/* + The DPL header gets confused when the admin toolbar exists, and keeps being + placed in a wrong position. + We'll just completely disable the dynamic movement, when the toolbar is + visible. +*/ +.toolbar-fixed { + .header, + .header[style] { + top: 0 !important; + } +} + /* Gin wants to hide the text of the secondary toolbar items way too early. */ @media (min-width: 61em) { .toolbar-horizontal .gin-secondary-toolbar .toolbar-secondary .toolbar-bar .toolbar-tab .toolbar-item {