Skip to content

Commit

Permalink
fix: dark mode link colors (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Jun 24, 2024
1 parent f34ec1b commit d1b5a1e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/unfold/templates/admin/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{{ selection_note_all }}
</span>

<span class="question hidden text-primary-600 text-sm underline">
<span class="question hidden text-primary-600 text-sm underline dark:text-primary-500">
<a href="#" title="{% translate "Click here to select the objects across all pages" %}">
{% blocktranslate with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktranslate %}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/unfold/templates/admin/app_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3 class="font-medium my-3 text-gray-900 text-sm dark:text-gray-200">

{% if model.admin_url %}
<a href="{{ model.admin_url }}" id="link-{{ app.app_label }}-{{ model.object_name|lower }}"
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 %}">
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 %}">
<span class="text-sm">
{{ model.name }}
</span>
Expand Down
4 changes: 2 additions & 2 deletions src/unfold/templates/admin/filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3 class="font-medium mb-2 text-gray-700 text-sm dark:text-gray-200">
{% if spec|class_name == "BooleanFieldListFilter" %}
<ul class="border-l-4 border-gray-200 flex pl-4 py-2 text-gray-500 text-sm dark:border-gray-700">
{% for choice in choices %}
<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">
<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">
<a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">
{{ choice.display }}
</a>
Expand All @@ -24,7 +24,7 @@ <h3 class="font-medium mb-2 text-gray-700 text-sm dark:text-gray-200">
{% else %}
<ul class="border-l-4 border-gray-200 flex flex-col pl-4 py-4 text-gray-500 text-sm dark:border-gray-700">
{% for choice in choices %}
<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 %}">
<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 %}">
<a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">
{{ choice.display }}
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/unfold/templates/admin/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="w-full sm:w-96">
<h1 class="font-semibold mb-10">
<span class="block text-gray-700 dark:text-gray-200">{% trans 'Welcome back to' %}</span>
<span class="block text-primary-600 text-xl">{{ site_title }}</span>
<span class="block text-primary-600 text-xl dark:text-primary-500">{{ site_title }}</span>
</h1>

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

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

0 comments on commit d1b5a1e

Please sign in to comment.