WordPress.org

Make WordPress Core

Ticket #46371: 46371.diff

File 46371.diff, 2.6 KB (added by kingkero, 7 months ago)
  • wp-includes/css/admin-bar-rtl.css

    diff --git a/wp-includes/css/admin-bar-rtl.css b/wp-includes/css/admin-bar-rtl.css
    index 61c85ad..13c846d 100644
    a b html:lang(he-il) .rtl #wpadminbar * { 
    763763        background-image: none;
    764764}
    765765
     766/* Don't hide anchors behind the admin bar */
     767body.admin-bar .entry-content h1:target,
     768body.admin-bar .entry-content h2:target,
     769body.admin-bar .entry-content h3:target,
     770body.admin-bar .entry-content h4:target,
     771body.admin-bar .entry-content h5:target,
     772body.admin-bar .entry-content h6:target,
     773body.admin-bar .entry-content .wp-block-group:target {
     774        padding-top: 32px;
     775        margin-top: -32px;
     776}
     777
    766778/* No @font-face support */
    767779.no-font-face #wpadminbar ul.ab-top-menu > li > a.ab-item {
    768780        display: block;
    html:lang(he-il) .rtl #wpadminbar * { 
    10941106                top: 10px;
    10951107                right: 0;
    10961108        }
     1109
     1110        /* Adjust not hiding anchors to larger admin bar */
     1111        body.admin-bar .entry-content h1:target,
     1112        body.admin-bar .entry-content h2:target,
     1113        body.admin-bar .entry-content h3:target,
     1114        body.admin-bar .entry-content h4:target,
     1115        body.admin-bar .entry-content h5:target,
     1116        body.admin-bar .entry-content h6:target,
     1117        body.admin-bar .entry-content .wp-block-group:target {
     1118                padding-top: 46px;
     1119                margin-top: -46px;
     1120        }
    10971121}
    10981122
    10991123/* Smartphone */
  • wp-includes/css/admin-bar.css

    diff --git a/wp-includes/css/admin-bar.css b/wp-includes/css/admin-bar.css
    index 295fbec..8c95c15 100644
    a b html:lang(he-il) .rtl #wpadminbar * { 
    763763        background-image: none;
    764764}
    765765
     766/* Don't hide anchors behind the admin bar */
     767body.admin-bar .entry-content h1:target,
     768body.admin-bar .entry-content h2:target,
     769body.admin-bar .entry-content h3:target,
     770body.admin-bar .entry-content h4:target,
     771body.admin-bar .entry-content h5:target,
     772body.admin-bar .entry-content h6:target,
     773body.admin-bar .entry-content .wp-block-group:target {
     774        padding-top: 32px;
     775        margin-top: -32px;
     776}
     777
    766778/* No @font-face support */
    767779.no-font-face #wpadminbar ul.ab-top-menu > li > a.ab-item {
    768780        display: block;
    html:lang(he-il) .rtl #wpadminbar * { 
    10941106                top: 10px;
    10951107                left: 0;
    10961108        }
     1109
     1110        /* Adjust not hiding anchors to larger admin bar */
     1111        body.admin-bar .entry-content h1:target,
     1112        body.admin-bar .entry-content h2:target,
     1113        body.admin-bar .entry-content h3:target,
     1114        body.admin-bar .entry-content h4:target,
     1115        body.admin-bar .entry-content h5:target,
     1116        body.admin-bar .entry-content h6:target,
     1117        body.admin-bar .entry-content .wp-block-group:target {
     1118                padding-top: 46px;
     1119                margin-top: -46px;
     1120        }
    10971121}
    10981122
    10991123/* Smartphone */