Making WordPress.org

Changeset 6370


Ignore:
Timestamp:
01/12/2018 05:11:32 AM (9 years ago)
Author:
dd32
Message:

BuddyPress.org & bbPress.org: Add a CSS :target block to make anchors scroll to the correct position.
For example: https://codex.buddypress.org/participate-and-contribute/#test-report-bugs

Fixes #1077.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/style.css

    r6368 r6370  
    454454        font-size: 14px;
    455455        color: #333;
     456}
     457
     458/* Push the page down so that #target links are correct */
     459:target:before {
     460        content: "";
     461        display: block;
     462        height: 130px; /* fixed header height*/
     463        margin: -130px 0 0; /* negative fixed header height */
    456464}
    457465
Note: See TracChangeset for help on using the changeset viewer.