mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 05:21:55 -06:00
#6372: Fix badge & progress-bar foreground color in dark mode
This commit is contained in:
parent
32e1d7e879
commit
1a843f95b7
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -62,6 +62,16 @@
|
|||||||
margin-bottom: $spacer;
|
margin-bottom: $spacer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use proper contrasting color for badge & progress-bar foreground color.
|
||||||
|
@each $color, $value in $theme-colors {
|
||||||
|
.badge,
|
||||||
|
.progress-bar {
|
||||||
|
&.bg-#{$color} {
|
||||||
|
color: color-contrast($value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: var(--nbx-body-bg);
|
background-color: var(--nbx-body-bg);
|
||||||
color: var(--nbx-body-color);
|
color: var(--nbx-body-color);
|
||||||
@ -80,8 +90,10 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&[data-netbox-color-mode='light'] {
|
&[data-netbox-color-mode='light'] {
|
||||||
.btn.btn-primary {
|
.btn.btn-primary,
|
||||||
color: $white;
|
.progress-bar.bg-primary,
|
||||||
|
.badge.bg-primary {
|
||||||
|
color: $gray-50;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&[data-netbox-color-mode='dark'] {
|
&[data-netbox-color-mode='dark'] {
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
aria-valuemax="100"
|
aria-valuemax="100"
|
||||||
aria-valuenow="{{ utilization }}"
|
aria-valuenow="{{ utilization }}"
|
||||||
style="width: {{ utilization }}%;"
|
style="width: {{ utilization }}%;"
|
||||||
class="progress-bar bg-warning text-dark"
|
class="progress-bar bg-warning"
|
||||||
>
|
>
|
||||||
{{ utilization }}%
|
{{ utilization }}%
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user