1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #34627 -- Highlighted active row in admin UI when forced-colors mode is enabled.

This commit is contained in:
Nina Menezes 2023-06-05 20:37:17 +01:00 committed by GitHub
parent e26d1a91d7
commit 51fdea6841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -265,6 +265,15 @@
background-color: var(--selected-row);
}
@media (forced-colors: active) {
#changelist table tbody tr.selected {
background-color: SelectedItem;
}
#changelist table tbody tr:has(input[type=checkbox]:checked) {
background-color: SelectedItem;
}
}
#changelist .actions {
padding: 10px;
background: var(--body-bg);

View File

@ -102,6 +102,12 @@
background: var(--selected-row);
}
@media (forced-colors: active) {
#nav-sidebar .current-model {
background-color: SelectedItem;
}
}
.main > #nav-sidebar + .content {
max-width: calc(100% - 23px);
}