@@ -354,47 +354,84 @@ body.flexbox {
354354 grid-template-columns : 1fr 4fr 1fr ;
355355 grid-template-areas : " a b c" ;
356356 grid-column-gap : $-xl ;
357- .tri-layout-right {
358- grid-area : c;
359- min-width : 0 ;
357+ position : relative ;
358+ }
359+ .tri-layout-sides {
360+ grid-column-start : a;
361+ grid-column-end : c;
362+ grid-row : 1 ;
363+ min-width : 0 ;
364+ z-index : 4 ;
365+ }
366+ .tri-layout-sides-content {
367+ display : grid ;
368+ grid-template-areas : " a b c" ;
369+ grid-template-columns : 1fr 4fr 1fr ;
370+ height : 100% ;
371+ }
372+ .tri-layout-middle {
373+ grid-area : b;
374+ padding-top : $-m ;
375+ min-width : 0 ;
376+ z-index : 5 ;
377+ }
378+ .tri-layout-right {
379+ grid-area : c;
380+ min-width : 0 ;
381+ }
382+ .tri-layout-left {
383+ grid-area : a;
384+ min-width : 0 ;
385+ }
386+
387+ @include larger-than ($xxl ) {
388+ .tri-layout-left-contents , .tri-layout-right-contents {
389+ padding : $-xl $-m ;
390+ position : sticky ;
391+ top : 0 ;
392+ max-height : 100vh ;
393+ min-height : 50vh ;
394+ overflow-y : scroll ;
395+ overflow-x : hidden ;
396+ height : 100% ;
397+ scrollbar-width : none ;
398+ -ms-overflow-style : none ;
399+ & ::-webkit-scrollbar {
400+ display : none ;
401+ }
360402 }
361- .tri-layout-left {
362- grid-area : a ;
363- min-width : 0 ;
403+ .tri-layout-middle-contents {
404+ max-width : 940 px ;
405+ margin : 0 auto ;
364406 }
365- .tri-layout-middle {
366- grid-area : b;
367- padding-top : $-m ;
368- min-width : 0 ;
407+ }
408+ @include between ($xxl , $xxxl ) {
409+ .tri-layout-sides-content , .tri-layout-container {
410+ grid-template-columns : 1fr calc (940px + (2 * $-m )) 1fr ;
411+ }
412+ .tri-layout-container {
413+ grid-column-gap : $-s ;
414+ margin-inline-start : $-m ;
415+ margin-inline-end : $-m ;
369416 }
370417}
371418@include smaller-than ($xxl ) {
372419 .tri-layout-container {
373- grid-template-areas : " c b b"
374- " a b b"
375- " . b b" ;
420+ grid-template-areas : " a b b" ;
376421 grid-template-columns : 1fr 3fr ;
377422 grid-template-rows : min-content min-content 1fr ;
378423 padding-inline-end : $-l ;
379424 }
380- }
381- @include between ($xxl , $xxxl ) {
382- .tri-layout-container {
383- grid-template-columns : 1fr calc (940px + (2 * $-m )) 1fr ;
384- grid-column-gap : $-s ;
385- margin-inline-start : $-m ;
386- margin-inline-end : $-m ;
425+ .tri-layout-sides {
426+ grid-column-start : a;
427+ grid-column-end : a;
387428 }
388- }
389- @include between ($l , $xxl ) {
390- .tri-layout-left {
391- position : sticky ;
392- top : $-m ;
429+ .tri-layout-sides-content {
430+ display : block ;
393431 }
394432}
395- @include larger-than ($xxl ) {
396- .tri-layout-left-contents , .tri-layout-right-contents {
397- padding : $-xl $-m ;
433+ @include between ($l , $xxl ) {
434+ .tri-layout-sides-content {
398435 position : sticky ;
399436 top : 0 ;
400437 max-height : 100vh ;
@@ -408,31 +445,39 @@ body.flexbox {
408445 display : none ;
409446 }
410447 }
411- .tri-layout-middle-contents {
412- max-width : 940px ;
413- margin : 0 auto ;
448+ }
449+ @include larger-than ($l ) {
450+ .tri-layout-mobile-tabs {
451+ display : none ;
452+ }
453+ .tri-layout-left-contents > * , .tri-layout-right-contents > * {
454+ @include lightDark (opacity , 0.6 , 0.75 );
455+ transition : opacity ease-in-out 120ms ;
456+ & :hover , & :focus-within {
457+ opacity : 1 !important ;
458+ }
459+ @media (prefers-contrast : more) {
460+ opacity : 1 !important ;
461+ }
414462 }
415463}
416-
417464@include smaller-than ($l ) {
418465 .tri-layout-container {
419466 grid-template-areas : none ;
420467 grid-template-columns : 1fr ;
421468 grid-column-gap : 0 ;
422469 padding-inline-end : $-xs ;
423470 padding-inline-start : $-xs ;
424- .tri-layout-left-contents , .tri-layout-right-contents {
471+ .tri-layout-sides {
425472 padding-inline-start : $-m ;
426473 padding-inline-end : $-m ;
474+ grid-column : 1 / 1 ;
427475 }
428476 .tri-layout-left > * , .tri-layout-right > * {
429477 display : none ;
430478 pointer-events : none ;
431479 }
432480 .tri-layout-left , .tri-layout-right {
433- grid-area : none ;
434- grid-column : 1 / 1 ;
435- grid-row : 1 ;
436481 padding-top : 0 !important ;
437482 }
438483 .tri-layout-middle {
@@ -458,21 +503,6 @@ body.flexbox {
458503 }
459504 }
460505}
461- @include larger-than ($l ) {
462- .tri-layout-mobile-tabs {
463- display : none ;
464- }
465- .tri-layout-left-contents > * , .tri-layout-right-contents > * {
466- @include lightDark (opacity , 0.6 , 0.75 );
467- transition : opacity ease-in-out 120ms ;
468- & :hover , & :focus-within {
469- opacity : 1 !important ;
470- }
471- @media (prefers-contrast : more) {
472- opacity : 1 !important ;
473- }
474- }
475- }
476506
477507@include smaller-than ($m ) {
478508 .tri-layout-container {
0 commit comments