mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Improve progress bar rendering
This commit is contained in:
parent
a803f21e0c
commit
1a0f091e0c
@ -40,12 +40,17 @@
|
||||
|
||||
.progress-bar {
|
||||
opacity: 60%;
|
||||
background: #2aa02a;
|
||||
}
|
||||
|
||||
.progress-bar-exceed {
|
||||
.progress-bar-under {
|
||||
background: #eeaa33;
|
||||
}
|
||||
|
||||
.progress-bar-over {
|
||||
background: #337ab7;
|
||||
}
|
||||
|
||||
.progress-value {
|
||||
width: 100%;
|
||||
color: #333;
|
||||
|
@ -116,7 +116,9 @@ function makeProgressBar(value, maximum, opts) {
|
||||
var extraclass = '';
|
||||
|
||||
if (value > maximum) {
|
||||
extraclass='progress-bar-exceed';
|
||||
extraclass='progress-bar-over';
|
||||
} else if (value < maximum) {
|
||||
extraclass = 'progress-bar-under';
|
||||
}
|
||||
|
||||
var id = opts.id || 'progress-bar';
|
||||
|
Loading…
Reference in New Issue
Block a user