Skip to content

Commit d1b5a1e

Browse files
authored
fix: dark mode link colors (#508)
1 parent f34ec1b commit d1b5a1e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unfold/templates/admin/actions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{{ selection_note_all }}
3838
</span>
3939

40-
<span class="question hidden text-primary-600 text-sm underline">
40+
<span class="question hidden text-primary-600 text-sm underline dark:text-primary-500">
4141
<a href="#" title="{% translate "Click here to select the objects across all pages" %}">
4242
{% blocktranslate with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktranslate %}
4343
</a>

src/unfold/templates/admin/app_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h3 class="font-medium my-3 text-gray-900 text-sm dark:text-gray-200">
2727

2828
{% if model.admin_url %}
2929
<a href="{{ model.admin_url }}" id="link-{{ app.app_label }}-{{ model.object_name|lower }}"
30-
class="border border-transparent flex h-11 items-center -mx-3 px-3 py-2 rounded-md transition-all truncate {% if model.admin_url in request.path|urlencode %}bg-gray-100 font-semibold text-primary-500 dark:border dark:border-gray-800 dark:bg-white/[.02]{% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200{% endif %}">
30+
class="border border-transparent flex h-11 items-center -mx-3 px-3 py-2 rounded-md transition-all truncate {% if model.admin_url in request.path|urlencode %}bg-gray-100 font-semibold text-primary-600 dark:border dark:border-gray-800 dark:bg-white/[.02] dark:text-primary-500{% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200{% endif %}">
3131
<span class="text-sm">
3232
{{ model.name }}
3333
</span>

src/unfold/templates/admin/filter.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h3 class="font-medium mb-2 text-gray-700 text-sm dark:text-gray-200">
1414
{% if spec|class_name == "BooleanFieldListFilter" %}
1515
<ul class="border-l-4 border-gray-200 flex pl-4 py-2 text-gray-500 text-sm dark:border-gray-700">
1616
{% for choice in choices %}
17-
<li class="{% if choice.selected %}font-medium text-primary-500 underline dark{% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200{% endif %} pr-4">
17+
<li class="{% if choice.selected %}font-medium text-primary-600 dark:text-primary-500 underline dark{% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200{% endif %} pr-4">
1818
<a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">
1919
{{ choice.display }}
2020
</a>
@@ -24,7 +24,7 @@ <h3 class="font-medium mb-2 text-gray-700 text-sm dark:text-gray-200">
2424
{% else %}
2525
<ul class="border-l-4 border-gray-200 flex flex-col pl-4 py-4 text-gray-500 text-sm dark:border-gray-700">
2626
{% for choice in choices %}
27-
<li class="mb-4 last:mb-0 {% if choice.selected %}font-medium text-primary-500 underline {% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200{% endif %}">
27+
<li class="mb-4 last:mb-0 {% if choice.selected %}font-medium text-primary-600 dark:text-primary-500 underline {% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200{% endif %}">
2828
<a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">
2929
{{ choice.display }}
3030
</a>

src/unfold/templates/admin/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="w-full sm:w-96">
3030
<h1 class="font-semibold mb-10">
3131
<span class="block text-gray-700 dark:text-gray-200">{% trans 'Welcome back to' %}</span>
32-
<span class="block text-primary-600 text-xl">{{ site_title }}</span>
32+
<span class="block text-primary-600 text-xl dark:text-primary-500">{{ site_title }}</span>
3333
</h1>
3434

3535
{% include "unfold/helpers/messages/errornote.html" with errors=form.errors %}
@@ -78,7 +78,7 @@ <h1 class="font-semibold mb-10">
7878

7979
<div class="absolute flex flex-row items-center justify-between left-0 m-4 right-0 top-0">
8080
{% if site_url %}
81-
<a href="{{ site_url }}" class="flex font-medium items-center text-sm text-primary-600">
81+
<a href="{{ site_url }}" class="flex font-medium items-center text-sm text-primary-600 dark:text-primary-500">
8282
<span class="material-symbols-outlined mr-2">arrow_back</span> {% trans 'Return to site' %}
8383
</a>
8484
{% endif %}

0 commit comments

Comments
 (0)