Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions hospexplorer/ask/static/admin/css/custom_admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
:root {
--primary: #8C1D40;
--accent: #6b1632;
--secondary: #6c757d;

--header-color: #ffffff;
--header-bg: #8C1D40;
--header-link-color: #ffffff;

--breadcrumbs-fg: #ffffff;
--breadcrumbs-link-fg: #f4c2cf;
--breadcrumbs-bg: #6b1632;

--link-fg: #8C1D40;
--link-hover-color: #6b1632;
--link-selected-fg: #6b1632;

--hairline-color: #dee2e6;
--border-color: #dee2e6;

--body-bg: #f8f9fa;
--body-fg: #212529;
--body-quiet-color: #6c757d;
--body-loud-color: #212529;

--darkened-bg: #e9ecef;
--selected-bg: #f9e8ed;
--selected-row: #f9e8ed;

--button-fg: #ffffff;
--button-bg: #8C1D40;
--button-hover-bg: #6b1632;
--default-button-bg: #8C1D40;
--default-button-hover-bg: #6b1632;

--close-button-bg: #adb5bd;
--close-button-hover-bg: #6c757d;
--delete-button-bg: #dc3545;

--object-tools-fg: #ffffff;
--object-tools-bg: #8C1D40;
--object-tools-hover-bg: #6b1632;

--message-success-bg: #dff0d8;
--message-warning-bg: #fcf8e3;
--message-error-bg: #f2dede;
}

#site-name a {
/* !important ensures it overrides Django's default admin specificity. */
color: #ffffff !important;
}
11 changes: 11 additions & 0 deletions hospexplorer/ask/templates/admin/base_site.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "admin/base.html" %}
{% load static %}

{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'admin/css/custom_admin.css' %}">
{% endblock %}

{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">Hopper Admin</a></h1>
{% endblock %}
6 changes: 3 additions & 3 deletions hospexplorer/hospexplorer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
# Application definition

INSTALLED_APPS = [
# Project apps (before django.contrib.admin so template overrides take effect)
"ask",

"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
Expand All @@ -41,9 +44,6 @@
"django.contrib.staticfiles",
"django.contrib.sites",

# Project apps
"ask",

# Allauth
"allauth",
"allauth.account",
Expand Down