Menu utilisateur du rail identique au mobile (Mon avatar, Paramètres, Admin, Déconnexion) ; titre du site masqué sur téléphone/tablette. Fragment réutilisable _image_upload.html pour le fond (Paramètres) et l'avatar, à la façon BibliothequAyr ; nouvelle route POST /api/fond/ (admin, Pillow, plafond 5 Mo) ; retrait du fond via BoiteDialog. Icônes SVG du site à la place des Bootstrap Icons jamais chargées ; les 9 favicons voyagent dans le projet. Aucune migration ; moteur, anti-régression et journal intacts.
31 lines
1.2 KiB
HTML
Executable file
31 lines
1.2 KiB
HTML
Executable file
{% extends "admin/base_site.html" %}
|
|
{% load static %}
|
|
{% block branding %}
|
|
<div style="display:flex;align-items:center;gap:.5rem">
|
|
<h1 id="site-name" style="margin:0;font-size:1.05rem">
|
|
<a href="{% url 'admin:index' %}">{{ site_config.site_name|default:"VocabulAyr" }} — Administration</a>
|
|
</h1>
|
|
</div>
|
|
{% endblock %}
|
|
{% block extrastyle %}
|
|
{{ block.super }}
|
|
<link rel="icon" href="{% static 'jeu/favicons/favicon-32x32.png' %}" sizes="32x32">
|
|
<link rel="icon" href="{% static 'jeu/favicons/favicon-16x16.png' %}" sizes="16x16">
|
|
<style>
|
|
:root {
|
|
--primary: #b23c2a; --accent: #b23c2a; --link-fg: #b23c2a;
|
|
--header-color: #221b13; --header-branding-color: #f2ead7;
|
|
--breadcrumbs-bg: #221b13; --breadcrumbs-fg: #f2ead7;
|
|
--font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
--font-family-primary: var(--font-family-base);
|
|
}
|
|
#header { background: #221b13; }
|
|
#site-name a { color: inherit; }
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--body-bg: #1c1712; --darkened-bg: #221b13; --lightened-bg: #2e2718;
|
|
--selected-row: #2e2718; --button-bg: #2e2718; --hovered-bg: #3a3120;
|
|
}
|
|
}
|
|
</style>
|
|
{% endblock %}
|