fix: progress bar background color
This commit is contained in:
parent
7843f87a0c
commit
78340853d8
3 changed files with 35 additions and 22 deletions
|
|
@ -692,7 +692,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
if (df.fieldtype === "Code") {
|
||||
return value;
|
||||
} else if (df.fieldtype === "Percent") {
|
||||
return `<div class="progress level" style="margin: 0px;">
|
||||
return `<div class="progress" style="margin: 0px;">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar"
|
||||
aria-valuenow="${value}"
|
||||
aria-valuemin="0" aria-valuemax="100" style="width: ${Math.round(value)}%;">
|
||||
|
|
|
|||
|
|
@ -180,27 +180,6 @@ textarea.form-control {
|
|||
// min-height: 11.69in;
|
||||
// }
|
||||
|
||||
.progress, .progress-bar {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
a.progress-small {
|
||||
.progress-chart {
|
||||
width: 40px;
|
||||
margin-top: 4px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.progress {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
transition: unset;
|
||||
background-color: #98d85b;
|
||||
}
|
||||
}
|
||||
|
||||
li.user-progress {
|
||||
.progress-chart {
|
||||
width: 50px;
|
||||
|
|
|
|||
|
|
@ -174,4 +174,38 @@
|
|||
border-radius: var(--border-radius);
|
||||
font-size: var(--text-md);
|
||||
}
|
||||
}
|
||||
|
||||
/* progress bar */
|
||||
.progress, .progress-bar {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
a.progress-small {
|
||||
.progress-chart {
|
||||
width: 40px;
|
||||
margin-top: 4px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.progress {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
transition: unset;
|
||||
background-color: var(--green-500);
|
||||
}
|
||||
}
|
||||
|
||||
.progress-bar-success {
|
||||
background-color: var(--green-500);
|
||||
}
|
||||
|
||||
.progress-bar-danger {
|
||||
background-color: var(--red-500);
|
||||
}
|
||||
|
||||
.progress-bar-warning {
|
||||
background-color: var(--orange-500);
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue