From 966e2eb2698cf37de4e5daef2e5e4bd01f3dfc59 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 26 Feb 2023 19:13:28 +0100 Subject: [PATCH] Mitigate flickering of header shadow --- material/partials/header.html | 4 +++- src/partials/header.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/material/partials/header.html b/material/partials/header.html index 66264c00e..89f9513be 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -3,7 +3,9 @@ -#} {% set class = "md-header" %} {% if "navigation.tabs.sticky" in features %} - {% set class = class ~ " md-header--lifted" %} + {% set class = class ~ " md-header--shadow md-header--lifted" %} +{% elif "navigation.tabs" not in features %} + {% set class = class ~ " md-header--shadow" %} {% endif %}