Skip to content

Commit

Permalink
Merge pull request #2529 from GuillaumeGomez/fix-sidebar-display
Browse files Browse the repository at this point in the history
Fix display of sidebar when JS is disabled
  • Loading branch information
ehuss authored Jan 20, 2025
2 parents 35ed24c + ac3a7fa commit 629c2ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/theme/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,14 @@ ul#searchresults span.teaser em {
color: var(--sidebar-fg);
}
.sidebar-iframe-inner {
--padding: 10px;

background-color: var(--sidebar-bg);
color: var(--sidebar-fg);
padding: 10px 10px;
padding: var(--padding);
margin: 0;
font-size: 1.4rem;
color: var(--sidebar-fg);
min-height: calc(100vh - var(--padding) * 2);
}
.sidebar-iframe-outer {
border: none;
Expand Down
2 changes: 1 addition & 1 deletion src/theme/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--content-max-width: 750px;
--menu-bar-height: 50px;
--mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
--code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */
--code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
}

/* Themes */
Expand Down

0 comments on commit 629c2ad

Please sign in to comment.