Make WordPress Core

Ticket #61287: 61287.3.patch

File 61287.3.patch, 947 bytes (added by sabernhardt, 8 weeks ago)

sets code element background to transparent when the Code block has a background, retains default gray background when user does not select background color

  • src/wp-content/themes/twentysixteen/css/blocks.css

     
    163163        font-size: inherit;
    164164}
    165165
     166.wp-block-code.has-background code {
     167        background-color: transparent;
     168}
     169
    166170/* Pullquote */
    167171
    168172.wp-block-pullquote {
  • src/wp-content/themes/twentysixteen/css/editor-blocks.css

     
    416416        background-color: #d1d1d1;
    417417}
    418418
     419.wp-block-code.has-background code {
     420        background-color: transparent;
     421}
     422
    419423/* Classic */
    420424
    421425.wp-block-freeform.block-library-rich-text__tinymce blockquote {