From 8492841ed333a41c0fcc8dd789bb062fab4cb0e9 Mon Sep 17 00:00:00 2001 From: David Smith Date: Sat, 11 Jul 2020 08:35:03 +0100 Subject: [PATCH] HTML/Raw data forms * form-horizontal is no longer used. Need to use the grid. aligned tabs right Raw Data Form * Use grid / rows to space form. form-group has been deprecated in favour of utility classes. Replaced `well` class (background colour/border) with bootstrap utility classes --- .../rest_framework/css/bootstrap-tweaks.css | 15 ------ .../templates/rest_framework/base.html | 50 +++++++++---------- .../rest_framework/raw_data_form.html | 4 +- 3 files changed, 27 insertions(+), 42 deletions(-) diff --git a/rest_framework/static/rest_framework/css/bootstrap-tweaks.css b/rest_framework/static/rest_framework/css/bootstrap-tweaks.css index 454d089da..e626a7735 100644 --- a/rest_framework/static/rest_framework/css/bootstrap-tweaks.css +++ b/rest_framework/static/rest_framework/css/bootstrap-tweaks.css @@ -124,21 +124,6 @@ html, body { margin-bottom: 0; } -.well { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} - -.well .form-actions { - padding-bottom: 0; - margin-bottom: 0; -} - -.well form { - margin-bottom: 0; -} - .nav-tabs { border: 0; } diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index 353a27f40..2a36d90fe 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -182,26 +182,26 @@ {% if post_form or raw_data_post_form %}
{% if post_form %} -