luci-theme-rosy: Fixed table color matching problem
authorYanlan Shen <yanlan.shen.@rosinson.com>
Thu, 10 Jan 2019 03:49:37 +0000 (11:49 +0800)
committerYanlan Shen <yanlan.shen.@rosinson.com>
Thu, 10 Jan 2019 03:59:42 +0000 (11:59 +0800)
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css
themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js

index ca65dad85c89976505b3603abcaa1e701b2e4860..3132a4849c66a8d193a158c6cd658758c115fae3 100644 (file)
@@ -403,20 +403,6 @@ h4 {
     width: calc(100% - 1.5rem);
 }
 
-div>table>tbody>tr:nth-of-type(2n),
-div>.table>.tbody>.tr:nth-of-type(2n) {
-    background-color: #f9f9f9;
-}
-
-div>table>tbody>tr:nth-of-type(2n),
-div>.table>.tbody>.tr:nth-of-type(2n) {
-    background-color: #f9f9f9;
-}
-
-.cbi-section .table .tr.table-titles {
-    background-color: #eee;
-}
-
 .table .tr:first-child .td:first-child,
 .table .tr:first-child::before,
 .table .tr:first-child .th:first-child {
@@ -441,10 +427,6 @@ div>.table>.tbody>.tr:nth-of-type(2n) {
     background-color: transparent;
 }
 
-.cbi-section .table .cbi-section-table-titles {
-    background-color: #e0e0e0;
-}
-
 /* fix progress bar */
 .cbi-progressbar {
     background-color: #9bc1cc;
@@ -776,12 +758,19 @@ td>table>tbody>tr>td,
     vertical-align: middle;
 }
 
-.cbi-rowstyle-1 {
+.table .tr.cbi-rowstyle-2,
+.table .tr:nth-child(n) {
+    background-color: #eee;
+}
+
+.table .tr.cbi-rowstyle-1,
+.table .tr:nth-child(2n) {
     background-color: #f9f9f9;
 }
 
-.cbi-rowstyle-2 {
-    background-color: #eee;
+.table .tr.table-titles,
+.table .tr.cbi-section-table-titles {
+    background-color: #ddd;
 }
 
 .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
@@ -1488,11 +1477,6 @@ header>.container>.pull-right>* {
     overflow-x: scroll;
 }
 
-.node-status-iptables #iptables .table-titles,
-.node-system-opkg #packages .cbi-section-table-titles {
-    background-color: #eee;
-}
-
 /* fix status realtime traffic and wireless */
 
 .node-status-realtime.lang_enTraffic .cbi-tabmenu,
index cda7b471b4f0829a7072224c628f86af8ea2a355..cffa3676fa297204eab1c1ba028a1b1827ec7dad 100755 (executable)
         });
     });
 
-    $('.lang_enNetwork #cbi-samba-sambashare .table').wrap('<div class="table-container"></div>');
+    $('#iptables').prev().css('margin-top', '10px');
 
 })(jQuery);