From 489ab6f1c0db3106b7c2f9ea48b3766e2fb18338 Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Thu, 18 May 2023 22:05:50 +0530 Subject: [PATCH] Fix font-override in blog and docs (#3448) This prevents it from overriding font for code blocks and helps retain monosapce font for them. --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [x] :world_map: Documentation - [ ] :robot: Supportability/Tests - [ ] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- website/src/css/custom.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/css/custom.scss b/website/src/css/custom.scss index dbbfd54bc..5d897fbb5 100644 --- a/website/src/css/custom.scss +++ b/website/src/css/custom.scss @@ -6,8 +6,8 @@ CUSTOM TO THE NEW HOME PAGE @import "icons.scss"; @import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap'); -* { - font-family: 'Nunito', sans-serif !important; +:root { + --ifm-font-family-base: 'Nunito', sans-serif; } html {