luci-theme-openwrt: work around cssmin bug breaking the minified CSS.
authorJo-Philipp Wich <jo@mein.io>
Tue, 31 Mar 2020 13:25:27 +0000 (15:25 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
The cssmin utility incorrectly breaks up calc() expressions when
minifying rules. Avoid the problem by trimming uneeded spaces.

Fixes: #3801
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 63057a08dcc2ee80f68ccd411239a51646eba295)

themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css

index 22f32ef7dd69b5322590967cc1bc5fed75e1e66d..e9880a380911a488d46242d87b54a13d280e264f 100644 (file)
@@ -393,7 +393,7 @@ div.hostinfo {
        border: 1px solid #90c0e0;
        background: #000 !important;
        color: #90c0e0 !important;
-       padding: calc(.125em - 1px) calc(.5em - 1px);
+       padding: calc(.125em-1px) calc(.5em-1px);
 }
 
 html #menubar a:link,