Skip to content

Commit fb10ecc

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

File tree

1 file changed

+63
-37
lines changed

1 file changed

+63
-37
lines changed

static/css/boostlook.css

Lines changed: 63 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,8 @@ html:has(.boostlook) {
709709
font-display: block;
710710
/* Prevents FOIT */
711711
src: url("/static/font/notosans.woff2") format("woff2"),
712-
url("../../../../tools/boostlook/notosans.woff2") format("woff2"),
713-
url("https://cppalliance.org/fonts/NotoSansDisplay.ttf") format("truetype");
712+
url("../../../../tools/boostlook/notosans.woff2") format("woff2"),
713+
url("https://cppalliance.org/fonts/NotoSansDisplay.ttf") format("truetype");
714714
}
715715

716716
/* Noto Sans Display - Italic */
@@ -724,8 +724,8 @@ html:has(.boostlook) {
724724
font-display: block;
725725
/* Prevents FOIT */
726726
src: url("/static/font/notosans_mono_ext.woff") format("woff"),
727-
url("../../../../tools/boostlook/notosans_mono_ext.woff") format("woff"),
728-
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
727+
url("../../../../tools/boostlook/notosans_mono_ext.woff") format("woff"),
728+
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
729729
}
730730

731731
/* Noto Sans Mono - Variable Weight */
@@ -739,8 +739,8 @@ html:has(.boostlook) {
739739
font-display: block;
740740
/* Prevents FOIT */
741741
src: url("/static/font/notosans_mono.woff") format("woff"),
742-
url("../../../../tools/boostlook/notosans_mono.woff") format("woff"),
743-
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
742+
url("../../../../tools/boostlook/notosans_mono.woff") format("woff"),
743+
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
744744
}
745745

746746
/* Noto Sans Mono - Fixed Weight */
@@ -753,8 +753,8 @@ html:has(.boostlook) {
753753
font-display: block;
754754
/* Prevents FOIT */
755755
src: url("/static/font/notosans_mono.woff") format("woff"),
756-
url("../../../../tools/boostlook/notosans_mono.woff") format("woff"),
757-
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
756+
url("../../../../tools/boostlook/notosans_mono.woff") format("woff"),
757+
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
758758
}
759759

