Skip to content

Commit 7b03dbb

Browse files
committed
[chore]: Use theme color variables instead of hardcoded values #661
Replace hardcoded colors in CSS files and templates with the CSS variables introduced in openwisp-utils#516 to ensure unified theming and simplify future palette updates. Closes #661
1 parent b512f3a commit 7b03dbb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

openwisp_radius/integrations/monitoring/static/radius-monitoring/css/device-change.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
height: 4em;
1111
}
1212
#radius-session-tbody strong {
13-
color: green;
13+
color: var(--ow-color-success, green);
1414
}
1515
#radius-session-tbody tr td p {
1616
white-space: nowrap;

openwisp_radius/static/openwisp-radius/css/mode-switcher.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
.form-row.field-user label,
77
.form-row.field-username label {
88
font-weight: bold;
9-
color: #333;
9+
color: var(--ow-color-fg-darker, #333);
1010
}

openwisp_radius/static/openwisp-radius/css/radiusbatch.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
.field-prefix label,
33
.field-number_of_users label {
44
font-weight: bold;
5-
color: #000;
5+
color: var(--ow-color-black, #000);
66
}

openwisp_radius/templates/openwisp-radius/prefix_pdf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
table { width: 100%; border-collapse: collapse }
1111
table th { font-weight: bold }
1212
table th, table td {
13-
border: 1px solid #ccc;
13+
border: 1px solid var(--ow-color-fg-medium, #ccc);
1414
padding: 10px;
1515
}
1616
</style>

0 commit comments

Comments
 (0)