diff --git a/book.toml b/book.toml index ec81f5ae..ffc52ba5 100644 --- a/book.toml +++ b/book.toml @@ -7,7 +7,7 @@ title = "The Book of sbt" [output.html] theme = "theme" -additional-css = ["src/reference/custom-2024.css", "src/reference/mdbook-admonish.css"] +additional-css = ["src/reference/custom-202402.css", "src/reference/mdbook-admonish.css"] cname = "www.scala-sbt.org" [preprocessor.variables] diff --git a/src/reference/custom-2024.css b/src/reference/custom-2024.css deleted file mode 100644 index 6b71502c..00000000 --- a/src/reference/custom-2024.css +++ /dev/null @@ -1,7 +0,0 @@ -html { - font-family: "Helvetica Neue", "Roboto", "Arial", sans-serif; -} - -pre { - border: solid 1px lightgray; -} diff --git a/src/reference/custom-202402.css b/src/reference/custom-202402.css new file mode 100644 index 00000000..bdac6db6 --- /dev/null +++ b/src/reference/custom-202402.css @@ -0,0 +1,28 @@ +html { + font-family: "Lora"; +} + +:root { + font-size: 90%; +} + +pre { + border: solid 1px lightgray; +} + +h1 { + font-family: 'Linux Biolinum'; +} + +h1.menu-title { + font-family: "Lora"; + font-size: 1.5rem; +} + +h2 { + font-family: 'Linux Biolinum'; +} + +h3 { + font-family: 'Linux Biolinum'; +} diff --git a/theme/fonts/LinBiolinum_R.otf b/theme/fonts/LinBiolinum_R.otf new file mode 100755 index 00000000..ada58801 Binary files /dev/null and b/theme/fonts/LinBiolinum_R.otf differ diff --git a/theme/fonts/LinBiolinum_RB.otf b/theme/fonts/LinBiolinum_RB.otf new file mode 100755 index 00000000..d86721e8 Binary files /dev/null and b/theme/fonts/LinBiolinum_RB.otf differ diff --git a/theme/fonts/LinBiolinum_RI.otf b/theme/fonts/LinBiolinum_RI.otf new file mode 100755 index 00000000..86d0cf43 Binary files /dev/null and b/theme/fonts/LinBiolinum_RI.otf differ diff --git a/theme/fonts/Lora-Italic[wght].ttf b/theme/fonts/Lora-Italic[wght].ttf new file mode 100644 index 00000000..ca968972 Binary files /dev/null and b/theme/fonts/Lora-Italic[wght].ttf differ diff --git a/theme/fonts/Lora[wght].ttf b/theme/fonts/Lora[wght].ttf new file mode 100644 index 00000000..81d3ffb8 Binary files /dev/null and b/theme/fonts/Lora[wght].ttf differ diff --git a/theme/fonts/fonts.css b/theme/fonts/fonts.css new file mode 100644 index 00000000..f0ae1971 --- /dev/null +++ b/theme/fonts/fonts.css @@ -0,0 +1,129 @@ +@font-face{ + font-family: Lora; + src: url(Lora[wght].ttf); +} + +@font-face{ + font-family: Lora; + font-style: italic; + src: url(Lora-Italitc[wght].ttf); +} + +@font-face{ + font-family: "Linux Biolinum"; + font-style: normal; + src: url(LinBiolinum_R.otf); +} + +@font-face{ + font-family: "Linux Biolinum"; + font-weight: bold; + src: url(LinBiolinum_RB.otf); +} + +@font-face{ + font-family: "Linux Biolinum"; + font-style: italic; + src: url(LinBiolinum_RI.otf); +} + +/* Open Sans is licensed under the Apache License, Version 2.0. See http://www.apache.org/licenses/LICENSE-2.0 */ +/* Source Code Pro is under the Open Font License. See https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL */ + +/* open-sans-300 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 300; + src: local('Open Sans Light'), local('OpenSans-Light'), + url('open-sans-v17-all-charsets-300.woff2') format('woff2'); +} + +/* open-sans-300italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 300; + src: local('Open Sans Light Italic'), local('OpenSans-LightItalic'), + url('open-sans-v17-all-charsets-300italic.woff2') format('woff2'); +} + +/* open-sans-regular - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans Regular'), local('OpenSans-Regular'), + url('open-sans-v17-all-charsets-regular.woff2') format('woff2'); +} + +/* open-sans-italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 400; + src: local('Open Sans Italic'), local('OpenSans-Italic'), + url('open-sans-v17-all-charsets-italic.woff2') format('woff2'); +} + +/* open-sans-600 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 600; + src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), + url('open-sans-v17-all-charsets-600.woff2') format('woff2'); +} + +/* open-sans-600italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 600; + src: local('Open Sans SemiBold Italic'), local('OpenSans-SemiBoldItalic'), + url('open-sans-v17-all-charsets-600italic.woff2') format('woff2'); +} + +/* open-sans-700 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), + url('open-sans-v17-all-charsets-700.woff2') format('woff2'); +} + +/* open-sans-700italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 700; + src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), + url('open-sans-v17-all-charsets-700italic.woff2') format('woff2'); +} + +/* open-sans-800 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 800; + src: local('Open Sans ExtraBold'), local('OpenSans-ExtraBold'), + url('open-sans-v17-all-charsets-800.woff2') format('woff2'); +} + +/* open-sans-800italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 800; + src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'), + url('open-sans-v17-all-charsets-800italic.woff2') format('woff2'); +} + +/* source-code-pro-500 - latin_vietnamese_latin-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Source Code Pro'; + font-style: normal; + font-weight: 500; + src: url('source-code-pro-v11-all-charsets-500.woff2') format('woff2'); +}