Forráskód Böngészése

[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
Antoine Clausse 1 éve
szülő
commit
13e97ab2c9

+ 5 - 2
services/web/frontend/stylesheets/bootstrap-5/base/typography.scss

@@ -63,11 +63,14 @@ h6,
 
 
 // Peformatted text, sample output, code, keyboard input elements
 // Peformatted text, sample output, code, keyboard input elements
 // E.g.: Git authentication token
 // E.g.: Git authentication token
+pre {
+  @include body-base;
+}
+
 code,
 code,
 kbd,
 kbd,
-pre,
 samp {
 samp {
-  @include body-base;
+  font-size: 1em;
 }
 }
 
 
 .list-style-check-green {
 .list-style-check-green {

+ 0 - 4
services/web/frontend/stylesheets/bootstrap-5/pages/editor/share.scss

@@ -41,10 +41,6 @@
           display: flex;
           display: flex;
           align-items: center;
           align-items: center;
           justify-content: space-between;
           justify-content: space-between;
-
-          code {
-            font-size: inherit;
-          }
         }
         }
       }
       }
     }
     }