Skip to content

Commit 2f88722

Browse files
committed
chore: Update boostlook.css from boostlook repository
1 parent 0b07297 commit 2f88722

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

static/css/boostlook.css

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,10 +3046,8 @@ html:has(#docsiframe)::-webkit-scrollbar {
30463046
/* Article Layout */
30473047
.article.toc2.toc-left {
30483048
min-height: 100vh;
3049-
/* with padding compensation */
3050-
max-width: calc(var(--main-container) + 2rem);
3051-
margin-left: auto;
3052-
margin-right: auto;
3049+
/* Simplified: always use offset behavior, never center */
3050+
margin-left: var(--main-max-width-leftbar);
30533051
background: var(--surface-background-main-base-primary, #fff);
30543052
position: relative;
30553053
overflow-y: auto;
@@ -3209,7 +3207,7 @@ div.source-docs-antora.boostlook:not(:has(article.doc)):not(:has(> .boostlook))
32093207
.boostlook #header > *,
32103208
.boostlook #footer > * {
32113209
max-width: var(--main-content-width);
3212-
margin: 0 auto;
3210+
margin-left: 0;
32133211
}
32143212

32153213
.boostlook #preamble + .sect1,
@@ -3242,7 +3240,7 @@ html.is-clipped--nav:has(.boostlook) div#content {
32423240
.boostlook #toc.toc2 {
32433241
position: fixed;
32443242
width: var(--main-max-width-leftbar);
3245-
left: max(1rem, 50% - 45rem);
3243+
left: 0;
32463244
top: 0;
32473245
z-index: 1000;
32483246
height: 100vh;
@@ -3270,7 +3268,7 @@ html.is-clipped--nav:has(.boostlook) div#content {
32703268
.boostlook #toggle-toc {
32713269
position: fixed;
32723270
top: 2rem;
3273-
left: max(1rem, 50% - 39rem - 1rem);
3271+
left: 1rem;
32743272
background-color: var(--surface-background-main-base-primary);
32753273
box-shadow: 0 0px 3px var(--surface-background-main-surface-transparent-inverse);
32763274
border: 0;
@@ -3292,12 +3290,12 @@ html.is-clipped--nav:has(.boostlook) div#content {
32923290
}
32933291

32943292
html.toc-hidden .boostlook #toggle-toc {
3295-
left: max(2px, 50% - 45rem - 1rem);
3293+
left: 2px;
32963294
}
32973295

32983296
/* Visible TOC */
32993297
html.toc-visible .boostlook #toggle-toc {
3300-
left: max(2px, 50% - 45rem - 1rem);
3298+
left: 2px;
33013299
background-color: var(--surface-background-main-base-primary);
33023300
}
33033301

@@ -4403,8 +4401,8 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(> .boostlook)) > #cont
44034401
top: 2rem !important;
44044402
}
44054403

4406-
.toc2 .boostlook {
4407-
margin-left: var(--main-max-width-leftbar) !important;
4404+
.toc2 .boostlook:has(> #content .doc) {
4405+
margin-left: 0;
44084406
}
44094407

44104408
html.toc-visible .boostlook {

0 commit comments

Comments
 (0)