Skip to content

Conversation

@ivanhulzen-leukeleu
Copy link

It would be nice if we could add the missing {% block extrastyle %} that matches the base_per_login.html and Django's base_site.html.

With this change it would be possible to add an extra stylesheet where we could override the Django default CSS vars to match our own design.

<link rel="stylesheet" href="{% static 'admin/css/dark_mode.css' %}">
<script src="{% static 'admin/js/theme.js' %}" nonce="{% csp_nonce %}"></script>
{% endblock %}
{% block extrastyle %}{% endblock %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe call it extra_head or something so it can be used for anything that could ever be added to the head?

Suggested change
{% block extrastyle %}{% endblock %}
{% block extra_head %}{% endblock %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants