From dacb5d5d336f54ddbe32b9eedf3900ccc6884296 Mon Sep 17 00:00:00 2001 From: Bryce Huhtala <100382978+sketchius@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:09:29 -0500 Subject: [PATCH] UX: use em for code font-size (#30547) --- .../stylesheets/common/base/code_highlighting.scss | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/assets/stylesheets/common/base/code_highlighting.scss b/app/assets/stylesheets/common/base/code_highlighting.scss index 548f14dc9bc..4e25b53ad26 100644 --- a/app/assets/stylesheets/common/base/code_highlighting.scss +++ b/app/assets/stylesheets/common/base/code_highlighting.scss @@ -19,7 +19,7 @@ code { color: var(--primary-very-high); background: var(--hljs-bg); border-radius: var(--d-button-border-radius); - font-size: 14px; + font-size: 0.875em; line-height: calc((13 + 4) / 13); } @@ -29,15 +29,6 @@ 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,