summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-rosy/htdocs/luci-static
diff options
context:
space:
mode:
authorYanlan Shen <yanlan.shen.@rosinson.com>2018-12-03 15:14:14 +0800
committerYanlan Shen <yanlan.shen.@rosinson.com>2018-12-03 15:14:14 +0800
commit6aa8ab54ee1f3f5cceb5aebd1d657ab2fa007cd8 (patch)
tree78b04e2aaa1f9b0f1a51c8f7c58d3e2ad25cadc8 /themes/luci-theme-rosy/htdocs/luci-static
parentc7bd4397fbd761591237c7171e147969099fc4d1 (diff)
luci-theme-rosy: Modify the code for the progress bar of the overview interface
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
Diffstat (limited to 'themes/luci-theme-rosy/htdocs/luci-static')
-rw-r--r--themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css4
-rwxr-xr-xthemes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js9
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 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 @@
});
});
- $('<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);