luci-theme-rosy: Modify the color of the button's primary and secondary colors and the bug of the status-overview page.

Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
This commit is contained in:
Yanlan Shen 2018-11-27 10:15:31 +08:00
parent a92c94df32
commit 6cb25970b8
2 changed files with 452 additions and 514 deletions

File diff suppressed because it is too large Load diff

View file

@ -272,15 +272,21 @@
}
var a = window.getComputedStyle($(".cbi-section .table .tr:first-child")[0], ':before').getPropertyValue('content');
var b = window.getComputedStyle($('.cbi-section .table .tr:last-child')[0], ':before').getPropertyValue('content');
console.log(typeof a);
if( a != 'none' || b != 'none' ){
$('.cbi-section .table .tr:first-child .td:first-child').css('border-top-left-radius', '0');
$('.cbi-section .table .tr:last-child .td:first-child').css('border-bottom-left-radius', '0');
$('.cbi-section .table .tr:first-child .th:first-child').css('border-top-left-radius', '0');
console.log($('.cbi-section .table .tr:last-child .td:first-child'));
}
});
$('<samll>').text($('.cbi-progressbar').attr('title')).appendTo('.cbi-progressbar');
setInterval(function(){
$('.cbi-progressbar').each(function(i, e){
$(this).children("samll").text($(this).attr('title'));
});
}, 5000);
})(jQuery);