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 ed489db commit 5df231b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ nav {
position: fixed;
top: 0;
bottom: 0;
overflow: hidden;
z-index: 10;
overflow: auto;

/* Layout */
width: var(--sidebar-width);
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,6 @@ nav .nav-section {
margin-top: 2em;
border-top: 2px solid #aaa;
font-size: 90%;
overflow: hidden;
}

nav h2 {
Expand Down

0 comments on commit 5df231b

Please sign in to comment.