From 916a4a27ef6d045475a61a1131439d2597dfc2ce Mon Sep 17 00:00:00 2001 From: andrewhannum Date: Mon, 23 Oct 2017 04:02:04 -0600 Subject: [PATCH] Interactive docs - make bottom sidebar items sticky (#5516) --- rest_framework/static/rest_framework/docs/css/base.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rest_framework/static/rest_framework/docs/css/base.css b/rest_framework/static/rest_framework/docs/css/base.css index b7ae6375e..97728e3c6 100644 --- a/rest_framework/static/rest_framework/docs/css/base.css +++ b/rest_framework/static/rest_framework/docs/css/base.css @@ -64,6 +64,10 @@ pre.highlight code { display: none; } +.sidebar .menu-list { + width: inherit; +} + .sidebar .menu-list ul, .sidebar .menu-list li { background: #2e353d; @@ -194,7 +198,8 @@ body { .sidebar .menu-list.menu-list-bottom { margin-bottom: 0; - position: absolute; + position: fixed; + width: inherit; bottom: 0; left: 0; right: 0;