Make WordPress Core

Ticket #43632: 43632.2.diff

File 43632.2.diff, 1007 bytes (added by audrasjb, 7 years ago)

43632.2.diff - CSS update

  • src/wp-content/plugins/hello.php

    diff --git a/src/wp-content/plugins/hello.php b/src/wp-content/plugins/hello.php
    index 34e3b68..0e1adbf 100644
    a b Dolly'll never go away again"; 
    5252// This just echoes the chosen line, we'll position it later
    5353function hello_dolly() {
    5454        $chosen = hello_dolly_get_lyric();
    55         echo "<p id='dolly'>$chosen</p>";
     55        echo "<p id='dolly'><span class='screen-reader-text'>Quote from Hello Dolly song</span><span aria-hidden='true'>&#9835;</span> $chosen</p>";
    5656}
    5757
    5858// Now we set that function up to execute when the admin_notices action is called
    function dolly_css() { 
    6767        <style type='text/css'>
    6868        #dolly {
    6969                float: $x;
    70                 padding-$x: 15px;
    71                 padding-top: 5px;               
     70                padding: 6px 10px 4px 0;
    7271                margin: 0;
     72                line-height: 1.7;
    7373                font-size: 11px;
    7474        }
     75        body.rtl #dolly {
     76                padding: 6px 0 4px 10px;
     77        }
     78        @media screen and (max-width: 782px) {
     79                #dolly {
     80                        float: none;
     81                }               
     82        }
    7583        </style>
    7684        ";
    7785}