From 13e97ab2c9cea23f3deba8e8447be4974c0f369f Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Thu, 6 Mar 2025 10:50:26 +0100 Subject: [PATCH] [web] Remove absolute font-size for `code`, `kdb`, `samp` (#24078) * Swap pre/div in split-test-dump-modal.tsx * Remove fixed font-size and line-height for code/kdb/pre/samp * Set the font-size of code,kdb,samp to 1em instead of 0.875em * Remove unnecessary `font-size: inherit` GitOrigin-RevId: b5b19cf08774312ad1b3c4dcf16ea08e08093ccb --- .../frontend/stylesheets/bootstrap-5/base/typography.scss | 7 +++++-- .../stylesheets/bootstrap-5/pages/editor/share.scss | 4 ---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/services/web/frontend/stylesheets/bootstrap-5/base/typography.scss b/services/web/frontend/stylesheets/bootstrap-5/base/typography.scss index 0efd5d811e..5515821cb9 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/base/typography.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/base/typography.scss @@ -63,11 +63,14 @@ h6, // Peformatted text, sample output, code, keyboard input elements // E.g.: Git authentication token +pre { + @include body-base; +} + code, kbd, -pre, samp { - @include body-base; + font-size: 1em; } .list-style-check-green { diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/editor/share.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/editor/share.scss index 0d6694c141..25c1f443d0 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/editor/share.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/editor/share.scss @@ -41,10 +41,6 @@ display: flex; align-items: center; justify-content: space-between; - - code { - font-size: inherit; - } } } }