From 7be17e9baed40fe204634669d47d3eb2dc697e0a Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 10 Jul 2020 20:55:40 +0100 Subject: [PATCH] Navbar and top buttons * navbar-expand-md to stop navbar growing when dropdown opens. * Split dropdown doesn't work with tooltip - looks like a bs5 bug (same layout works with bs4) * Need to check button colours * Need to look at colour of dropdown links --- .../rest_framework/css/bootstrap-tweaks.css | 4 +- .../templates/rest_framework/base.html | 43 +++++++++++-------- rest_framework/templatetags/rest_framework.py | 11 +++-- 3 files changed, 31 insertions(+), 27 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..454d089da 100644 --- a/rest_framework/static/rest_framework/css/bootstrap-tweaks.css +++ b/rest_framework/static/rest_framework/css/bootstrap-tweaks.css @@ -18,10 +18,10 @@ a single block in the template. font-size: 80%; } -.navbar-inverse .brand a { +.navbar-dark .navbar-brand { color: #999999; } -.navbar-inverse .brand:hover a { +.navbar-inverse .navbar-brand:hover { color: white; text-decoration: none; } diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index 19805620d..369f151f8 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -33,17 +33,15 @@
{% block navbar %} -