Skip to content

Commit

Permalink
feat(admin): add favicon (#157)
Browse files Browse the repository at this point in the history
PR Close #157
  • Loading branch information
Mikhail Eremeev authored Nov 9, 2021
2 parents 458da4c + cd5a3f0 commit 61b0914
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
18 changes: 9 additions & 9 deletions app/staticfiles/admin/css/admin.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#header {
background:#295A75;
color:#FBFBFB;
background: #295A75;
color: #FBFBFB;
}

div.breadcrumbs {
background:#F58F00;
color:#FBFBFB
background: #F58F00;
color: #FBFBFB
}

div.breadcrumbs a:focus, div.breadcrumbs a:hover {
color:#295A75;
color:#295A75;
}

.button, input[type="submit"], input[type="button"], .submit-row input, a.button {
background:#295A75;
color:#FBFBFB;
background:#295A75;
color:#FBFBFB;
}

.module h2, .module caption, .inline-group h2 {
background:#F58F00;
color:#FBFBFB;
background:#F58F00;
color:#FBFBFB;
}
Binary file added app/staticfiles/admin/favicon.ico
Binary file not shown.
7 changes: 6 additions & 1 deletion app/templates/admin/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

{% load static %}

{% block extrahead %}
<link rel="shortcut icon" href="{% static 'admin/favicon.ico' %}" type="image/x-icon">
<link rel="icon" href="{% static 'admin/favicon.ico' %}" type="image/x-icon">
{% endblock %}

{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}

{% block branding %}
Expand All @@ -14,7 +19,7 @@ <h1 id="site-name">
{% endblock %}

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

{% block nav-global %}{% endblock %}

0 comments on commit 61b0914

Please sign in to comment.