[wp-meta] [Making WordPress.org] #5341: p2-breathe: remove forced 11px font-size from <code> tags

Making WordPress.org noreply at wordpress.org
Wed Jul 29 07:51:15 UTC 2020


#5341: p2-breathe: remove forced 11px font-size from <code> tags
--------------------------------------+-------------------------
 Reporter:  audrasjb                  |      Owner:  (none)
     Type:  defect                    |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  Make (Get Involved) / P2  |   Keywords:  needs-patch
--------------------------------------+-------------------------
 In p2-breathe theme, there is a very annoying `font-size: 11px` CSS style
 applied on each `<code>` HTML tag.

 When applied to headings, it results in quite ugly rendering.
 For reference, see this Post on Make/Core:
 https://make.wordpress.org/core/2020/07/29/miscellaneous-developer-
 focused-changes-in-wordpress-5-5/
 (heading: "Comments: default comment_type value now enforced")

 I guess it should be fixed upstream, but I didn't find the p2-breathe
 GitHub repository.
 I found a SVN repository here: https://wpcom-
 themes.svn.automattic.com/p2-breathe/style.css

 The following lines will need to be updated:


 {{{
 /* line 111, css/src/global/_text.scss */
 pre {
   background: #f1f1f1;
   color: #222222;
   font-size: 11px; /* Need to be removed */
   font-size: 1.1rem;
   line-height: 1.4;
   margin-bottom: 1.2em;
   padding: 1.2em;
   overflow: auto;
   max-width: 100%;
 }

 …

 pre,
 code,
 kbd,
 tt,
 var {
   font: 11px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", "Courier
 New", monospace; /* Remove "11px" and replace "font" with "font-family" */
 }
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5341>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list