Making WordPress.org


Ignore:
Timestamp:
07/22/2015 04:32:41 AM (9 years ago)
Author:
dd32
Message:

WordPress.org Themes: Add a Gruntfile to generate the RTL & minified JS files.
This also updates style.css to leverage the grunt task for icon flipping, removing the need for most .rtl styles.
This change also updates the icons to use dashicon classes where possible.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
Files:
2 added
5 edited

Legend:

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

    • Property svn:ignore set to
      node_modules
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style-rtl.css

    r1770 r1771  
    329329
    330330.theme-navigation .close:before {
    331     content: '\2190';
     331    content: "\2192";
    332332    margin-left: 5px;
    333 }
    334 .rtl .theme-navigation .close:before {
    335     content: '\2192';
    336333}
    337334
     
    362359.theme-navigation .right:before,
    363360.theme-navigation .left:before {
    364     font: 400 20px/2.6 dashicons !important;
    365361    text-decoration: inherit;
    366362    -webkit-font-smoothing: antialiased;
     
    385381}
    386382
    387 .theme-navigation .nav-previous a:before,
    388 .theme-navigation .left:before,
    389 .rtl .theme-navigation .right:before {
    390     content: '\f341';
    391 }
    392 
    393 .theme-navigation .nav-next a:before,
    394 .theme-navigation .right:before,
    395 .rtl .theme-navigation .left:before {
    396     content: '\f345';
     383/* These dashicons are in-line to allow the rtl processor to flip them */
     384.theme-navigation .dashicons-arrow-left-alt2:before {
     385    content: "\f345";
     386}
     387.theme-navigation .dashicons-arrow-right-alt2:before {
     388    content: "\f341";
    397389}
    398390
     
    453445
    454446.theme-wrap .theme-meta-info a:after {
    455     content: '\2192';
     447    content: "\2190";
    456448    margin-right: 5px;
    457 }
    458 
    459 .rtl .theme-wrap .theme-meta-info a:after {
    460     content: '\2190';
    461449}
    462450
     
    880868    cursor: default;
    881869    pointer-events: none;
    882 }
    883 
    884 .rtl .theme-install-overlay .previous-theme:before {
    885     content: "\f341";
    886 }
    887 
    888 .rtl .theme-install-overlay .next-theme:before {
    889     content: "\f345";
    890870}
    891871
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css

    r1770 r1771  
    329329
    330330.theme-navigation .close:before {
    331     content: '\2190';
     331    content: "\2190";
    332332    margin-right: 5px;
    333 }
    334 .rtl .theme-navigation .close:before {
    335     content: '\2192';
    336333}
    337334
     
    362359.theme-navigation .right:before,
    363360.theme-navigation .left:before {
    364     font: 400 20px/2.6 dashicons !important;
    365361    text-decoration: inherit;
    366362    -webkit-font-smoothing: antialiased;
     
    385381}
    386382
    387 .theme-navigation .nav-previous a:before,
    388 .theme-navigation .left:before,
    389 .rtl .theme-navigation .right:before {
    390     content: '\f341';
    391 }
    392 
    393 .theme-navigation .nav-next a:before,
    394 .theme-navigation .right:before,
    395 .rtl .theme-navigation .left:before {
    396     content: '\f345';
     383/* These dashicons are in-line to allow the rtl processor to flip them */
     384.theme-navigation .dashicons-arrow-left-alt2:before {
     385    content: "\f341";
     386}
     387.theme-navigation .dashicons-arrow-right-alt2:before {
     388    content: "\f345";
    397389}
    398390
     
    453445
    454446.theme-wrap .theme-meta-info a:after {
    455     content: '\2192';
     447    content: "\2192";
    456448    margin-left: 5px;
    457 }
    458 
    459 .rtl .theme-wrap .theme-meta-info a:after {
    460     content: '\2190';
    461449}
    462450
     
    880868    cursor: default;
    881869    pointer-events: none;
    882 }
    883 
    884 .rtl .theme-install-overlay .previous-theme:before {
    885     content: "\f345";
    886 }
    887 
    888 .rtl .theme-install-overlay .next-theme:before {
    889     content: "\f341";
    890870}
    891871
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/theme-single.php

    r1770 r1771  
    33        <a class="close" href="<?php echo home_url('/'); ?>"><?php _e( 'Return to Themes List', 'wporg-themes' ); ?></a>
    44        <div class="navigation post-navigation">
    5             <button class="left dashicons dashicons-no disabled"><span class="screen-reader-text"><?php _e( 'Show previous theme', 'wporg-themes' ); ?></span></button>
    6             <button class="right dashicons dashicons-no disabled"><span class="screen-reader-text"><?php _e( 'Show next theme', 'wporg-themes' ); ?></span></button>
     5            <button class="left dashicons dashicons-arrow-left-alt2 disabled"><span class="screen-reader-text"><?php _e( 'Show previous theme', 'wporg-themes' ); ?></span></button>
     6            <button class="right dashicons dashicons-arrow-right-alt2 disabled"><span class="screen-reader-text"><?php _e( 'Show next theme', 'wporg-themes' ); ?></span></button>
    77        </div>
    88    </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r1770 r1771  
    33        <button class="close"><?php _e( 'Return to Themes List', 'wporg-themes' ); ?></button>
    44        <div class="navigation post-navigation">
    5             <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme', 'wporg-themes' ); ?></span></button>
    6             <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme', 'wporg-themes' ); ?></span></button>
     5            <button class="left dashicons dashicons-arrow-left-alt2"><span class="screen-reader-text"><?php _e( 'Show previous theme', 'wporg-themes' ); ?></span></button>
     6            <button class="right dashicons dashicons-arrow-right-alt2"><span class="screen-reader-text"><?php _e( 'Show next theme', 'wporg-themes' ); ?></span></button>
    77        </div>
    88    </div>
Note: See TracChangeset for help on using the changeset viewer.