Skip to content

Commit b3d06a6

Browse files
GuillaumeGomezsyphar
authored andcommitted
Make the source content expand when the sidebade is collapsed
1 parent b27ff95 commit b3d06a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

templates/style/style.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ div.package-sheet-container {
453453
}
454454

455455
$sidebar-side-padding: 10px;
456+
$collapsed-side-menu-width: 46px;
456457

457458
div.package-page-container {
458459
padding-bottom: 50px;
@@ -889,7 +890,7 @@ ul.pure-menu-list {
889890
}
890891

891892
#side-menu.collapsed {
892-
max-width: 46px;
893+
max-width: $collapsed-side-menu-width;
893894

894895
ul {
895896
li:not(.toggle-source), .text {
@@ -907,6 +908,10 @@ ul.pure-menu-list {
907908
}
908909
}
909910

911+
#side-menu.collapsed + #source-code-container {
912+
width: calc(100% - #{$collapsed-side-menu-width});
913+
}
914+
910915
#source-warning {
911916
height: 100%;
912917
}

0 commit comments

Comments
 (0)