Skip to content

Commit 629c2ad

Browse files
authored
Merge pull request #2529 from GuillaumeGomez/fix-sidebar-display
Fix display of sidebar when JS is disabled
2 parents 35ed24c + ac3a7fa commit 629c2ad

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/theme/css/chrome.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,14 @@ ul#searchresults span.teaser em {
421421
color: var(--sidebar-fg);
422422
}
423423
.sidebar-iframe-inner {
424+
--padding: 10px;
425+
424426
background-color: var(--sidebar-bg);
425-
color: var(--sidebar-fg);
426-
padding: 10px 10px;
427+
padding: var(--padding);
427428
margin: 0;
428429
font-size: 1.4rem;
430+
color: var(--sidebar-fg);
431+
min-height: calc(100vh - var(--padding) * 2);
429432
}
430433
.sidebar-iframe-outer {
431434
border: none;

src/theme/css/variables.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--content-max-width: 750px;
1010
--menu-bar-height: 50px;
1111
--mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
12-
--code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */
12+
--code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
1313
}
1414

1515
/* Themes */

0 commit comments

Comments
 (0)