Skip to content

Commit

Permalink
Ovveride theme CSS rule causing an unneeded overflow scroll in primar…
Browse files Browse the repository at this point in the history
…y nav
  • Loading branch information
ptheywood committed Mar 12, 2024
1 parent cc4f9fe commit 048e058
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ body {
background-color: var(--pst-color-primary);
}


/* Increase the maximum width for large displays. Still limited to prevent very long line length */
@media (min-width:1200px) {
.container,
Expand All @@ -91,6 +92,12 @@ body {
margin-top:auto;
}

/* Override theme rule which was causing a scrollbar within the nav bar when not needed on local builds.
May need adjusting on rtd for ethical ads*/
.bd-sidebar-primary .sidebar-primary-items__end {
margin-top: inherit;
}

/* --------------------------------------
Light theme specific formatting changes
--------------------------------------- */
Expand Down Expand Up @@ -166,4 +173,4 @@ html[data-theme="dark"] .bd-article-container h3,
html[data-theme="dark"] .bd-article-container h4
html[data-theme="dark"] .bd-article-container h5 {
color: var(--n8-deep-blue-color-high-contrast-dark);
}
}

0 comments on commit 048e058

Please sign in to comment.