luci-theme-openwrt: prevent minify errors
authorPaul Donald <redacted>
Thu, 15 Jan 2026 16:48:26 +0000 (17:48 +0100)
committerPaul Donald <redacted>
Thu, 15 Jan 2026 16:51:15 +0000 (17:51 +0100)
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 <redacted>
themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css

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