@@ -1139,7 +1139,7 @@ body :not(pre):not([class^="L"]) > code {
11391139/* Outcome 2.2 Weird Template fix */
11401140.boostlook : not (: has (.doc ))# boost-legacy-docs-wrapper > # content > p + p ,
11411141.boostlook : not (: has (.doc ))# antora-template-wrapper > # content > p + p ,
1142- div .source-docs-antora .boostlook : not (: has (. doc )) : not ( : has ( > .boostlook )) > # content > p + p {
1142+ div .source-docs-antora .boostlook : not (: has (> .boostlook )) > # content > p + p {
11431143 margin-top : var (--padding-padding-3xs , 0.25rem );
11441144}
11451145
@@ -2991,10 +2991,8 @@ html:has(#docsiframe)::-webkit-scrollbar {
29912991/* Article Layout */
29922992.article .toc2 .toc-left {
29932993 min-height : 100vh ;
2994- /* with padding compensation */
2995- max-width : calc (var (--main-container ) + 2rem );
2996- margin-left : auto;
2997- margin-right : auto;
2994+ /* Simplified: always use offset behavior, never center */
2995+ margin-left : var (--main-max-width-leftbar );
29982996 background : var (--surface-background-main-base-primary , # fff );
29992997 position : relative;
30002998 overflow-y : auto;
@@ -3016,7 +3014,7 @@ html:has(#docsiframe)::-webkit-scrollbar {
30163014.boostlook # toc .toc2 ,
30173015# boost-legacy-docs-wrapper : not (: has (article .doc )) # toc .toc2 .is-active ,
30183016# antora-template-wrapper : not (: has (article .doc )) # toc .toc2 .is-active ,
3019- div .source-docs-antora .boostlook : not (: has (article .doc )): not (: has (> .boostlook )) # toc .toc2 .is-active {
3017+ div .source-docs-antora .boostlook : not (: has (.doc )): not (: has (> .boostlook )) # toc .toc2 .is-active {
30203018 position : static;
30213019}
30223020
@@ -3154,7 +3152,7 @@ div.source-docs-antora.boostlook:not(:has(article.doc)):not(:has(> .boostlook))
31543152.boostlook # header > * ,
31553153.boostlook # footer > * {
31563154 max-width : var (--main-content-width );
3157- margin : 0 auto ;
3155+ margin-left : 0 ;
31583156}
31593157
31603158.boostlook # preamble + .sect1 ,
@@ -3187,7 +3185,7 @@ html.is-clipped--nav:has(.boostlook) div#content {
31873185 .boostlook # toc .toc2 {
31883186 position : fixed;
31893187 width : var (--main-max-width-leftbar );
3190- left : max ( 1 rem , 50 % - 45 rem ) ;
3188+ left : 0 ;
31913189 top : 0 ;
31923190 z-index : 1000 ;
31933191 height : 100vh ;
@@ -3215,7 +3213,7 @@ html.is-clipped--nav:has(.boostlook) div#content {
32153213 .boostlook # toggle-toc {
32163214 position : fixed;
32173215 top : 2rem ;
3218- left : max ( 1rem , 50 % - 39 rem - 1 rem ) ;
3216+ left : 1rem ;
32193217 background-color : var (--surface-background-main-base-primary );
32203218 box-shadow : 0 0px 3px var (--surface-background-main-surface-transparent-inverse );
32213219 border : 0 ;
@@ -3237,12 +3235,12 @@ html.is-clipped--nav:has(.boostlook) div#content {
32373235 }
32383236
32393237 html .toc-hidden .boostlook # toggle-toc {
3240- left : max ( 2px , 50 % - 45 rem - 1 rem ) ;
3238+ left : 2px ;
32413239 }
32423240
32433241 /* Visible TOC */
32443242 html .toc-visible .boostlook # toggle-toc {
3245- left : max ( 2px , 50 % - 45 rem - 1 rem ) ;
3243+ left : 2px ;
32463244 background-color : var (--surface-background-main-base-primary );
32473245 }
32483246
@@ -3257,8 +3255,6 @@ html.is-clipped--nav:has(.boostlook) div#content {
32573255 html .toc-visible # toc .toc2 {
32583256 opacity : 1 ;
32593257 visibility : visible;
3260- /* width: 250px;
3261- padding-left: 1.5rem; */
32623258 }
32633259
32643260 /* TOC Shadow States */
@@ -3270,10 +3266,6 @@ html.is-clipped--nav:has(.boostlook) div#content {
32703266 html .toc-visible .toc-pinned # toggle-toc {
32713267 background-image : url ("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2224px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2224px%22%20fill%3D%22%235f6368%22%3E%3Cpath%20d%3D%22M560-240%20320-480l240-240%2056%2056-184%20184%20184%20184-56%2056Z%22%2F%3E%3C%2Fsvg%3E" );
32723268 }
3273-
3274- /* html.toc-visible.toc-pinned .boostlook {
3275- margin-left: var(--main-max-width-leftbar);
3276- } */
32773269}
32783270/* TOC Common End */
32793271
@@ -4322,22 +4314,69 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(> .boostlook)) > #cont
43224314
43234315/*----------------- Library README Styles end -----------------*/
43244316
4325- /*----------------- AsciiDoc Specfic Documentation Layout -----------------*/
4317+ /*----------------- AsciiDoctor-Specific Responsive TOC Layout start -----------------*/
43264318
4327- .article .toc2 .toc-left : has (div .source-docs-antora .boostlook ) {
4328- margin-right : 0 !important ;
4319+ /* Prevent header/content/footer padding from jumping at 990px breakpoint */
4320+ @media (min-width : 990px ) {
4321+ : root {
4322+ --main-max-width-leftbar : 18.25rem ;
4323+ --main-margin : var (--spacing-size-xl );
4324+ }
43294325}
43304326
4331- .article .toc2 .toc-left : has (div .source-docs-antora .boostlook ) {
4332- margin-right : 0 !important ;
4327+ /* === Tablet/Desktop: TOC Sidebar Layout (768px+) === */
4328+ @media screen and (min-width : 768px ) {
4329+ .boostlook # toc .toc2 {
4330+ position : fixed !important ;
4331+ left : 0 !important ;
4332+ width : var (--main-max-width-leftbar ) !important ;
4333+ top : 0 !important ;
4334+ height : 100vh !important ;
4335+ }
4336+
4337+ .boostlook # toggle-toc {
4338+ position : fixed !important ;
4339+ left : 1rem !important ;
4340+ top : 2rem !important ;
4341+ }
4342+
4343+ .toc2 .boostlook {
4344+ margin-left : var (--main-max-width-leftbar ) !important ;
4345+ }
4346+
4347+ html .toc-visible .boostlook {
4348+ margin-left : 0 !important ;
4349+ }
43334350}
43344351
4335- div .source-docs-antora .boostlook .boostlook {
4336- margin-left : var (--main-max-width-leftbar );
4352+ /* === Large Screens: Maintain Offset Layout (1280px+) === */
4353+ @media screen and (min-width : 1280px ) {
4354+ .article .toc2 .toc-left {
4355+ margin-left : var (--main-max-width-leftbar ) !important ;
4356+ max-width : none !important ;
4357+ }
43374358}
43384359
4339- @media (min-width : 1470px ) {
4340- div .source-docs-antora .boostlook .boostlook {
4341- margin-left : 0 ;
4360+ /* === Wide Screens: Expanded Content Width (1536px+) === */
4361+ @media screen and (min-width : 1536px ) {
4362+ : root {
4363+ --main-content-width : 1100px ;
4364+ --main-content-left-spacing : 2rem ;
4365+ }
4366+ }
4367+
4368+ /* === Ultra-Wide Screens: Maximum content width (1920px+) === */
4369+ @media screen and (min-width : 1920px ) {
4370+ : root {
4371+ --main-content-width : 1300px ;
4372+ --main-content-left-spacing : 4rem ;
4373+ }
4374+
4375+ .boostlook # content ,
4376+ .boostlook # header > h1 ,
4377+ .boostlook # header .author {
4378+ margin-left : var (--main-content-left-spacing );
43424379 }
43434380}
4381+
4382+ /*----------------- AsciiDoctor-Specific Responsive TOC Layout end -----------------*/
0 commit comments