From e56cd5735fef8756ca5fd6f85298ab62b7ee5b99 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 | 6 +++--- .../templates/rest_framework/pagination/numbers.html | 2 +- 3 files changed, 8 insertions(+), 4 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 82afac1e5..3272ec792 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -158,19 +158,19 @@ -
+
{% block description %} {{ description }} {% endblock %}
{% if paginator %} -