File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed
Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 312312 min-height : 100vh ;
313313 padding : 2rem ;
314314 overflow-x : hidden;
315+ width : 100% ;
315316}
316317
317318.nav-buttons {
@@ -424,13 +425,25 @@ h1 {
424425/* Side-by-side layout for single image + code */
425426.side-by-side-layout {
426427 display : grid;
427- grid-template-columns : 1 fr 1 fr ;
428+ grid-template-columns : minmax ( 400 px , 45 % ) minmax ( 500 px , 55 % ) ;
428429 gap : 2rem ;
429430 margin : 2rem 0 ;
430431 align-items : start;
432+ max-width : 1600px ;
433+ margin-left : auto;
434+ margin-right : auto;
435+ }
436+
437+ .side-by-side-layout .image-container {
438+ margin : 0 ;
439+ height : fit-content;
440+ max-height : none;
441+ }
442+
443+ .side-by-side-layout .image-container img {
444+ max-height : none;
431445}
432446
433- .side-by-side-layout .image-container ,
434447.side-by-side-layout .code-section {
435448 margin : 0 ;
436449 height : fit-content;
@@ -454,17 +467,21 @@ h1 {
454467 padding : 1.5rem ;
455468 border-radius : 8px ;
456469 font-family : 'Monaco' , 'Menlo' , monospace;
457- font-size : 0.85 rem ;
470+ font-size : 0.88 rem ;
458471 line-height : 1.5 ;
459472 white-space : pre-wrap;
460473 overflow-x : auto;
461- max-height : 700px ;
462- overflow-y : auto;
463- font-weight : bold;
474+ font-weight : normal;
464475 scrollbar-width : thin;
465476 scrollbar-color : # 475569 # 1e293b ;
466477}
467478
479+ /* Only add max-height when NOT in side-by-side layout */
480+ .code-section : not (.side-by-side-layout .code-section ) .code-content {
481+ max-height : 700px ;
482+ overflow-y : auto;
483+ }
484+
468485.code-content ::-webkit-scrollbar {
469486 width : 8px ;
470487 height : 8px ;
You can’t perform that action at this time.
0 commit comments