Skip to content

Commit 71c9672

Browse files
Tom Quinoneroewjoachim
authored andcommitted
Docs sidebar improvements (encode#5638) (encode#6589)
* add sans-serif fallback for Verdana in docs sidebar Co-Authored-By: Joachim Jablon <[email protected]> * improve display for docs sidebar (encode#5638) Co-Authored-By: Joachim Jablon <[email protected]>
1 parent 3abd0ec commit 71c9672

File tree

1 file changed

+12
-5
lines changed
  • rest_framework/static/rest_framework/docs/css

1 file changed

+12
-5
lines changed

rest_framework/static/rest_framework/docs/css/base.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pre.highlight code {
3030

3131
.sidebar {
3232
overflow: auto;
33-
font-family: verdana;
33+
font-family: verdana, sans-serif;
3434
font-size: 12px;
3535
font-weight: 200;
3636
background-color: #2e353d;
@@ -111,7 +111,11 @@ pre.highlight code {
111111
border: none;
112112
border-bottom: 1px solid #23282e;
113113
margin-left: 0px;
114-
text-indent: 10px;
114+
line-height: 1.4;
115+
padding-top: 10px;
116+
padding-bottom: 10px;
117+
padding-right: 10px;
118+
padding-left: 25px;
115119
}
116120

117121
.sidebar .menu-list ul .sub-menu li:hover,
@@ -128,11 +132,14 @@ pre.highlight code {
128132
.sidebar .menu-list ul .sub-menu li a:before,
129133
.sidebar .menu-list li .sub-menu li a:before {
130134
font-family: FontAwesome;
135+
font-size: 14px;
136+
font-weight: bold;
131137
content: "\f105";
132-
display: inline-block;
133-
padding-left: 10px;
134-
padding-right: 10px;
138+
display: inline;
135139
vertical-align: middle;
140+
padding-left: 0;
141+
padding-right: 7px;
142+
margin-left: -12px;
136143
}
137144

138145
.sidebar .menu-list li {

0 commit comments

Comments
 (0)