From b3772e23bf6431f3116a4b4ef5c6a6c35d769079 Mon Sep 17 00:00:00 2001 From: Bryce Huhtala <100382978+sketchius@users.noreply.github.com> Date: Thu, 2 Jan 2025 13:30:01 -0500 Subject: [PATCH] UX: inherit font-size for code in headings (#30536) * UX: inherit font-size for code in headings * UX: use descendant selector * FIX: linting --- .../stylesheets/common/base/code_highlighting.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/assets/stylesheets/common/base/code_highlighting.scss b/app/assets/stylesheets/common/base/code_highlighting.scss index 06151fd3323..548f14dc9bc 100644 --- a/app/assets/stylesheets/common/base/code_highlighting.scss +++ b/app/assets/stylesheets/common/base/code_highlighting.scss @@ -29,6 +29,15 @@ pre > code { max-height: 500px; } +h1 code, +h2 code, +h3 code, +h4 code, +h5 code, +h6 code { + font-size: inherit; +} + .hljs-comment, .hljs-doctag, .hljs-code,