From 0d586915612f4222ca7e92123f9ede889c1856df Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 3 Jul 2020 00:18:45 +1000 Subject: [PATCH] Default to sans-serif font --- docs/_static/custom.js | 2 +- docs/_static/style.css | 6 +++--- docs/_templates/layout.html | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/_static/custom.js b/docs/_static/custom.js index d9b5faaa2..7f2ddd95f 100644 --- a/docs/_static/custom.js +++ b/docs/_static/custom.js @@ -44,7 +44,7 @@ function getRootAttributeToggle(attributeName, valueName) { } const settings = { - useSansFont: getRootAttributeToggle('font', 'sans'), + useSerifFont: getRootAttributeToggle('font', 'serif'), useDarkTheme: getRootAttributeToggle('theme', 'dark') }; diff --git a/docs/_static/style.css b/docs/_static/style.css index 47262b84a..3af254ee5 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -18,7 +18,7 @@ Historically however, thanks to: /* CSS variables would go here */ :root { - --font-family: 'Georgia', 'Yu Gothic', 'Noto Sans CJK JP Regular', serif; + --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; /* base palette */ --white: #ffffff; @@ -104,8 +104,8 @@ Historically however, thanks to: --attribute-table-badge: var(--grey-7); } -:root[data-font="sans"] { - --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; +:root[data-font="serif"] { + --font-family: 'Georgia', 'Yu Gothic', 'Noto Sans CJK JP Regular', serif; } :root[data-theme="dark"] { diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index ef5a81d24..4f9e564a5 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -142,10 +142,10 @@

Settings

-

Use a sans-serif font: +

Use a serif font: