From 8d07916953ff65f891babc754df33b1d4a1ffe9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Bro=C5=84ski?= Date: Tue, 26 Sep 2023 14:08:28 +0200 Subject: [PATCH] Restore font styles for headings and menu items --- src/assets/scss/_global.scss | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/assets/scss/_global.scss b/src/assets/scss/_global.scss index 8670bd44b4..4b88d958cd 100644 --- a/src/assets/scss/_global.scss +++ b/src/assets/scss/_global.scss @@ -236,3 +236,51 @@ html { font-size: 26px; } } + +// Fix for low readability. +// See: https://github.com/casper-network/docs/issues/1287. +// +.main-wrapper { + font: var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base); + + h1, h2, h3, h4, h5, h6 { + font-family: var(--ifm-heading-font-family); + font-weight: var(--ifm-heading-font-weight); + line-height: var(--ifm-heading-line-height); + } + + h1 { + font-size: var(--ifm-h1-font-size) + } + + h2 { + font-size: var(--ifm-h2-font-size) + } + + h3 { + font-size: var(--ifm-h3-font-size) + } + + h4 { + font-size: var(--ifm-h4-font-size) + } + + h5 { + font-size: var(--ifm-h5-font-size) + } + + h6 { + font-size: var(--ifm-h6-font-size) + } + + .menu__list { + .menu__link { + font-size: inherit !important; + } + + .menu__link--sublist { + letter-spacing: inherit !important; + font-size: inherit !important; + } + } +}