luci-theme-bootstrap: work around csstidy bug
authorJo-Philipp Wich <[email protected]>
Mon, 25 Oct 2021 21:59:02 +0000 (23:59 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 25 Oct 2021 21:59:42 +0000 (23:59 +0200)
Ref: https://github.com/openwrt/luci/commit/26047fb967f079000ab61c7377f8e26e11277569#commitcomment-58638390
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 37e40e04ef04307660c35eb089deb6cbde17d660)

themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css

index fb8eae333c21fbca151cc4119e9db36010d57ee3..3db92e63f33ac56b254f858e3611e70286a1f819 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 {