From: Yanlan Shen Date: Mon, 3 Dec 2018 07:14:14 +0000 (+0800) Subject: luci-theme-rosy: Modify the code for the progress bar of the overview interface X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2334%2Fhead;p=oweals%2Fluci.git luci-theme-rosy: Modify the code for the progress bar of the overview interface Signed-off-by: Yanlan Shen --- diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css b/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css index 0b30ee3c4..6efafa334 100644 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css @@ -369,7 +369,6 @@ div>.table>.tbody>.tr:nth-of-type(2n) { background-color: #9bc1cc; border-radius: 20px; overflow: hidden; - border: none !important; position: relative; } .cbi-progressbar div { @@ -377,7 +376,8 @@ div>.table>.tbody>.tr:nth-of-type(2n) { height: 20px; border-radius: 20px; } -.cbi-progressbar samll { +.cbi-progressbar::after { + content: attr(title); position: absolute; top: 0; left: 0; diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js index e8ba02060..9d9cc7a2f 100755 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js @@ -286,13 +286,4 @@ }); }); - $('').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);