Make WordPress Core

Ticket #54032: 54032.diff

File 54032.diff, 597 bytes (added by sabernhardt, 4 years ago)
  • src/wp-includes/admin-bar.php

     
    12111211        $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
    12121212        ?>
    12131213<style<?php echo $type_attr; ?> media="screen">
    1214         html { margin-top: 32px !important; }
    1215         @media screen and ( max-width: 782px ) {
    1216                 html { margin-top: 46px !important; }
    1217         }
     1214        html { margin-top: var(--wp-admin--admin-bar--height, 32px) !important; }
    12181215</style>
    12191216        <?php
    12201217}