mirror of
https://github.com/boostorg/boostlook.git
synced 2026-01-19 16:12:14 +00:00
Compare commits
20 Commits
develop_ti
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f056e064ea | ||
|
|
d264e70b57 | ||
|
|
858f832cf5 | ||
|
|
6adfbca7ab | ||
|
|
db04621383 | ||
|
|
dec44ce10a | ||
|
|
ab2d0fda0a | ||
|
|
8c9f0364d1 | ||
|
|
e32c8bda45 | ||
|
|
76d10265f5 | ||
|
|
2afbebc0c5 | ||
|
|
d0cc6d5e1e | ||
|
|
20ddde5333 | ||
|
|
66401ab4d7 | ||
|
|
cdfdff1a43 | ||
|
|
c8ea8e2061 | ||
|
|
5454b1c038 | ||
|
|
34fb6a94b3 | ||
|
|
b4306e4b94 | ||
|
|
36d2ef80b0 |
6
.github/workflows/sync-boostlook-css.yml
vendored
6
.github/workflows/sync-boostlook-css.yml
vendored
@@ -16,10 +16,10 @@ jobs:
|
||||
if: github.repository == 'boostorg/boostlook'
|
||||
steps:
|
||||
- name: Checkout current repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Checkout website-v2 repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
repository: boostorg/website-v2
|
||||
ref: develop
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.13"
|
||||
|
||||
- name: Copy boostlook.css to website-v2
|
||||
run: |
|
||||
|
||||
BIN
MonaspaceNeon-Regular.woff2
Normal file
BIN
MonaspaceNeon-Regular.woff2
Normal file
Binary file not shown.
BIN
MonaspaceNeon-Var.woff2
Normal file
BIN
MonaspaceNeon-Var.woff2
Normal file
Binary file not shown.
BIN
MonaspaceRadon-Italic.woff2
Normal file
BIN
MonaspaceRadon-Italic.woff2
Normal file
Binary file not shown.
BIN
MonaspaceXenon-Italic.woff2
Normal file
BIN
MonaspaceXenon-Italic.woff2
Normal file
Binary file not shown.
BIN
MonaspaceXenon-Var.woff2
Normal file
BIN
MonaspaceXenon-Var.woff2
Normal file
Binary file not shown.
130
boostlook.css
130
boostlook.css
@@ -280,8 +280,8 @@
|
||||
--main-container: 90rem;
|
||||
|
||||
/* New Look Typography */
|
||||
--font-family-body: "Noto Sans";
|
||||
--font-family-code: "Noto Sans Mono";
|
||||
--font-family-body: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
|
||||
--font-family-code: "Monaspace Neon", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
--font-size-3xs: 0.625rem;
|
||||
--font-size-2xs: 0.75rem;
|
||||
--font-size-xs: 0.875rem;
|
||||
@@ -709,7 +709,7 @@ html:has(.boostlook) {
|
||||
* Typography Configuration
|
||||
* The framework uses Noto Sans family as its primary font system:
|
||||
* 1. Noto Sans Display: Main text font with variable weight support
|
||||
* 2. Noto Sans Mono: Monospace font for code blocks
|
||||
* 2. Monaspace Neon: Monospace font for code blocks
|
||||
*
|
||||
* Font Loading Strategy:
|
||||
* - Multiple source paths for resilient loading
|
||||
@@ -723,13 +723,16 @@ html:has(.boostlook) {
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-stretch: 62.5% 100%;
|
||||
/* Variable font weight range */
|
||||
font-variation-settings: "wght" 400, "wdth" 62.5;
|
||||
font-display: block;
|
||||
/* Prevents FOIT */
|
||||
src: url("/static/font/notosans.woff2") format("woff2"),
|
||||
url("../../../../tools/boostlook/notosans.woff2") format("woff2"),
|
||||
url("https://cppalliance.org/fonts/NotoSansDisplay.ttf") format("truetype");
|
||||
src: url("../font/NotoSansDisplay.ttf") format("truetype"),
|
||||
url("/static/font/notosans.woff2") format("woff2"),
|
||||
url("../../../../tools/boostlook/notosans.woff2") format("woff2"),
|
||||
url("https://cppalliance.org/fonts/NotoSansDisplay.ttf") format("truetype");
|
||||
size-adjust: 100%;
|
||||
ascent-override: 92%;
|
||||
descent-override: 22%;
|
||||
line-gap-override: 0%;
|
||||
}
|
||||
|
||||
/* Noto Sans Display - Italic */
|
||||
@@ -738,42 +741,48 @@ html:has(.boostlook) {
|
||||
font-style: italic;
|
||||
font-weight: 100 900;
|
||||
font-stretch: 62.5% 100%;
|
||||
/* Variable font weight range */
|
||||
font-variation-settings: "wght" 400, "wdth" 62.5;
|
||||
font-display: block;
|
||||
/* Prevents FOIT */
|
||||
src: url("/static/font/notosans_mono_ext.woff") format("woff"),
|
||||
url("../../../../tools/boostlook/notosans_mono_ext.woff") format("woff"),
|
||||
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
|
||||
src: url("../font/NotoSansDisplay-Italic.ttf") format("truetype"),
|
||||
url("/static/font/notosans_ext.woff2") format("woff2"),
|
||||
url("../../../../tools/boostlook/notosans_ext.woff2") format("woff2"),
|
||||
url("https://cppalliance.org/fonts/NotoSansDisplay-Italic.ttf") format("truetype");
|
||||
size-adjust: 100%;
|
||||
ascent-override: 92%;
|
||||
descent-override: 22%;
|
||||
line-gap-override: 0%;
|
||||
}
|
||||
|
||||
/* Noto Sans Mono - Variable Weight */
|
||||
/* Monaspace Neon - Regular */
|
||||
@font-face {
|
||||
font-family: "Noto Sans Mono";
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-stretch: 62.5% 100%;
|
||||
/* Variable font weight range */
|
||||
font-variation-settings: "wght" 400, "wdth" 62.5;
|
||||
font-display: block;
|
||||
/* Prevents FOIT */
|
||||
src: url("/static/font/notosans_mono.woff") format("woff"),
|
||||
url("../../../../tools/boostlook/notosans_mono.woff") format("woff"),
|
||||
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
|
||||
}
|
||||
|
||||
/* Noto Sans Mono - Fixed Weight */
|
||||
@font-face {
|
||||
font-family: "Noto Sans Mono";
|
||||
font-family: "Monaspace Neon";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
/* Fixed weight for specific use cases */
|
||||
font-stretch: 62.5% 100%;
|
||||
font-display: block;
|
||||
/* Prevents FOIT */
|
||||
src: url("/static/font/notosans_mono.woff") format("woff"),
|
||||
url("../../../../tools/boostlook/notosans_mono.woff") format("woff"),
|
||||
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
|
||||
src: url("../font/MonaspaceNeonFrozen-Regular.ttf") format("truetype"),
|
||||
url("/static/font/MonaspaceNeon-Var.woff2") format("woff2"),
|
||||
url("../../../../tools/boostlook/MonaspaceNeon-Var.woff2") format("woff2"),
|
||||
url("https://cppalliance.org/fonts/MonaspaceNeon-Var.woff2") format("woff2");
|
||||
size-adjust: 100%;
|
||||
ascent-override: 92%;
|
||||
descent-override: 22%;
|
||||
line-gap-override: 0%;
|
||||
}
|
||||
|
||||
/* Monaspace Xenon - Italic */
|
||||
@font-face {
|
||||
font-family: "Monaspace Xenon";
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: block;
|
||||
src: url("../font/MonaspaceXenonFrozen-Italic.ttf") format("truetype"),
|
||||
url("/static/font/MonaspaceXenon-Var.woff2") format("woff2"),
|
||||
url("../../../../tools/boostlook/MonaspaceXenon-Var.woff2") format("woff2"),
|
||||
url("https://cppalliance.org/fonts/MonaspaceXenon-Var.woff2") format("woff2");
|
||||
size-adjust: 100%;
|
||||
ascent-override: 92%;
|
||||
descent-override: 22%;
|
||||
line-gap-override: 0%;
|
||||
}
|
||||
|
||||
/*----------------- Font-Face Declarations end -----------------*/
|
||||
@@ -1258,15 +1267,17 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Link States */
|
||||
.boostlook p a:visited:not(:hover),
|
||||
.boostlook table a:visited:not(:hover) {
|
||||
color: var(--text-main-text-body-tetriary, #62676b);
|
||||
/* Emphasis within code */
|
||||
.boostlook code em,
|
||||
.boostlook code i,
|
||||
.boostlook pre em,
|
||||
.boostlook pre i {
|
||||
font-family: "Monaspace Xenon", monospace;
|
||||
font-size: inherit;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Emphasis within code */
|
||||
.boostlook em,
|
||||
.boostlook code em {
|
||||
.boostlook em {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
font-style: italic;
|
||||
@@ -1278,6 +1289,19 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
|
||||
font-variation-settings: "wght" 600, "wdth" 80;
|
||||
}
|
||||
|
||||
/* Comments within code (inline and blocks) */
|
||||
.boostlook code span.c,
|
||||
.boostlook code span.ch,
|
||||
.boostlook code span.cm,
|
||||
.boostlook code span.cp,
|
||||
.boostlook code span.cpf,
|
||||
.boostlook code span.c1,
|
||||
.boostlook code span.cs,
|
||||
.boostlook code span.comment {
|
||||
font-family: "Monaspace Xenon", monospace;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Code Block Styling */
|
||||
.boostlook .doc .listingblock,
|
||||
.boostlook .listingblock {
|
||||
@@ -1294,7 +1318,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
|
||||
}
|
||||
|
||||
.boostlook code {
|
||||
font-family: var(--font-family-code, "Noto Sans Mono"), monospace;
|
||||
font-family: var(--font-family-code, "Monaspace Neon"), monospace;
|
||||
}
|
||||
|
||||
.boostlook table thead code {
|
||||
@@ -1306,6 +1330,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
|
||||
.boostlook .doc .content pre code,
|
||||
.boostlook .doc pre.highlight code {
|
||||
font-size: var(--typography-font-size-xs, 0.875rem);
|
||||
font-feature-settings: "calt" 1, "liga" 0;
|
||||
line-height: var(--typography-line-height-lg, 1.5rem); /* 171.429% */
|
||||
letter-spacing: var(--spacing-size-size-0, 0rem);
|
||||
color: var(--text-main-text-primary, #18191b);
|
||||
@@ -1344,8 +1369,10 @@ html.dark .boostlook pre.rouge,
|
||||
html.dark .boostlook .doc .content pre,
|
||||
html.dark .boostlook .doc pre.highlight,
|
||||
html.dark .boostlook .doc .listingblock pre:not(.highlight),
|
||||
html.dark .boostlook .doc .literalblock pre {
|
||||
background: var(--atom-one-dark-bg, #282c34);
|
||||
html.dark .boostlook .doc .literalblock pre,
|
||||
html.dark .boostlook#libraryReadMe > pre:not(:last-child),
|
||||
html.dark .boostlook#libraryReadMe div.highlight:has(> pre):not(:is(dd pre, td pre)) {
|
||||
background: var(--atom-one-dark-bg, #282c34) !important;
|
||||
}
|
||||
|
||||
.boostlook .doc pre {
|
||||
@@ -1759,12 +1786,14 @@ html.dark .boostlook .doc .literalblock pre {
|
||||
.boostlook pre span.sh,
|
||||
.boostlook pre span.comment,
|
||||
.boostlook .hljs-comment,
|
||||
.boostlook .cpp-comment,
|
||||
.boostlook .hljs-quote,
|
||||
.boostlook .hljs-addition,
|
||||
.boostlook .hljs-built_in,
|
||||
.boostlook .hljs-bullet,
|
||||
.boostlook .hljs-code {
|
||||
color: var(--atom-one-light-comment, #a0a1a7);
|
||||
font-family: "Monaspace Xenon", monospace;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@@ -1780,12 +1809,15 @@ html.dark .boostlook pre span.sd,
|
||||
html.dark .boostlook pre span.sh,
|
||||
html.dark .boostlook pre span.comment,
|
||||
html.dark .boostlook .hljs-comment,
|
||||
html.dark .boostlook .cpp-comment,
|
||||
html.dark .boostlook .hljs-quote,
|
||||
html.dark .boostlook .hljs-addition,
|
||||
html.dark .boostlook .hljs-built_in,
|
||||
html.dark .boostlook .hljs-bullet,
|
||||
html.dark .boostlook .hljs-code {
|
||||
color: var(--atom-one-dark-comment, #5c6370);
|
||||
font-family: "Monaspace Xenon", monospace;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.boostlook pre span.s,
|
||||
@@ -2365,7 +2397,7 @@ html.dark .boostlook .hljs-code {
|
||||
.boostlook .dlist dl dt code,
|
||||
.boostlook:not(:has(.doc)) .variablelist dl dt code {
|
||||
font-variation-settings: "wght" 600, "wdth" 80;
|
||||
font-family: var(--font-family-code, 'Noto Sans Mono');
|
||||
font-family: var(--font-family-code, 'Monaspace Neon');
|
||||
}
|
||||
|
||||
.boostlook .dlist dl dd,
|
||||
@@ -2647,7 +2679,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
|
||||
justify-content: center;
|
||||
font-family: "Noto Sans";
|
||||
font-style: normal;
|
||||
font-variation-settings: "wght" 500, "wdth" 80;
|
||||
font-variation-settings: "wght" 350, "wdth" 80;
|
||||
line-height: var(--typography-line-height-sm, 1rem);
|
||||
font-size: var(--typography-font-size-sm, 1rem);
|
||||
text-align: center;
|
||||
@@ -3486,6 +3518,7 @@ html.is-clipped--nav:has(.boostlook) div#content {
|
||||
.boostlook pre.rouge .c1,
|
||||
.boostlook pre.rouge .cm { /* Comments */
|
||||
color: var(--atom-one-light-comment, #a0a1a7);
|
||||
font-family: "Monaspace Xenon", monospace;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@@ -3517,6 +3550,7 @@ html.dark .boostlook pre.rouge .c,
|
||||
html.dark .boostlook pre.rouge .c1,
|
||||
html.dark .boostlook pre.rouge .cm {
|
||||
color: var(--atom-one-dark-comment, #5c6370);
|
||||
font-family: "Monaspace Xenon", monospace;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user