Making WordPress.org

Changeset 3405


Ignore:
Timestamp:
06/17/2016 09:41:00 AM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Make jump to anchors work on plugin detail.

See #1719.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css

    r3403 r3405  
    20472047}
    20482048
    2049 .single .type-plugin .entry-content .read-more h1:first-of-type, .single .type-plugin .entry-content .read-more h2:first-of-type, .single .type-plugin .entry-content .read-more h3:first-of-type {
     2049.single .type-plugin .entry-content .read-more h1:nth-child(2), .single .type-plugin .entry-content .read-more h2:nth-child(2), .single .type-plugin .entry-content .read-more h3:nth-child(2) {
    20502050  margin-top: 0;
    20512051}
     
    20592059}
    20602060
    2061 .single .type-plugin .entry-content .read-more h4:first-of-type, .single .type-plugin .entry-content .read-more h5:first-of-type, .single .type-plugin .entry-content .read-more h6:first-of-type {
     2061.single .type-plugin .entry-content .read-more h4:nth-child(2), .single .type-plugin .entry-content .read-more h5:nth-child(2), .single .type-plugin .entry-content .read-more h6:nth-child(2) {
    20622062  margin-top: 0;
     2063}
     2064
     2065.single .type-plugin .entry-content .read-more h2:first-of-type {
     2066  font-size: 20px;
     2067  font-size: 1.25rem;
     2068  border: none;
     2069  color: #32373c;
     2070  font-weight: 600;
     2071  padding: 0;
    20632072}
    20642073
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css

    r3403 r3405  
    20472047}
    20482048
    2049 .single .type-plugin .entry-content .read-more h1:first-of-type, .single .type-plugin .entry-content .read-more h2:first-of-type, .single .type-plugin .entry-content .read-more h3:first-of-type {
     2049.single .type-plugin .entry-content .read-more h1:nth-child(2), .single .type-plugin .entry-content .read-more h2:nth-child(2), .single .type-plugin .entry-content .read-more h3:nth-child(2) {
    20502050  margin-top: 0;
    20512051}
     
    20592059}
    20602060
    2061 .single .type-plugin .entry-content .read-more h4:first-of-type, .single .type-plugin .entry-content .read-more h5:first-of-type, .single .type-plugin .entry-content .read-more h6:first-of-type {
     2061.single .type-plugin .entry-content .read-more h4:nth-child(2), .single .type-plugin .entry-content .read-more h5:nth-child(2), .single .type-plugin .entry-content .read-more h6:nth-child(2) {
    20622062  margin-top: 0;
     2063}
     2064
     2065.single .type-plugin .entry-content .read-more h2:first-of-type {
     2066  font-size: 20px;
     2067  font-size: 1.25rem;
     2068  border: none;
     2069  color: #32373c;
     2070  font-weight: 600;
     2071  padding: 0;
    20632072}
    20642073
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/primary/_plugin-single.scss

    r3403 r3405  
    8585                text-transform: uppercase;
    8686
    87                 &:first-of-type {
     87                &:nth-child(2) {
    8888                    margin-top: 0;
    8989                }
     
    9696                text-transform: uppercase;
    9797
    98                 &:first-of-type {
     98                &:nth-child(2) {
    9999                    margin-top: 0;
    100100                }
     101            }
     102
     103            h2:first-of-type {
     104                @include font-size( ms-unitless( ms(2) ) );
     105
     106                // Override wp4.css.
     107                border: none;
     108                color: $color__text-main;
     109                font-weight: 600;
     110                padding: 0;
    101111            }
    102112
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r3396 r3405  
    4949                endif;
    5050        ?>
    51             <h4><?php echo $section['title']; ?></h4>
    5251
    5352            <div id="<?php echo esc_attr( $section['slug'] ); ?>" class="read-more" aria-expanded="false">
     53                <h2><?php echo $section['title']; ?></h2>
    5454                <?php echo apply_filters( 'the_content', $content[ $section['slug'] ], $section['slug'] ); ?>
    5555            </div>
Note: See TracChangeset for help on using the changeset viewer.