Making WordPress.org

Changeset 11911


Ignore:
Timestamp:
06/09/2022 11:49:32 PM (2 years ago)
Author:
iandunn
Message:

Handbooks: Increase target specificity to prevent overlap.

See https://github.com/WordPress/wporg-developer/issues/33#issuecomment-1151579978
Props joyously

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php

    r11654 r11911  
    1010    protected $styles = '<style>
    1111        .toc-jump { text-align: right; font-size: 12px; }
    12         .toc-heading a { color: inherit; font-weight: inherit; margin-left: -25px; text-decoration: none !important; }
     12        .toc-heading a:first-of-type { color: inherit; font-weight: inherit; margin-left: -25px; text-decoration: none !important; }
    1313        .toc-heading a:before { visibility: hidden; vertical-align: middle; margin-top: -5px; margin-right: 5px; }
    1414        .toc-heading:target a:before { margin-left: -8px; margin-right: 13px; }
     
    261261    }
    262262}
    263 
Note: See TracChangeset for help on using the changeset viewer.