WordPress.org

Make WordPress Core

Changeset 28107


Ignore:
Timestamp:
04/13/2014 11:59:01 PM (6 years ago)
Author:
nacin
Message:

Fix feature pointer RTL placement.

props SergeyBiryukov, ocean90.
fixes #27778.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r28093 r28107  
    19791979        if ( 'themes' === get_current_screen()->id ) {
    19801980            $selector = '.theme.active .customize';
    1981             $position = array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center' );
     1981            $position = array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center', 'my' => is_rtl() ? 'right-13px' : '' );
    19821982        } else {
    19831983            $selector = 'a[href="customize.php"]';
    19841984            if ( is_rtl() ) {
    1985                 $position = array( 'edge' => 'right', 'align' => 'center-8px', 'my' => 'right-5px' );
     1985                $position = array( 'edge' => 'right', 'align' => 'center', 'my' => 'right-5px' );
    19861986            } else {
    1987                 $position = array( 'edge' => 'left', 'align' => 'center-8px', 'my' => 'left-5px' );
     1987                $position = array( 'edge' => 'left', 'align' => 'center', 'my' => 'left-5px' );
    19881988            }
    19891989        }
  • trunk/src/wp-includes/css/wp-pointer.css

    r27174 r28107  
    6767    font: normal 13px/1 'dashicons';
    6868    speak: none;
    69     margin: 2px 0;
     69    margin: 1px 0;
    7070    text-align: center;
    7171    -webkit-font-smoothing: antialiased !important;
     
    189189
    190190.wp-pointer-right .wp-pointer-arrow:before {
    191     margin-left: -14px;
     191    margin-left: -12px;
    192192    margin-top: -13px;
    193193    border: 13px solid transparent;
     
    195195    display: block;
    196196    content: ' ';
     197}
     198
     199.rtl .wp-pointer-arrow:before {
     200    -webkit-transform: rotateY(180deg);
     201    -ms-transform:     rotateY(180deg);
     202    transform:         rotateY(180deg);
    197203}
    198204
Note: See TracChangeset for help on using the changeset viewer.