From 6aa8ab54ee1f3f5cceb5aebd1d657ab2fa007cd8 Mon Sep 17 00:00:00 2001 From: Yanlan Shen Date: Mon, 3 Dec 2018 15:14:14 +0800 Subject: [PATCH] luci-theme-rosy: Modify the code for the progress bar of the overview interface Signed-off-by: Yanlan Shen --- .../luci-theme-rosy/htdocs/luci-static/rosy/cascade.css | 4 ++-- .../luci-theme-rosy/htdocs/luci-static/rosy/js/script.js | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) 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 0b30ee3c46..6efafa3347 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 e8ba020609..9d9cc7a2f9 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); -- 2.30.2