760760
/*----------------- Font-Face Declarations end -----------------*/
@@ -1138,7 +1138,7 @@ body :not(pre):not([class^="L"]) > code {
11381138
.boostlook:not(:has(.doc)) .chapter > p + p,
11391139
.boostlook div.blockquote blockquote p + p,
11401140
.boostlook#libraryReadMe > p:not(:first-child) + p,
1141-
/* Outcome 2.2 Weird Template fix */
1141+
/* Outcome 2.2 Weird Template fix */
11421142
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > p + p,
11431143
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > p + p,
11441144
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > p + p {
@@ -1176,7 +1176,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
11761176
.boostlook#libraryReadMe > table + p,
11771177
.boostlook#libraryReadMe > ul + p,
11781178
.boostlook#libraryReadMe .literalblock + .paragraph,
1179-
/* Outcome 2.2 Weird Template fix */
1179+
/* Outcome 2.2 Weird Template fix */
11801180
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > ul:not([class]) + p,
11811181
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > ul:not([class]) + p,
11821182
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > ul:not([class]) + p {
@@ -1321,7 +1321,7 @@ html.dark .boostlook .doc .literalblock pre {
13211321
.boostlook .content:has(> pre),
13221322
.boostlook .content:has(> pre.highlight) {
13231323
border-radius: 0;
1324-
border: 1px solid var(--border-border-secondary, #d5d7d9);
1324+
/*border: 1px solid var(--border-border-secondary, #d5d7d9);*/
13251325
background: var(--surface-background-main-surface-secondary, #e4e7ea);
13261326
}
13271327

@@ -1375,6 +1375,7 @@ html.dark .boostlook .doc .literalblock pre {
13751375
line-height: var(--typography-line-height-sm, 1rem);
13761376
letter-spacing: var(--spacing-size-size-0, 0rem);
13771377
z-index: 1;
1378+
display: none;
13781379
}
13791380

13801381
.boostlook .doc .listingblock:has(.source-toolbox) .title:not(:has(a, span, p, code, pre))::before,
@@ -1393,8 +1394,8 @@ html.dark .boostlook .doc .literalblock pre {
13931394
.boostlook#libraryReadMe div.highlight:has(> pre) {
13941395
margin: 0;
13951396
border: none;
1396-
background-color: transparent;
1397-
padding:0;
1397+
background-color: transparent;
1398+
padding:0;
13981399
}
13991400

14001401
/* Apply left margin only if code block not in definition block or in table */
@@ -1405,11 +1406,18 @@ html.dark .boostlook .doc .literalblock pre {
14051406
.boostlook#libraryReadMe > pre:not(:is(dd pre, td pre)),
14061407
.boostlook#libraryReadMe .literalblock:has(pre):not(:is(dd pre, td pre)),
14071408
.boostlook#libraryReadMe div.highlight:has(> pre):not(:is(dd pre, td pre)) {
1408-
margin-left: var(--spacing-size-xl);
1409-
border: 1px solid var(--border-border-secondary, #d5d7d9);
1409+
/*margin-left: var(--spacing-size-xl);*/
1410+
/*border: 1px solid var(--border-border-secondary, #d5d7d9);*/
14101411
background: var(--atom-one-light-bg, #fafafa);
14111412
margin-top: var(--padding-padding-xs, 0.75rem);
14121413
}
1414+
.boostlook .olist.arabic > ol > li .listingblock:has(> .content > pre):not(:is(dd pre, td pre)),
1415+
.boostlook:not(:has(.doc)) .orderedlist > ol > li .listingblock:has(> .content > pre.highlight):not(:is(dd pre, td pre)) {
1416+
margin-left: 0;
1417+
}
1418+
.boostlook .listingblock:has(> .content > pre):not(:is(dd pre, td pre)), .boostlook .listingblock:has(> .content > pre.highlight):not(:is(dd pre, td pre)) {
1419+
margin-left: var(--spacing-size-xl);
1420+
}
14131421

14141422
.boostlook .listingblock:has(> .content > pre):not(:is(dd pre, td pre)):has(.title) {
14151423
border: none;
@@ -1430,8 +1438,11 @@ html.dark .boostlook .doc .literalblock pre {
14301438
flex-direction: column-reverse;
14311439
}
14321440

1441+
.boostlook .content:has(> pre):has(> .source-toolbox) pre.highlight {
1442+
border: 1px solid var(--border-border-secondary, #d5d7d9);
1443+
}
14331444
.boostlook .content:has(> pre):has(> .source-toolbox) pre {
1434-
border-top: 1px solid var(--border-border-secondary, #d5d7d9);
1445+
/*border: 1px solid var(--border-border-secondary, #d5d7d9);*/
14351446
/*border-radius: var(--spacing-size-2xs, 0.5rem);*/
14361447
}
14371448

@@ -1446,7 +1457,12 @@ html.dark .boostlook .doc .literalblock pre {
14461457
font-family: inherit;
14471458
z-index: 1;
14481459
padding: var(--article-article-compressing-from-12-8--, 0.5rem) var(--spacing-size-sm, 1rem);
1449-
min-height: 2rem;
1460+
/*min-height: 2rem;*/
1461+
height: 0;
1462+
max-height: 0;
1463+
min-height: 0;
1464+
padding: 0;
1465+
/*margin-top: -1px;*/
14501466
}
14511467

14521468
.boostlook .content:has(> pre):has(> .source-toolbox):not(:has(.source-lang)) .source-toolbox {
@@ -1469,6 +1485,7 @@ html.dark .boostlook .doc .literalblock pre {
14691485
letter-spacing: var(--spacing-size-size-0, 0rem);
14701486
text-transform: uppercase;
14711487
margin-left: auto;
1488+
display: none;
14721489
}
14731490
.boostlook .content:has(> pre):has(> .source-toolbox) .source-lang::after {
14741491
content: none;
@@ -2081,7 +2098,7 @@ html.dark .boostlook .hljs-code {
20812098
}
20822099

20832100
.boostlook #content .admonitionblock > table tr td.content,
2084-
/* Leagcy Doc */
2101+
/* Leagcy Doc */
20852102
.boostlook:not(:has(.doc)) div.note > table tr:not(:first-child) td,
20862103
.boostlook:not(:has(.doc)) div.note > table tr:not(:first-child) td p,
20872104
.boostlook:not(:has(.doc)) div.tip > table tr:not(:first-child) td,
@@ -2096,7 +2113,7 @@ html.dark .boostlook .hljs-code {
20962113
.boostlook:not(:has(.doc)) div.blurp > table tr:not(:first-child) td p,
20972114
.boostlook:not(:has(.doc)) p.blurb > table tr:not(:first-child) td,
20982115
.boostlook:not(:has(.doc)) p.blurb > table tr:not(:first-child) td p,
2099-
/* Antora Template Correction*/
2116+
/* Antora Template Correction*/
21002117
.boostlook #content .admonitionblock > table tr td.content p,
21012118
.boostlook:not(:has(.doc)) .notices .message p {
21022119
color: var(--text-main-text-primary, #18191b);
@@ -2227,6 +2244,10 @@ html.dark .boostlook .hljs-code {
22272244
color: var(--text-states-text-warning, #FF9442);
22282245
cursor: pointer;
22292246
}
2247+
.boostlook #content .olist.arabic > ol > li table.tableblock:not(:first-child),
2248+
.boostlook #content .olist.arabic > ol > li .dlist:not(:first-child):not(.dlist .dlist) {
2249+
/*margin-left: var(--spacing-size-xl);*/
2250+
}
22302251
.boostlook #content .dlist:not(:first-child):not(.dlist .dlist):has(.hdlist1) dd a {
22312252
color: var(--text-main-text-link-blue, #026a9f);
22322253
text-decoration: none;
@@ -2415,7 +2436,7 @@ html.dark .boostlook .hljs-code {
24152436
.boostlook .ulist:not(:first-child):not(.tablist),
24162437
.boostlook .ulist:not(:first-child).disc,
24172438
.boostlook#libraryReadMe ul:not(:first-child),
2418-
/* Outcome 2.2 Weird Template fix */
2439+
/* Outcome 2.2 Weird Template fix */
24192440
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > ul:not([class]),
24202441
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > ul:not([class]),
24212442
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > ul:not([class]) {
@@ -2426,7 +2447,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
24262447
.boostlook .ulist:not(.tablist) > ul,
24272448
.boostlook .ulist.disc > ul,
24282449
.boostlook#libraryReadMe ul,
2429-
/* Outcome 2.2 Weird Template fix */
2450+
/* Outcome 2.2 Weird Template fix */
24302451
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > ul:not([class]),
24312452
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > ul:not([class]),
24322453
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > ul:not([class]) {
@@ -2442,7 +2463,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
24422463
.boostlook .ulist:not(.tablist) > ul > li,
24432464
.boostlook .ulist.disc > ul > li,
24442465
.boostlook#libraryReadMe ul > li,
2445-
/* Outcome 2.2 Weird Template fix */
2466+
/* Outcome 2.2 Weird Template fix */
24462467
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > ul:not([class]) > li,
24472468
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > ul:not([class])> li,
24482469
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > ul:not([class])> li {
@@ -2451,7 +2472,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
24512472
}
24522473

24532474
.boostlook ul.itemizedlist > li,
2454-
/* Outcome 2.2 Weird Template fix */
2475+
/* Outcome 2.2 Weird Template fix */
24552476
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content ul:not([class]) li,
24562477
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content ol:not([class]) li,
24572478
.boostlook:not(:has(.doc))#antora-template-wrapper > #content ul:not([class]) li,
@@ -2465,7 +2486,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
24652486
.boostlook .ulist:not(.tablist) > ul > li + li,
24662487
.boostlook .ulist.disc > ul > li + li,
24672488
.boostlook#libraryReadMe ul > li + li,
2468-
/* Outcome 2.2 Weird Template fix */
2489+
/* Outcome 2.2 Weird Template fix */
24692490
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > ul:not([class]) > li + li,
24702491
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > ul:not([class]) > li + li,
24712492
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > ul:not([class]) > li + li {
@@ -2476,7 +2497,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
24762497
.boostlook .ulist:not(.tablist) > ul > li::before,
24772498
.boostlook .ulist.disc > ul > li::before,
24782499
.boostlook#libraryReadMe ul > li::before,
2479-
/* Outcome 2.2 Weird Template fix */
2500+
/* Outcome 2.2 Weird Template fix */
24802501
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > ul:not([class]) > li::before,
24812502
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > ul:not([class]) > li::before,
24822503
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > ul:not([class]) > li::before {
@@ -2506,7 +2527,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
25062527
.boostlook .olist.arabic > ol > li,
25072528
.boostlook:not(:has(.doc)) .orderedlist > ol > li {
25082529
position: relative;
2509-
padding-left: 3rem;
2530+
padding-left: 2rem;
25102531
counter-increment: list-counter;
25112532
}
25122533

@@ -2586,9 +2607,10 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
25862607
/*background: var(--surface-background-main-surface-secondary, #e4e7ea);*/
25872608
}
25882609
.boostlook .doc code .conum[data-value] {
2589-
background: var(--surface-background-main-surface-secondary, #e4e7ea);
2610+
background: transparent;
25902611
width: 24px;
25912612
height: 24px;
2613+
float: left;
25922614
}
25932615

25942616
.boostlook .doc .conum[data-value]::after {
@@ -2621,7 +2643,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
26212643
.boostlook .colist.arabic > table > tbody > tr > :first-child,
26222644
.boostlook .colist.arabic > table > tr > :first-child {
26232645
padding-left: 0;
2624-
padding-right: var(--padding-padding-sm, 1rem);
2646+
padding-right: 0;
26252647
vertical-align: top;
26262648
/* to make first column fit its content */
26272649
width: 1%;
@@ -2882,6 +2904,10 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
28822904
line-height: 0;
28832905
}
28842906

2907+
.doc ul.checklist p>i.fa-check-square-o:first-child, .doc ul.checklist p>i.fa-square-o:first-child {
2908+
display: none;
2909+
}
2910+
28852911
/*----------------- Global Styles for .boostlook end -----------------*/
28862912

28872913
/* ----------- Scrollbars Styles Start ------------- */
@@ -3260,9 +3286,6 @@ html.is-clipped--nav:has(.boostlook) div#content {
32603286
padding: 1rem 1.5rem 1rem 2.2rem;
32613287
}
32623288

3263-
.toc2 .boostlook {
3264-
margin-left: var(--main-max-width-leftbar);
3265-
}
32663289

32673290
/* TOC Toggle Button */
32683291
.boostlook #toggle-toc {
@@ -3918,7 +3941,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(> .boostlook)) {
39183941
.boostlook:not(:has(.doc)) > .chapter > .titlepage:first-of-type .author,
39193942
.boostlook:not(:has(.doc)) > .book > .titlepage:first-of-type .author,
39203943
.boostlook:not(:has(.doc)) > .article > .titlepage:first-of-type .author,
3921-
/* Outcome 2.2 Weird Template fix */
3944+
/* Outcome 2.2 Weird Template fix */
39223945
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content .author,
39233946
.boostlook:not(:has(.doc))#antora-template-wrapper > #content .author,
39243947
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content .author {
@@ -3938,7 +3961,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
39383961
.boostlook:not(:has(.doc)) > .chapter > .titlepage:first-of-type div.author,
39393962
.boostlook:not(:has(.doc)) > .book > .titlepage:first-of-type div.author,
39403963
.boostlook:not(:has(.doc)) > .article > .titlepage:first-of-type div.author,
3941-
/* Outcome 2.2 Weird Template fix */
3964+
/* Outcome 2.2 Weird Template fix */
39423965
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content div.author,
39433966
.boostlook:not(:has(.doc))#antora-template-wrapper > #content div.author,
39443967
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content div.author {
@@ -3972,7 +3995,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
39723995
.boostlook:not(:has(.doc)) > .chapter > .titlepage:first-of-type .copyright,
39733996
.boostlook:not(:has(.doc)) > .book > .titlepage:first-of-type .copyright,
39743997
.boostlook:not(:has(.doc)) > .article > .titlepage:first-of-type .copyright,
3975-
/* Outcome 2.2 Weird Template fix */
3998+
/* Outcome 2.2 Weird Template fix */
39763999
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content .copyright,
39774000
.boostlook:not(:has(.doc))#antora-template-wrapper > #content .copyright,
39784001
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content .copyright {
@@ -4000,7 +4023,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
40004023
.boostlook:not(:has(.doc)) > .chapter > .titlepage:first-of-type .legalnotice,
40014024
.boostlook:not(:has(.doc)) > .book > .titlepage:first-of-type .legalnotice,
40024025
.boostlook:not(:has(.doc)) > .article > .titlepage:first-of-type .legalnotice,
4003-
/* Outcome 2.2 Weird Template fix */
4026+
/* Outcome 2.2 Weird Template fix */
40044027
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content .legalnotice,
40054028
.boostlook:not(:has(.doc))#antora-template-wrapper > #content .legalnotice,
40064029
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content .legalnotice {
@@ -4411,11 +4434,14 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(> .boostlook)) > #cont
44114434
}
44124435

44134436
/* === Large Screens: Maintain Offset Layout (1280px+) === */
4414-
@media screen and (min-width: 1280px) {
4437+
@media screen and (min-width: 768px) {
44154438
.article.toc2.toc-left {
4416-
margin-left: var(--main-max-width-leftbar) !important;
44174439
max-width: none !important;
44184440
}
4441+
html:not(.toc-hidden, .toc-visible) .article.toc2.toc-left,
4442+
.toc-visible.toc-pinned .article.toc2.toc-left {
4443+
margin-left: var(--main-max-width-leftbar) !important;
4444+
}
44194445
}
44204446

44214447
/* === Wide Screens: Expanded Content Width (1536px+) === */

0 commit comments

Comments
 (0)