Skip to content

Commit 4d13bd7

Browse files
committed
highlight clickable links and add row hover effect in admin change lists
1 parent 0b6e639 commit 4d13bd7

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

src/hope/apps/administration/templates/admin/change_list.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,33 @@
1313
#changelist table thead th:first-child {width: inherit}
1414
</style>
1515
{% endif %}
16+
17+
<style>
18+
/* Links in change-list: distinct color so they look clickable */
19+
#result_list .data-row a {
20+
color: var(--color-primary-600) !important;
21+
}
22+
#result_list .data-row a:hover {
23+
color: var(--color-primary-800) !important;
24+
}
25+
:is(.dark, .dark *) #result_list .data-row a {
26+
color: var(--color-primary-400) !important;
27+
}
28+
:is(.dark, .dark *) #result_list .data-row a:hover {
29+
color: var(--color-primary-200) !important;
30+
}
31+
32+
/* Row hover highlight */
33+
#result_list > tbody:hover > tr > td,
34+
#result_list > tbody:hover > tr > th {
35+
background-color: var(--color-base-100) !important;
36+
transition: background-color 0.15s ease;
37+
}
38+
:is(.dark, .dark *) #result_list > tbody:hover > tr > td,
39+
:is(.dark, .dark *) #result_list > tbody:hover > tr > th {
40+
background-color: color-mix(in oklab, var(--color-white) 6%, transparent) !important;
41+
}
42+
</style>
1643
{% endblock extrastyle %}
1744

1845
{% block extrahead %}

0 commit comments

Comments
 (0)