Ticket #29936: admin-fonts.patch

File admin-fonts.patch, 1.2 KB (added by Antonio Cavedoni, 6 years ago)

Patch for #29936 created on git master as of 75dfa92a05c7161edd0ba7bc9ceab9b54d3383db

  • django/contrib/admin/static/admin/css/base.css

    diff --git a/django/contrib/admin/static/admin/css/base.css b/django/contrib/admin/static/admin/css/base.css
    index fd011a3f9a..087037a4de 100644
    a b  
    22    DJANGO Admin styles
    33*/
    44
    5 @import url(fonts.css);
    6 
    75body {
    86    margin: 0;
    97    padding: 0;
  • django/contrib/admin/templates/admin/base.html

    diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
    index 2cf5137070..2f2040f392 100644
    a b  
    33<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
    44<head>
    55<title>{% block title %}{% endblock %}</title>
     6{% block adminfonts %}<link rel="stylesheet" type="text/css" href="{% static "admin/css/fonts.css" %}">{% endblock %}
    67<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}">
    78{% block extrastyle %}{% endblock %}
    89{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}">{% endif %}
Back to Top