mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Improve progress bar display using strips for the 'ongoing' part
This commit is contained in:
parent
83ea279b7a
commit
5d34b374dc
2 changed files with 9 additions and 1 deletions
|
@ -558,6 +558,14 @@ input[type='radio'].nice-radio {
|
|||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.messages .progress-bar-striped {
|
||||
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 75%, transparent 75%, transparent);
|
||||
}
|
||||
|
||||
.messages .progress-bar.active {
|
||||
animation-direction: reverse;
|
||||
}
|
||||
|
||||
/** custom badges **/
|
||||
.badge {
|
||||
&.badge-default {
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
done = done * 100 / total;
|
||||
ongoing = ongoing * 100 / total;
|
||||
// Actually build the message with the progress bar
|
||||
message = '<div class="progress"><div class="progress-bar progress-bar-success" role="progressbar" style="width:'+done+'%"></div><div class="progress-bar" role="progressbar" style="width:'+ongoing+'%;"></div></div><p style="display: inline-block;">' + message + '</p>';
|
||||
message = '<div class="progress"><div class="progress-bar progress-bar-success" role="progressbar" style="width:'+done+'%"></div><div class="progress-bar progress-bar-striped active" role="progressbar" style="width:'+ongoing+'%;"></div></div><p style="display: inline-block;">' + message + '</p>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue