From a706a9c867f213f59d223fd2cc715e06ab180187 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 25 Oct 2021 23:59:02 +0200 Subject: [PATCH] luci-theme-bootstrap: work around csstidy bug Ref: https://github.com/openwrt/luci/commit/26047fb967f079000ab61c7377f8e26e11277569#commitcomment-58638390 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 37e40e04ef04307660c35eb089deb6cbde17d660) --- .../htdocs/luci-static/bootstrap/cascade.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css index fb8eae333c..3db92e63f3 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css @@ -863,7 +863,10 @@ header { background-repeat: repeat-x; background-image: linear-gradient(to bottom, #333333, #222222); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1); - padding: 0 calc((100% - 940px) / 2 + 5px); + padding: 0; + /* the redundant properties below work around a csstidy bug */ + padding-left: calc((100% - 940px) / 2 + 5px); + padding-right: calc((100% - 940px) / 2 + 5px); } .nav { -- 2.30.2