mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
White text color on Cards with a dark-ish header
This commit is contained in:
parent
b891bd1889
commit
41d6caa5ef
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-print.css
vendored
BIN
netbox/project-static/dist/netbox-print.css
vendored
Binary file not shown.
@ -682,6 +682,20 @@ span.color-label {
|
||||
right: 0 !important;
|
||||
background-image: none !important;
|
||||
}
|
||||
// Extend white text background color on GridStack cards with a dark header
|
||||
.grid-stack-item-content > .bg-black,
|
||||
.bg-gray,
|
||||
.bg-green,
|
||||
.bg-orange,
|
||||
.bg-red,
|
||||
.bg-pink,
|
||||
.bg-purple,
|
||||
.bg-indigo,
|
||||
.bg-blue {
|
||||
> h6 {
|
||||
@extend .text-white;
|
||||
}
|
||||
}
|
||||
|
||||
// Floating forms
|
||||
.form-floating {
|
||||
|
@ -9,7 +9,7 @@
|
||||
gs-id="{{ widget.id }}"
|
||||
>
|
||||
<div class="card grid-stack-item-content">
|
||||
<div class="card-header text-center text-light {% if widget.color %}bg-{{ widget.color }} {% endif %}p-1">
|
||||
<div class="card-header text-center {% if widget.color %}bg-{{ widget.color }} {% endif %}p-1">
|
||||
<div class="float-start ps-1 grid-stack-item-button invisible">
|
||||
<a href="#"
|
||||
hx-get="{% url 'extras:dashboardwidget_config' id=widget.id %}"
|
||||
@ -37,4 +37,4 @@
|
||||
{% render_widget widget %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user