WordPress.org

Make WordPress Core

Ticket #18314: rwi-colors-rtl-combine.diff

File rwi-colors-rtl-combine.diff, 7.9 KB (added by ryanimel, 7 years ago)

This patch combines the colors-classic.css with colors-classic-rtl.css, and same for the fresh colors. Also added some basic commenting.

  • wp-includes/script-loader.php

     
    398398
    399399        $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
    400400
    401         $rtl_styles = array( 'wp-admin', 'colors-fresh', 'colors-classic', 'ie', 'media', 'admin-bar', 'wplink' );
     401        $rtl_styles = array( 'wp-admin', 'ie', 'media', 'admin-bar', 'wplink' );
    402402        // Any rtl stylesheets that don't have a .dev version for ltr
    403         $no_suffix = array( 'farbtastic' );
     403        $no_suffix = array( 'farbtastic', 'colors-fresh', 'colors-classic' );
    404404
    405405        $styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110820' );
    406406
  • wp-admin/css/colors-classic.dev.css

     
     1/*------------------------------------------------------------------------------
     2
     3
     4Howdy! This is the CSS file that controls the
     5classic color style on the WordPress Dashboard.
     6
     7This file contains both LTR and RTL styles.
     8
     9
     10TABLE OF CONTENTS:
     11------------------
     12 1.0 - Left to Right Styles
     13 2.0 - Right to Left Styles
     14
     15
     16------------------------------------------------------------------------------*/
     17
     18
     19/*------------------------------------------------------------------------------
     20  1.0 - Left to Right Styles
     21------------------------------------------------------------------------------*/
     22
    123html,
    224.wp-dialog {
    325        background-color: #fff;
     
    20852107#fullscreen-topbar {
    20862108        border-bottom-color: #D1E5EE;
    20872109}
     2110
     2111
     2112/*------------------------------------------------------------------------------
     2113  2.0 - Right to Left Styles
     2114------------------------------------------------------------------------------*/
     2115
     2116.rtl .bar {
     2117        border-right-color: none;
     2118        border-left-color: #99d;
     2119}
     2120
     2121.rtl .post-com-count {
     2122        background-image: url(../images/bubble_bg-rtl.gif);
     2123}
     2124
     2125.rtl #user_info_arrow {
     2126        background: transparent url(../images/arrows-vs.png) no-repeat 0 5px;
     2127}
     2128
     2129.rtl #user_info:hover #user_info_arrow,
     2130.rtl #user_info.active #user_info_arrow {
     2131        background: transparent url(../images/arrows-dark-vs.png) no-repeat 0 5px;
     2132}
     2133
     2134/* Menu */
     2135.rtl #adminmenushadow,
     2136.rtl #adminmenuback {
     2137        background-image: url(../images/menu-shadow-rtl.png);
     2138        background-position: top left;
     2139}
     2140
     2141.rtl #adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle,
     2142.rtl #adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle {
     2143        background: transparent url(../images/arrows-dark-vs.png) no-repeat 8px 6px;
     2144}
     2145
     2146.rtl #adminmenu .wp-has-submenu:hover .wp-menu-toggle,
     2147.rtl #adminmenu .wp-menu-open .wp-menu-toggle {
     2148        background: transparent url(../images/arrows-vs.png) no-repeat 8px 6px;
     2149}
     2150
     2151.rtl #adminmenu .wp-submenu .wp-submenu-head {
     2152        border-right-color: none;
     2153        border-left-color: #d1e5ee;
     2154}
     2155
     2156.rtl .folded #adminmenu .wp-submenu-wrap {
     2157        -moz-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 );
     2158        -webkit-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 );
     2159        box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 );
     2160}
     2161
     2162/* Collapse Menu Button */
     2163.rtl #collapse-button div {
     2164        background-position: 0 -108px;
     2165}
     2166
     2167.rtl .folded #collapse-button div {
     2168        background-position: 0 -72px;
     2169}
     2170
     2171/* edit image */
     2172.rtl .meta-box-sortables .postbox:hover .handlediv {
     2173        background: transparent url(../images/arrows-vs.png) no-repeat 6px 7px;
     2174}
     2175
     2176.rtl .tablenav .tablenav-pages a {
     2177        border-color: #d1e5ee;
     2178        background: #eee url('../images/menu-bits-rtl-vs.gif?ver=20100610') repeat-x scroll right -379px;
     2179}
     2180
     2181.rtl #post-body .misc-pub-section {
     2182        border-right-color: none;
     2183        border-left-color: #d1e5ee;
     2184}
     2185
     2186.rtl #favorite-toggle {
     2187        background: transparent url(../images/arrows-vs.png) no-repeat 4px 2px;
     2188}
     2189
     2190.rtl #screen-meta a.show-settings,
     2191.toggle-arrow {
     2192        background: transparent url(../images/arrows-vs.png) no-repeat left 3px;
     2193}
     2194
     2195.rtl #screen-meta .screen-meta-active a.show-settings {
     2196        background: transparent url(../images/arrows-vs.png) no-repeat left -33px;
     2197}
     2198
     2199.rtl .sidebar-name-arrow {
     2200        background: transparent url(../images/arrows-vs.png) no-repeat 5px 9px;
     2201}
     2202.rtl .sidebar-name:hover .sidebar-name-arrow {
     2203        background: transparent url(../images/arrows-dark-vs.png) no-repeat 5px 9px;
     2204}
  • wp-admin/css/colors-fresh.dev.css

     
     1/*------------------------------------------------------------------------------
     2
     3
     4Howdy! This is the CSS file that controls the
     5fresh color style on the WordPress Dashboard.
     6
     7This file contains both LTR and RTL styles.
     8
     9
     10TABLE OF CONTENTS:
     11------------------
     12 1.0 - Left to Right Styles
     13 2.0 - Right to Left Styles
     14
     15
     16------------------------------------------------------------------------------*/
     17
     18
     19/*------------------------------------------------------------------------------
     20  1.0 - Left to Right Styles
     21------------------------------------------------------------------------------*/
     22
    123html,
    224.wp-dialog {
    325        background-color: #fff;
     
    17611783#fullscreen-topbar {
    17621784        border-bottom-color: #DFDFDF;
    17631785}
     1786
     1787
     1788/*------------------------------------------------------------------------------
     1789  2.0 - Right to Left Styles
     1790------------------------------------------------------------------------------*/
     1791
     1792.rtl .bar {
     1793        border-right-color: none;
     1794        border-left-color: #99d;
     1795}
     1796
     1797.rtl .post-com-count {
     1798        background-image: url(../images/bubble_bg-rtl.gif);
     1799}
     1800
     1801.rtl #user_info_arrow {
     1802        background: transparent url(../images/arrows.png) no-repeat 0 5px;
     1803}
     1804
     1805.rtl #user_info:hover #user_info_arrow,
     1806.rtl #user_info.active #user_info_arrow {
     1807        background: transparent url(../images/arrows-dark.png) no-repeat 0 5px;
     1808}
     1809
     1810/* Menu */
     1811.rtl #adminmenushadow,
     1812.rtl #adminmenuback {
     1813        background-image: url(../images/menu-shadow-rtl.png);
     1814        background-position: top left;
     1815}
     1816
     1817.rtl #adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle,
     1818.rtl #adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle {
     1819        background: transparent url(../images/arrows-dark.png) no-repeat 8px 6px;
     1820}
     1821
     1822.rtl #adminmenu .wp-has-submenu:hover .wp-menu-toggle,
     1823.rtl #adminmenu .wp-menu-open .wp-menu-toggle {
     1824        background: transparent url(../images/arrows.png) no-repeat 8px 6px;
     1825}
     1826
     1827.rtl #adminmenu .wp-submenu .wp-submenu-head {
     1828        border-right-color: none;
     1829        border-left-color: #dfdfdf;
     1830}
     1831
     1832.rtl .folded #adminmenu .wp-submenu-wrap {
     1833        -moz-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 );
     1834        -webkit-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 );
     1835        box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 );
     1836}
     1837
     1838/* Collapse Menu Button */
     1839.rtl #collapse-button div {
     1840        background-position: 0 -108px;
     1841}
     1842
     1843.rtl .folded #collapse-button div {
     1844        background-position: 0 -72px;
     1845}
     1846
     1847/* Edit Image */
     1848.rtl .meta-box-sortables .postbox:hover .handlediv {
     1849        background: transparent url(../images/arrows.png) no-repeat 6px 7px;
     1850}
     1851
     1852.rtl .tablenav .tablenav-pages a {
     1853        border-color: #e3e3e3;
     1854        background: #eee url('../images/menu-bits-rtl.gif?ver=20100610') repeat-x scroll right -379px;
     1855}
     1856
     1857.rtl #post-body .misc-pub-section {
     1858        border-right-color: none;
     1859        border-left-color: #eee;
     1860}
     1861
     1862.rtl #favorite-toggle {
     1863        background: transparent url(../images/arrows.png) no-repeat 4px 2px;
     1864}
     1865
     1866.rtl #screen-meta a.show-settings,
     1867.toggle-arrow {
     1868        background: transparent url(../images/arrows.png) no-repeat left 3px;
     1869}
     1870
     1871.rtl #screen-meta .screen-meta-active a.show-settings {
     1872        background: transparent url(../images/arrows.png) no-repeat left -33px;
     1873}
     1874
     1875.rtl .sidebar-name-arrow {
     1876        background: transparent url(../images/arrows.png) no-repeat 5px 9px;
     1877}
     1878
     1879.rtl .sidebar-name:hover .sidebar-name-arrow {
     1880        background: transparent url(../images/arrows-dark.png) no-repeat 5px 9px;
     1881}
     1882 No newline at end of file