WordPress.org

Make WordPress Core

Ticket #11817: nav-menu-initial-rtl.diff

File nav-menu-initial-rtl.diff, 3.1 KB (added by yoavf, 8 years ago)

RTL CSS for the nav-menu

  • wp-includes/script-loader.php

     
    440440
    441441        $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
    442442
    443         $rtl_styles = array( 'wp-admin', 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' );
     443        $rtl_styles = array( 'wp-admin', 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic', 'nav-menu' );
    444444        // Any rtl stylesheets that don't have a .dev version for ltr
    445445        $no_suffix = array( 'farbtastic' );
    446446
  • wp-admin/css/nav-menu-rtl.dev.css

    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: wp-admin/images/ico-arrow-rtl.png
    ___________________________________________________________________
    Added: svn:mime-type
       + application/octet-stream
    
     
     1.submitdelete { float: right; }
     2.save { float: left; }
     3
     4/* Button Secondary Actions */
     5.button-controls { float: right; }
     6.add-to-menu { float: left; }
     7
     8/* CSS for switching the main columns *//*
     9#menu-settings-column { clear: none; float: right; }
     10#menu-management #post-body { float: left; margin-right: -340px; margin-left: 0px; }
     11#menu-management #post-body-content { margin-right: 300px; margin-left: 0px; }
     12*/
     13
     14/* Custom Links */
     15#add-custom-link label span {  float: left; padding-left: 5px; padding-right: 0; }
     16#menu-item-url, #menu-item-name { float: left; }
     17
     18/* Listings */
     19
     20.list li .item-title input { margin-right: 0; margin-left: 3px; }
     21
     22.list li ul li .item-title  { margin-right: 14px; margin-left: 0; }
     23.list li ul li ul li .item-title  { margin-right: 28px; margin-left: 0; }
     24.list li ul li ul li ul li .item-title  { margin-right: 42px; margin-left: 0; }
     25.list li ul li ul li ul li ul li .item-title  { margin-right: 56px; margin-left: 0; }
     26.list li ul li ul li ul li ul li ul li .item-title  { margin-right: 70px; margin-left: 0; }
     27.list li ul li ul li ul li ul li ul li ul li .item-title  { margin-right: 84px; margin-left: 0; }
     28.list li ul li ul li ul li ul li ul li ul li ul li .item-title  { margin-right: 98px; margin-left: 0; }
     29.list li ul li ul li ul li ul li ul li ul li ul li ul li .item-title  { margin-right: 112px; margin-left: 0; }
     30
     31/* Menu */
     32
     33.menu li dl dt { padding-right:10px; }
     34
     35.menu li .item-title { background-image: url(../images/ico-arrow-rtl.png) ; background-position: right center; padding-right: 15px; padding-left: 0; }
     36.menu li ul li { margin-right: 20px; margin-left: 0;}
     37
     38
     39/* Menu Controls */
     40.item-type { padding-left: 10px; padding-right: 0; }
     41.item-controls { right: auto; left: 15px; }
     42 No newline at end of file