Merge pull request #433 from hendricius/sans_serif_pics_website_2
Some checks failed
Release the book and website / build-and-push-image (push) Has been cancelled
Release the book and website / release-book-website (push) Has been cancelled
Release the book and website / invalidate-book-website-cache (push) Has been cancelled

Sans serif TikZ pics website
This commit is contained in:
cedounet
2025-01-20 14:55:17 +00:00
committed by GitHub
4 changed files with 25 additions and 7 deletions

View File

@@ -52,8 +52,9 @@
\DeclareRobustCommand\sbseries{\fontseries{sb}\selectfont} \DeclareRobustCommand\sbseries{\fontseries{sb}\selectfont}
% Fonts for accessibility % Fonts for accessibility
\ifdefined\isaccessible \ifdefined\isaccessible
\setmainfont{Open Sans}[ \usepackage[mathrm=sym]{unicode-math}
Scale=MatchLowercase] \setmathfont{Fira Math}[Scale=MatchLowercase]
\setmainfont{Open Sans}[Scale=MatchLowercase]
\else \else
\setmainfont{TeX Gyre Pagella}[Scale=1.0] % Or Palatino Linotype, etc. \setmainfont{TeX Gyre Pagella}[Scale=1.0] % Or Palatino Linotype, etc.
% TODO not available on github CI % TODO not available on github CI

View File

@@ -1,5 +1,3 @@
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;800&display=swap');
:root{ :root{
--ff-sans: 'Open Sans', sans-serif; --ff-sans: 'Open Sans', sans-serif;
--fw-regular: 400; --fw-regular: 400;
@@ -147,7 +145,6 @@ nav.TOC a, nav.TOC a:visited{
/* *** Colors *** */ /* *** Colors *** */
/* ************** */ /* ************** */
body{ body{
background-color: var(--c-beige); background-color: var(--c-beige);
} }
@@ -254,6 +251,10 @@ figcaption.caption {
display: block; display: block;
} }
.chapterToc a, .chapterToc, .likechapterToc a, .likechapterToc, .appendixToc a, .appendixToc, .addchapToc a {
font-weight: var(--fw-bold);
}
@media (max-width: 768px) { @media (max-width: 768px) {
.toggle-menu-label { .toggle-menu-label {
display: block; display: block;
@@ -317,7 +318,7 @@ figcaption.caption {
display: block; display: block;
color: #000; color: #000;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: var(--fw-bold);
} }
.chapterToc a, .sectionToc a, .subsectionToc a, .likechapterToc a { .chapterToc a, .sectionToc a, .subsectionToc a, .likechapterToc a {
@@ -498,7 +499,7 @@ blockquote {
border: 2px solid var(--c-black); border: 2px solid var(--c-black);
color: var(--c-black); color: var(--c-black);
padding: 4px; padding: 4px;
font-weight: bold; font-weight: var(--fw-bold);
text-decoration: none; text-decoration: none;
} }
.crosslinks-bottom a.prev { .crosslinks-bottom a.prev {

View File

@@ -11,4 +11,12 @@
\Configure{AddCss}{book-ebook.css} \Configure{AddCss}{book-ebook.css}
\Configure{CoverMimeType}{image/jpeg} \Configure{CoverMimeType}{image/jpeg}
\CoverMetadata{cover/cover-page.jpg} \CoverMetadata{cover/cover-page.jpg}
\AddToHook{env/tikzpicture/begin}{\fontfamily{opensans-TLF}\selectfont}
\Configure{@HEAD}{\HCode{
<style type="text/css">
@import url('https://fonts.cdnfonts.com/css/open-sans');
body{
font-family: 'Open Sans';
}
</style>}}
\EndPreamble \EndPreamble

View File

@@ -9,6 +9,14 @@
}} }}
\Configure{AddCss}{style.css} \Configure{AddCss}{style.css}
\AddToHook{env/tikzpicture/begin}{\fontfamily{opensans-TLF}\selectfont}
\Configure{@HEAD}{\HCode{
<style type="text/css">
@import url('https://fonts.cdnfonts.com/css/open-sans');
body{
font-family: 'Open Sans';
}
</style>}}
\ConfigureEnv{titlepage}{\ifvmode\IgnorePar\fi\EndP\HCode{<main class="titlepage">}}{\ifvmode\IgnorePar\fi\EndP\HCode{</main>}}{}{} \ConfigureEnv{titlepage}{\ifvmode\IgnorePar\fi\EndP\HCode{<main class="titlepage">}}{\ifvmode\IgnorePar\fi\EndP\HCode{</main>}}{}{}
% Mini TOC % Mini TOC