WordPress.org

Make WordPress Core

Ticket #46371: 43671.3.diff

File 43671.3.diff, 1.8 KB (added by sabernhardt, 2 months ago)

using toolbar height variable and adjusting scroll padding for bundled themes

  • src/wp-content/themes/twentyfourteen/style.css

     
    9595        overflow-y: scroll;
    9696        -webkit-text-size-adjust: 100%;
    9797        -ms-text-size-adjust:     100%;
     98        scroll-padding-top: calc( var(--wp-admin--admin-bar--height, 0px) + 48px );
    9899}
    99100
    100101body,
  • src/wp-content/themes/twentyseventeen/style.css

     
    33823382}
    33833383
    33843384@media screen and (min-width: 48em) {
     3385        html {
     3386                scroll-padding-top: calc( var(--wp-admin--admin-bar--height, 0px) + 72px );
     3387        }
    33853388
    33863389        /* Typography */
    33873390
  • src/wp-content/themes/twentysixteen/style.css

     
    27742774 */
    27752775
    27762776@media screen and (min-width: 44.375em) {
     2777        html {
     2778                scroll-padding-top: calc( var(--wp-admin--admin-bar--height, 0px) + 21px );
     2779        }
     2780
    27772781        body:not(.custom-background-image):before,
    27782782        body:not(.custom-background-image):after {
    27792783                background: inherit;
  • src/wp-includes/css/admin-bar.css

     
    11html {
    22        --wp-admin--admin-bar--height: 32px;
     3        scroll-padding-top: var(--wp-admin--admin-bar--height);
    34}
    45
    56#wpadminbar * {