From 7762aaa90f92ff30e521931db2ec65c52f8da98e Mon Sep 17 00:00:00 2001 From: Tom Quinonero Date: Mon, 8 Jul 2019 14:05:13 +0200 Subject: [PATCH] Docs sidebar improvements (#5638) (#6589) * add sans-serif fallback for Verdana in docs sidebar Co-Authored-By: Joachim Jablon * improve display for docs sidebar (#5638) Co-Authored-By: Joachim Jablon --- .../static/rest_framework/docs/css/base.css | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/rest_framework/static/rest_framework/docs/css/base.css b/rest_framework/static/rest_framework/docs/css/base.css index b81fdef54..0be2bafa9 100644 --- a/rest_framework/static/rest_framework/docs/css/base.css +++ b/rest_framework/static/rest_framework/docs/css/base.css @@ -30,7 +30,7 @@ pre.highlight code { .sidebar { overflow: auto; - font-family: verdana; + font-family: verdana, sans-serif; font-size: 12px; font-weight: 200; background-color: #2e353d; @@ -111,7 +111,11 @@ pre.highlight code { border: none; border-bottom: 1px solid #23282e; margin-left: 0px; - text-indent: 10px; + line-height: 1.4; + padding-top: 10px; + padding-bottom: 10px; + padding-right: 10px; + padding-left: 25px; } .sidebar .menu-list ul .sub-menu li:hover, @@ -128,11 +132,14 @@ pre.highlight code { .sidebar .menu-list ul .sub-menu li a:before, .sidebar .menu-list li .sub-menu li a:before { font-family: FontAwesome; + font-size: 14px; + font-weight: bold; content: "\f105"; - display: inline-block; - padding-left: 10px; - padding-right: 10px; + display: inline; vertical-align: middle; + padding-left: 0; + padding-right: 7px; + margin-left: -12px; } .sidebar .menu-list li {