Skip to content

Commit 3647ae6

Browse files
committed
chore: Update boostlook.css from boostlook repository
1 parent fb10ecc commit 3647ae6

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

static/css/boostlook.css

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@
283283
--font-size-2sm: 1.2rem;
284284
--font-size-md: 1.125rem;
285285
--font-size-lg: 1.25rem;
286+
--font-size-2md: 1.3rem;
286287
--font-size-xl: 1.5rem;
287288
--font-size-2xl: 1.75rem;
288289
--font-size-3xl: 2rem;
@@ -405,6 +406,7 @@
405406
--typography-font-size-xs: var(--font-size-xs);
406407
--typography-font-size-sm: var(--font-size-sm);
407408
--typography-font-size-md: var(--font-size-md);
409+
--typography-font-size-2md: var(--font-size-2md);
408410
--typography-font-size-lg: var(--font-size-lg);
409411
--typography-font-size-xl: var(--font-size-xl);
410412
--typography-font-size-2xl: var(--font-size-2xl);
@@ -418,6 +420,15 @@
418420
--typography-line-height-2xl: var(--font-line-height-2xl);
419421
--typography-line-height-3xl: var(--font-line-height-3xl);
420422
--typography-line-height-4xl: var(--font-line-height-4xl);
423+
424+
/* Heading */
425+
--typography-font-size-h1: var(--font-size-2xl);
426+
--typography-font-size-h2: var(--font-size-xl);
427+
--typography-font-size-h3: var(--font-size-2md);
428+
--typography-font-size-h4: var(--font-size-md);
429+
430+
/*
431+
*/
421432
}
422433
}
423434

@@ -914,27 +925,27 @@ body :not(pre):not([class^="L"]) > code {
914925
/* Heading Sizes */
915926
.boostlook h1,
916927
.boostlook .doc h1 {
917-
font-size: var(--typography-font-size-2xl, 1.75rem);
928+
font-size: var(--typography-font-size-h1, 1.75rem);
918929
line-height: var(--typography-line-height-3xl, 2.5rem); /* 142.857% */
919930
}
920931

921932
/* Primary headings */
922933
.boostlook h2,
923934
.boostlook .doc h2 {
924-
font-size: var(--typography-font-size-lg, 1.25rem);
935+
font-size: var(--typography-font-size-h2, 1.5rem);
925936
}
926937

927938
/* Section headings */
928939
.boostlook h3,
929940
.boostlook .doc h3 {
930-
font-size: var(--typography-font-size-md, 1.2rem);
941+
font-size: var(--typography-font-size-h3, 1.3rem);
931942
line-height: var(--typography-line-height-xl, 1.85rem); /* 155.556% */
932943
}
933944

934945
/* Subsection headings */
935946
.boostlook h4,
936947
.boostlook .doc h4 {
937-
font-size: var(--typography-font-size-md, 1.125rem);
948+
font-size: var(--typography-font-size-h4, 1.125rem);
938949
line-height: var(--typography-line-height-xl, 1.75rem); /* 155.556% */
939950
}
940951

@@ -1438,7 +1449,8 @@ html.dark .boostlook .doc .literalblock pre {
14381449
flex-direction: column-reverse;
14391450
}
14401451

1441-
.boostlook .content:has(> pre):has(> .source-toolbox) pre.highlight {
1452+
.boostlook .highlight pre,
1453+
.boostlook .content:has(> pre) pre.highlight {
14421454
border: 1px solid var(--border-border-secondary, #d5d7d9);
14431455
}
14441456
.boostlook .content:has(> pre):has(> .source-toolbox) pre {
@@ -2002,7 +2014,7 @@ html.dark .boostlook .hljs-code {
20022014
border-radius: var(--spacing-size-size-0, 0rem);
20032015
border: 1px solid transparent;
20042016
margin: revert;
2005-
margin-left: var(--spacing-size-xl);
2017+
/*margin-left: var(--spacing-size-xl);*/
20062018
background: transparent;
20072019
}
20082020

@@ -2146,11 +2158,7 @@ html.dark .boostlook .hljs-code {
21462158
border-color: var(--border-border-blue-primary, #c2e2f4);
21472159
background-color: var(--surface-background-main-surface-blue-primary, #ebf4f9);
21482160
}
2149-
/* .boostlook #content .admonitionblock.note > table tr td.icon,
2150-
.boostlook:not(:has(.doc)) div.note > table tr:first-child th,
2151-
.boostlook:not(:has(.doc)) .notices.note .heading {
2152-
background: var(--surface-background-states-surface-additional-tetriary, #92cbe9);
2153-
} */
2161+
21542162
.boostlook #content .admonitionblock.note > table tr td.icon > *,
21552163
.boostlook:not(:has(.doc)) div.note > table tr:first-child th,
21562164
.boostlook:not(:has(.doc)) .notices.note .heading {
@@ -4190,7 +4198,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(> .boostlook)) div.spi
41904198
padding: 0 0 var(--padding-padding-xs, 0.75rem) 0;
41914199
background: none;
41924200
color: var(--text-main-text-primary, #18191b);
4193-
font-size: var(--Typography-font-size-md, 1.125rem);
4201+
font-size: var(--typography-font-size-md, 1.125rem);
41944202
font-style: normal;
41954203
font-variation-settings: "wght" 500, "wdth" 80;
41964204
line-height: var(--typography-line-height-xl, 1.75rem); /* 155.556% */

0 commit comments

Comments
 (0)