Skip to content

Commit

Permalink
Simplify sidebar's overflow settings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
st0012 committed Aug 15, 2024
1 parent 106bbee commit f76e721
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ nav {
position: fixed;
top: 0;
bottom: 0;
overflow: hidden;
overflow: auto;
z-index: 10;

/* Layout */
Expand All @@ -228,11 +228,6 @@ nav[hidden] {
display: none;
}

nav #project-metadata {
overflow: auto; /* Make the content scrollable */
flex: 1; /* Take up remaining space */
}

nav footer {
padding: 1em;
border-top: 1px solid #ccc;
Expand Down Expand Up @@ -286,7 +281,7 @@ nav .nav-section {
margin-top: 2em;
border-top: 2px solid #aaa;
font-size: 90%;
overflow: hidden;
flex: 1;
}

nav h2 {
Expand Down

0 comments on commit f76e721

Please sign in to comment.