Make WordPress Core

Changeset 31577


Ignore:
Timestamp:
02/27/2015 07:43:33 PM (10 years ago)
Author:
ocean90
Message:

Press This: RTL improvements.

  • Load the RTL version of press-this-editor.css.
  • Use more semantic class names for the arrows, Makes it easier to swap the arrows in RTL, see #31478.

see #31474.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/press-this.css

    r31566 r31577  
    18591859}
    18601860
    1861 .post-options .dashicons-arrow-right-alt2 {
     1861.post-option-forward:before {
    18621862    position: absolute;
    18631863    top: 50%;
    18641864    right: 8px;
    18651865    margin-top: -10px;
     1866    content: "\f345"
     1867}
     1868
     1869.post-option-back:before {
     1870    content: "\f341";
    18661871}
    18671872
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r31571 r31577  
    509509            $styles .= ',';
    510510        }
    511         return $styles . admin_url( 'css/press-this-editor.css' );
     511
     512        $press_this = admin_url( 'css/press-this-editor.css' );
     513        if ( is_rtl() ) {
     514            $press_this = str_replace( '.css', '-rtl.css', $press_this );
     515        }
     516
     517        return $styles . $press_this;
    512518    }
    513519
     
    822828                        <span class="post-option-title"><?php _e( 'Format' ); ?></span>
    823829                        <span class="post-option-contents" id="post-option-post-format"><?php echo esc_html( get_post_format_string( $post_format ) ); ?></span>
    824                         <span class="dashicons dashicons-arrow-right-alt2"></span>
     830                        <span class="dashicons post-option-forward"></span>
    825831                    </button>
    826832                <?php endif; ?>
     
    830836                    <span class="post-option-title"><?php _e( 'Categories' ); ?></span>
    831837                    <span class="post-option-contents" id="post-option-category"></span>
    832                     <span class="dashicons dashicons-arrow-right-alt2"></span>
     838                    <span class="dashicons post-option-forward"></span>
    833839                </button>
    834840
     
    837843                    <span class="post-option-title"><?php _e( 'Tags' ); ?></span>
    838844                    <span class="post-option-contents" id="post-option-tags"></span>
    839                     <span class="dashicons dashicons-arrow-right-alt2"></span>
     845                    <span class="dashicons post-option-forward"></span>
    840846                </button>
    841847            </div>
     
    844850                <div class="setting-modal is-off-screen is-hidden">
    845851                    <button type="button" class="button-reset modal-close">
    846                         <span class="dashicons dashicons-arrow-left-alt2"></span>
     852                        <span class="dashicons post-option-back"></span>
    847853                        <span class="setting-title" aria-hidden="true"><?php _e( 'Post format' ); ?></span>
    848854                        <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
     
    854860            <div class="setting-modal is-off-screen is-hidden">
    855861                <button type="button" class="button-reset modal-close">
    856                     <span class="dashicons dashicons-arrow-left-alt2"></span>
     862                    <span class="dashicons post-option-back"></span>
    857863                    <span class="setting-title" aria-hidden="true"><?php _e( 'Categories' ); ?></span>
    858864                    <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
     
    863869            <div class="setting-modal tags is-off-screen is-hidden">
    864870                <button type="button" class="button-reset modal-close">
    865                     <span class="dashicons dashicons-arrow-left-alt2"></span>
     871                    <span class="dashicons post-option-back"></span>
    866872                    <span class="setting-title" aria-hidden="true"><?php _e( 'Tags' ); ?></span>
    867873                    <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
Note: See TracChangeset for help on using the changeset viewer.