datatracker/ietf/templates/admin/base.html
Jennifer Richards 95a7e14ada
feat: dev mode admin + refactor api init (#7628)
* feat: style admin site in dev mode

* refactor: eliminate base_site.html

* fix: remove debug

* fix: commit missing __init__.py

* refactor: make method static; fix tests

* refactor: move api init to AppConfig.ready()

Avoids interacting with the app registry before
it's ready.
2024-08-07 09:16:40 -05:00

28 lines
1.1 KiB
HTML

{% extends 'admin/base.html' %}
{% load static %}
{% block extrastyle %}{{ block.super }}
{% if server_mode and server_mode != "production" %}
<style>
{# grab colors that match bootstrap so we don't have to import the css #}
html, :root{
--bs-danger-bg-subtle: #F8D7DAFF;
--bs-danger-text-emphasis: #58151CFF;
--bs-danger: #DC3545FF;
--bs-secondary: #6C757DFF;
--bs-primary-text-emphasis: #052C65FF;
}
html[data-theme="light"], :root {
--primary: var(--bs-danger-bg-subtle);
--secondary: var(--bs-danger-bg-subtle);
--accent: var(--bs-danger-text-emphasis);
--primary-fg: var(--bs-primary-text-emphasis);
--link-fg: var(--bs-danger-text-emphasis);
--header-color: var(--bs-secondary);
--breadcrumbs-fg: var(--bs-secondary);
--breadcrumbs-link-fg: var(--link-fg);
}
span.text-danger { color: var(--bs-danger); }
</style>
{% endif %}
{% endblock %}