From 5a36477c953e9028ddf587135f014b6adbb0684c Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Thu, 15 Jan 2026 17:48:26 +0100 Subject: [PATCH] luci-theme-openwrt: prevent minify errors The CSS: padding: calc(0.125em - 1px) calc(0.5em - 1px); produced: padding:calc(.125em since minify treated it as a quad. Work around this and remove it. The difference without it is minor. Remove input colouring since the custom tags don't help and the colouring makes input difficult to discern from placeholders. Remove also -ms-backdrop definition which effectively overrides the previous auto. There was also an instance where 'solid red;' was truncated to 'solid re' but I cannot reproduce this with minify. Signed-off-by: Paul Donald --- .../luci-static/openwrt.org/cascade.css | 25 +++---------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css b/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css index f312c4cdca..7e4791c757 100644 --- a/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css +++ b/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css @@ -415,7 +415,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, @@ -577,18 +577,6 @@ ul.cbi-apply { font-size: 90%; } -/*input:-webkit-input-placeholder { - color: #AAAAAA; -}*/ - -input:-moz-placeholder { - color: #AAAAAA; -} - -/*input:-ms-input-placeholder { - color: #AAAAAA; -}*/ - input[type=submit], input[type=reset], input[type=image], @@ -977,13 +965,6 @@ div.cbi-optionals { margin-left: auto; } -/**::-ms-backdrop,*/ -.cbi-page-actions > .cbi-button-save, -.cbi-page-actions > .cbi-button-apply, -.cbi-page-actions > form[method="post"] { - margin-left: 50%; -} - .cbi-page-actions > .cbi-button-apply + .cbi-button-save, .cbi-page-actions > .cbi-button-negative + .cbi-button-save, .cbi-page-actions > .cbi-button-save + form[method="post"], @@ -1376,7 +1357,7 @@ ul.cbi-tabmenu li.cbi-tab-disabled[data-errors]::after { /* indication line for drag-and-drop in UIDynamicList*/ .cbi-dynlist > .item.drag-over { - border-top: 1px solid red; + border-top: 1px red; } /* Make item being dragged in UIDynamicList partially transparent*/ @@ -1395,7 +1376,7 @@ ul.cbi-tabmenu li.cbi-tab-disabled[data-errors]::after { /* indication line for drag-and-drop in UIDynamicList*/ .cbi-dynlist > .add-item > .cbi-button-add.drag-over { - border-top: 1px solid red; + border-top: 1px red; } .cbi-dynlist > .add-item > input {