Make WordPress Core

Ticket #42300: 42300.body-position-relative.patch

File 42300.body-position-relative.patch, 519 bytes (added by sabernhardt, 5 years ago)

set body to relative positioning in the admin bar CSS at 600px for the front end only

  • src/wp-includes/css/admin-bar.css

     
    10291029
    10301030/* Smartphone */
    10311031@media screen and (max-width: 600px) {
     1032        body:not(.wp-admin) {
     1033                position: relative;
     1034        }
     1035
    10321036        #wpadminbar {
    10331037                position: absolute;
    10341038        }
    10351039
     1040        body:not(.wp-admin) #wpadminbar {
     1041                top: -46px;
     1042        }
     1043
    10361044        #wp-responsive-overlay {
    10371045                position: fixed;
    10381046                top: 0;