luci-theme-material: add missing css cbi-section-error definitions 2329/head
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 23 Nov 2018 09:26:58 +0000 (10:26 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 23 Nov 2018 12:17:41 +0000 (13:17 +0100)
Add the missing error css class definitions.
Highlights the wrong inputs detected by the cbi validation function.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
themes/luci-theme-material/htdocs/luci-static/material/cascade.css

index 48812c1c8a6a19cdac10e31f892f050e952e2b25..cd8229eed3d4a8520867ff04a406d42090e97417 100644 (file)
@@ -853,6 +853,29 @@ td > table > tbody > tr > td,
     line-height: 1.25;
 }
 
+.cbi-input-invalid,
+.cbi-value-error input {
+    color: #f00;
+    border-color: #f00;
+}
+
+.cbi-section-error {
+    border: 1px solid #f00;
+    border-radius: 3px;
+    background-color: #fce6e6;
+    padding: 5px;
+    margin: 18px;
+}
+
+.cbi-section-error ul {
+    margin: 0 0 0 20px;
+}
+
+.cbi-section-error ul li {
+    color: #f00;
+    font-weight: bold;
+}
+
 .cbi-value-helpicon > img {
     display: none;
 }