luci-theme-bootstrap: work around csstidy bug
authorJo-Philipp Wich <redacted>
Mon, 25 Oct 2021 21:59:02 +0000 (23:59 +0200)
committerJo-Philipp Wich <redacted>
Mon, 25 Oct 2021 21:59:02 +0000 (23:59 +0200)
Ref: https://github.com/openwrt/luci/commit/26047fb967f079000ab61c7377f8e26e11277569#commitcomment-58638390
Signed-off-by: Jo-Philipp Wich <redacted>
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css

index 6c80d461242d3088925067b2ac18c304c40cab84..4063a39face2a71df4443d07fb81adcbcc86106c 100644 (file)
@@ -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 {
git clone https://git.99rst.org/PROJECT