Make WordPress Core

Changeset 28897


Ignore:
Timestamp:
06/29/2014 04:05:53 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Fix feature pointer positioning issues for both LTR and RTL.

fixes #28062.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r28747 r28897  
    19931993        self::print_js( 'wp360_revisions', '.misc-pub-section.misc-pub-revisions', array(
    19941994            'content' => $content,
    1995             'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center', 'my' => is_rtl() ? 'left' : 'right-14px' ),
     1995            'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center' ),
    19961996        ) );
    19971997    }
     
    20212021        if ( 'themes' === get_current_screen()->id ) {
    20222022            $selector = '.theme.active .customize';
    2023             $position = array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center', 'my' => is_rtl() ? 'right-13px' : '' );
     2023            $position = array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center' );
    20242024        } else {
    20252025            $selector = 'a[href="customize.php"]';
  • trunk/src/wp-includes/css/wp-pointer.css

    r28877 r28897  
    107107
    108108.wp-pointer-bottom {
     109    margin-top: -13px;
    109110    padding-bottom: 13px;
    110111}
     
    116117/* @noflip */
    117118.wp-pointer-right {
     119    margin-left: -13px;
    118120    padding-right: 13px;
    119121}
     
    140142}
    141143
    142 .wp-pointer-top .wp-pointer-arrow:before,
    143 .wp-pointer-undefined .wp-pointer-arrow:before {
    144     margin-left: -13px;
    145     margin-top: -11px;
     144.wp-pointer-top .wp-pointer-arrow-inner,
     145.wp-pointer-undefined .wp-pointer-arrow-inner {
     146    top: 1px;
     147    margin-left: -13px;
     148    margin-top: -13px;
    146149    border: 13px solid transparent;
    147150    border-bottom-color: #2ea2cc;
     
    156159}
    157160
    158 .wp-pointer-bottom .wp-pointer-arrow:before {
    159     margin-left: -13px;
    160     margin-top: -14px;
     161.wp-pointer-bottom .wp-pointer-arrow-inner {
     162    bottom: 1px;
     163    margin-left: -13px;
     164    margin-bottom: -13px;
    161165    border: 13px solid transparent;
    162166    border-top-color: #fff;
     
    172176}
    173177
    174 .wp-pointer-left .wp-pointer-arrow:before {
    175     margin-left: -14px;
     178/* @noflip */
     179.wp-pointer-left .wp-pointer-arrow-inner {
     180    left: 1px;
     181    margin-left: -13px;
    176182    margin-top: -13px;
    177183    border: 13px solid transparent;
     
    183189/* @noflip */
    184190.wp-pointer-right .wp-pointer-arrow {
    185     right:0;
     191    right: 0;
    186192    border-width: 13px 0 13px 13px;
    187193    border-left-color: #ccc;
    188194}
    189195
    190 .wp-pointer-right .wp-pointer-arrow:before {
    191     margin-left: -14px;
     196/* @noflip */
     197.wp-pointer-right .wp-pointer-arrow-inner {
     198    right: 1px;
     199    margin-right: -13px;
    192200    margin-top: -13px;
    193201    border: 13px solid transparent;
     
    195203    display: block;
    196204    content: ' ';
    197 }
    198 
    199 .rtl .wp-pointer-arrow:before {
    200     -webkit-transform: rotateY(180deg);
    201     -ms-transform:     rotateY(180deg);
    202     transform:         rotateY(180deg);
    203205}
    204206
Note: See TracChangeset for help on using the changeset viewer.