From 316cabfb241a86758a77127e532a60f1334497a8 Mon Sep 17 00:00:00 2001 From: Craig Anderson Date: Tue, 4 May 2021 16:08:56 +0100 Subject: [PATCH] Remove a bit of inline CSS. Add CSP nonce where it might be required and is available. --- .../static/rest_framework/css/bootstrap-tweaks.css | 4 ++++ rest_framework/templates/rest_framework/base.html | 10 ++++++---- .../templates/rest_framework/pagination/numbers.html | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/rest_framework/static/rest_framework/css/bootstrap-tweaks.css b/rest_framework/static/rest_framework/css/bootstrap-tweaks.css index c2fcb303d..5c033be37 100644 --- a/rest_framework/static/rest_framework/css/bootstrap-tweaks.css +++ b/rest_framework/static/rest_framework/css/bootstrap-tweaks.css @@ -231,3 +231,7 @@ body a:hover { margin-left: 5px; margin-right: 5px; } + +.pagination { + margin: 5px 0 10px 0; +} diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index a88e1591c..8ad0be48c 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -22,7 +22,9 @@ - {% if code_style %}{% endif %} + {% if code_style %} + {{ code_style }} + {% endif %} {% endblock %} {% endblock %} @@ -158,19 +160,19 @@ -
+
{% block description %} {{ description }} {% endblock %}
{% if paginator %} -