[FAFO] Use "Roboto Slab" as the main font and "Courier Prime" for monospace

This commit is contained in:
Rahix 2026-03-10 20:32:08 +01:00
parent faf04f00e1
commit faf01b4238
9 changed files with 57 additions and 3 deletions

View file

@ -5,8 +5,8 @@
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* global vars */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
@font_family_screen: arial, sans-serif;
@font_family_print: "Times New Roman", serif;
@font_family_screen: "Roboto Slab", arial, sans-serif;
@font_family_print: "Roboto Slab", arial, sans-serif;
@nav_direct_background: @ini_background;
@nav_direct_color: @ini_existing;

View file

@ -500,7 +500,7 @@ pre,
code,
samp,
kbd {
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
font-family: "Courier Prime", "Courier New", Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, monospace;
/* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
font-size: @font-size-default;
direction: ltr;

View file

@ -25,6 +25,60 @@
}
}
/* roboto-slab-regular - cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 400;
src: url('fonts/roboto-slab-v36-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-slab-700 - cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 700;
src: url('fonts/roboto-slab-v36-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* courier-prime-regular - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Courier Prime';
font-style: normal;
font-weight: 400;
src: url('fonts/courier-prime-v11-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* courier-prime-italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Courier Prime';
font-style: italic;
font-weight: 400;
src: url('fonts/courier-prime-v11-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* courier-prime-700 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Courier Prime';
font-style: normal;
font-weight: 700;
src: url('fonts/courier-prime-v11-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* courier-prime-700italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Courier Prime';
font-style: italic;
font-weight: 700;
src: url('fonts/courier-prime-v11-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
.fontello() {
&::before {
font-family: "fontello";