Skip to content

Commit f76e721

Browse files
committed
Simplify sidebar's overflow settings
Because sidebar needs to be scrollable, its overflow should default to auto. Currently it's set to hidden and force individual elements to set overflow auto, which overcomplicates things.
1 parent 106bbee commit f76e721

File tree

1 file changed

+2
-7
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+2
-7
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

+2-7
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ nav {
212212
position: fixed;
213213
top: 0;
214214
bottom: 0;
215-
overflow: hidden;
215+
overflow: auto;
216216
z-index: 10;
217217

218218
/* Layout */
@@ -228,11 +228,6 @@ nav[hidden] {
228228
display: none;
229229
}
230230

231-
nav #project-metadata {
232-
overflow: auto; /* Make the content scrollable */
233-
flex: 1; /* Take up remaining space */
234-
}
235-
236231
nav footer {
237232
padding: 1em;
238233
border-top: 1px solid #ccc;
@@ -286,7 +281,7 @@ nav .nav-section {
286281
margin-top: 2em;
287282
border-top: 2px solid #aaa;
288283
font-size: 90%;
289-
overflow: hidden;
284+
flex: 1;
290285
}
291286

292287
nav h2 {

0 commit comments

Comments
 (0)