Making WordPress.org

Changeset 3252


Ignore:
Timestamp:
05/25/2016 05:33:00 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Introduce our very own accordion.

Makes "Read more" toggles work on single plugin pages.

See #1719.

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

Legend:

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

    r3251 r3252  
    16621662}
    16631663
     1664.single .type-plugin .entry-content .read-more.toggled {
     1665  max-height: none;
     1666}
     1667
    16641668.single .type-plugin .entry-content .section-toggle {
    16651669  font-size: 0.8rem;
    1666   padding-top: 0.5rem;
     1670  margin-top: 0.5rem;
    16671671  position: relative;
    16681672}
     
    16731677  padding-left: 5px;
    16741678  vertical-align: text-top;
     1679}
     1680
     1681.single .type-plugin .entry-content .toggled + .section-toggle:after {
     1682  content: "\f343";
    16751683}
    16761684
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r3200 r3252  
    6767
    6868    wp_enqueue_script( 'wporg-plugins-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );
    69 
    7069    wp_enqueue_script( 'wporg-plugins-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );
     70   
     71    if ( is_singular( 'plugin' ) ) {
     72        wp_enqueue_script( 'wporg-plugins-accordion', get_template_directory_uri() . '/js/section-accordion.js', array(), '20160525', true );
     73    }
    7174}
    7275add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\scripts' );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/primary/_plugin-single.scss

    r3223 r3252  
    6262                margin-top: 0;
    6363            }
     64
     65            &.toggled {
     66                max-height: none;
     67            }
    6468        }
    6569
     
    6771            @extend a;
    6872            font-size: ms(-2);
    69             padding-top: 0.5rem;
     73            margin-top: 0.5rem;
    7074            position: relative;
    7175
     
    7680                vertical-align: text-top;
    7781            }
     82        }
     83
     84        .toggled + .section-toggle:after {
     85            content: "\f343";
    7886        }
    7987
Note: See TracChangeset for help on using the changeset viewer.