File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed
Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -854,6 +854,7 @@ body.sidebar-resizing .main-content {
854854 display : flex;
855855 flex-direction : column;
856856 height : 100vh ;
857+ overflow-y : auto;
857858 transition : margin-left var (--transition-normal );
858859}
859860
@@ -868,23 +869,23 @@ body.sidebar-resizing .main-content {
868869 display : flex;
869870 align-items : center;
870871 gap : 16px ;
871- margin : 0 12px 12px 0 ;
872+ margin : 15 px 12px 12px 0 ;
872873 padding : 12px 10px 12px 12px ;
873874 background : var (--bg-secondary );
874875 border : 1px solid var (--border-color );
875876 border-radius : var (--radius-lg );
876877 height : var (--header-height );
877878}
878879
879- /* On source pages, scroll everything (header, summary) and stick the source toolbar */
880- .main-content : has (.source-container ) {
881- overflow-y : auto;
882- }
883-
880+ /* On source pages, the header scrolls away instead of staying sticky */
884881.main-content : has (.source-container ) .main-header {
885882 position : static;
886883}
887884
885+ .main-content : has (.source-container ) .main-footer {
886+ display : none;
887+ }
888+
888889
889890.breadcrumb {
890891 display : flex;
@@ -962,8 +963,18 @@ body.sidebar-resizing .main-content {
962963}
963964
964965.main-section {
966+ flex : 1 ;
967+ min-height : 0 ;
965968 display : flex;
966969 flex-direction : column;
970+ overflow-y : auto;
971+ }
972+
973+ /* On source pages, main-section doesn't need its own scroll — main-content scrolls */
974+ .main-content : has (.source-container ) .main-section {
975+ flex : initial;
976+ min-height : initial;
977+ overflow-y : visible;
967978}
968979
969980.main-footer {
@@ -1250,10 +1261,6 @@ body.sidebar-resizing .main-content {
12501261 transition: background var(- - transition- fast);
12511262}
12521263
1253- .file-row : last-child {
1254- border-bottom : none;
1255- }
1256-
12571264.file-row : hover {
12581265 background : var (--bg-hover );
12591266}
You can’t perform that action at this time.
0 commit comments