Skip to content

Commit 46f4a8f

Browse files
author
Miki
committed
Allow the documentation pages to cover the entire width of the screen
Signed-off-by: Miki <[email protected]>
1 parent f51ad23 commit 46f4a8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

_sass/custom/custom.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
// Additional variables
3939
$table-border-color: $grey-lt-300;
40-
$toc-width: 232px !default;
40+
$toc-width: 200px !default;
4141

4242
// Replaces xl size
4343
$media-queries: (
@@ -225,9 +225,10 @@ p.label {
225225

226226
// Modifies margins in xl layout to support TOC
227227
.side-bar {
228+
flex-shrink: 0;
229+
228230
@include mq(xl) {
229-
width: calc((100% - #{$nav-width + $content-width + $toc-width}) / 2 + #{$nav-width});
230-
min-width: $nav-width;
231+
width: $nav-width;
231232
}
232233
}
233234

@@ -280,7 +281,7 @@ p.label {
280281
list-style-type: none;
281282
background-color: $sidebar-color;
282283
padding: $sp-6 $sp-4;
283-
margin-left: $sp-6;
284+
//margin-left: $sp-6;
284285
margin-right: 0;
285286
margin-bottom: 0;
286287
overflow: auto;
@@ -432,6 +433,7 @@ main {
432433

433434
@include mq(xl) {
434435
overflow: visible;
436+
max-width: calc(100vw - #{$nav-width} - #{$toc-width} - 2rem);
435437
}
436438
}
437439
}

0 commit comments

Comments
 (0)