WordPress.org

Make WordPress Core

Changeset 20400


Ignore:
Timestamp:
04/07/12 20:18:18 (2 years ago)
Author:
azaozz
Message:

Center the menu icons when the menu is folded. For proper display in RTL the width of .wp-menu-image has to be 30px. Props helenyhou, fixes #20382

Location:
trunk/wp-admin/css
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.dev.css

    r20367 r20400  
    14501450.icon16.icon-dashboard, 
    14511451#adminmenu .menu-icon-dashboard div.wp-menu-image { 
    1452     background-position: -60px -33px; 
     1452    background-position: -59px -33px; 
    14531453} 
    14541454 
     
    14561456#adminmenu .menu-icon-dashboard.wp-has-current-submenu div.wp-menu-image, 
    14571457#adminmenu .menu-icon-dashboard.current div.wp-menu-image { 
    1458     background-position: -60px -1px; 
     1458    background-position: -59px -1px; 
    14591459} 
    14601460 
    14611461.icon16.icon-post, 
    14621462#adminmenu .menu-icon-post div.wp-menu-image { 
    1463     background-position: -271px -33px; 
     1463    background-position: -269px -33px; 
    14641464} 
    14651465 
     
    14671467#adminmenu .menu-icon-post.wp-has-current-submenu div.wp-menu-image, 
    14681468#adminmenu .menu-icon-post.current div.wp-menu-image { 
    1469     background-position: -271px -1px; 
     1469    background-position: -269px -1px; 
    14701470} 
    14711471 
    14721472.icon16.icon-media, 
    14731473#adminmenu .menu-icon-media div.wp-menu-image { 
    1474     background-position: -120px -33px; 
     1474    background-position: -119px -33px; 
    14751475} 
    14761476 
     
    14781478#adminmenu .menu-icon-media.wp-has-current-submenu div.wp-menu-image, 
    14791479#adminmenu .menu-icon-media.current div.wp-menu-image { 
    1480     background-position: -120px -1px; 
     1480    background-position: -119px -1px; 
    14811481} 
    14821482 
    14831483.icon16.icon-links, 
    14841484#adminmenu .menu-icon-links div.wp-menu-image { 
    1485     background-position: -90px -33px; 
     1485    background-position: -89px -33px; 
    14861486} 
    14871487 
     
    14891489#adminmenu .menu-icon-links.wp-has-current-submenu div.wp-menu-image, 
    14901490#adminmenu .menu-icon-links.current div.wp-menu-image { 
    1491     background-position: -90px -1px; 
     1491    background-position: -89px -1px; 
    14921492} 
    14931493 
    14941494.icon16.icon-page, 
    14951495#adminmenu .menu-icon-page div.wp-menu-image { 
    1496     background-position: -150px -33px; 
     1496    background-position: -149px -33px; 
    14971497} 
    14981498 
     
    15001500#adminmenu .menu-icon-page.wp-has-current-submenu div.wp-menu-image, 
    15011501#adminmenu .menu-icon-page.current div.wp-menu-image { 
    1502     background-position: -150px -1px; 
     1502    background-position: -149px -1px; 
    15031503} 
    15041504 
    15051505.icon16.icon-comments, 
    15061506#adminmenu .menu-icon-comments div.wp-menu-image { 
    1507     background-position: -30px -33px; 
     1507    background-position: -29px -33px; 
    15081508} 
    15091509 
     
    15111511#adminmenu .menu-icon-comments.wp-has-current-submenu div.wp-menu-image, 
    15121512#adminmenu .menu-icon-comments.current div.wp-menu-image { 
    1513     background-position: -30px -1px; 
     1513    background-position: -29px -1px; 
    15141514} 
    15151515 
    15161516.icon16.icon-appearance, 
    15171517#adminmenu .menu-icon-appearance div.wp-menu-image { 
    1518     background-position: 0 -33px; 
     1518    background-position: 1px -33px; 
    15191519} 
    15201520 
     
    15221522#adminmenu .menu-icon-appearance.wp-has-current-submenu div.wp-menu-image, 
    15231523#adminmenu .menu-icon-appearance.current div.wp-menu-image { 
    1524     background-position: 0 -1px; 
     1524    background-position: 1px -1px; 
    15251525} 
    15261526 
    15271527.icon16.icon-plugins, 
    15281528#adminmenu .menu-icon-plugins div.wp-menu-image { 
    1529     background-position: -180px -33px; 
     1529    background-position: -179px -33px; 
    15301530} 
    15311531 
     
    15331533#adminmenu .menu-icon-plugins.wp-has-current-submenu div.wp-menu-image, 
    15341534#adminmenu .menu-icon-plugins.current div.wp-menu-image { 
    1535     background-position: -180px -1px; 
     1535    background-position: -179px -1px; 
    15361536} 
    15371537 
     
    15491549.icon16.icon-tools, 
    15501550#adminmenu .menu-icon-tools div.wp-menu-image { 
    1551     background-position: -210px -33px; 
     1551    background-position: -209px -33px; 
    15521552} 
    15531553 
     
    15551555#adminmenu .menu-icon-tools.wp-has-current-submenu div.wp-menu-image, 
    15561556#adminmenu .menu-icon-tools.current div.wp-menu-image { 
    1557     background-position: -210px -1px; 
     1557    background-position: -209px -1px; 
    15581558} 
    15591559 
    15601560.icon16.icon-settings, 
    15611561#adminmenu .menu-icon-settings div.wp-menu-image { 
    1562     background-position: -240px -33px; 
     1562    background-position: -239px -33px; 
    15631563} 
    15641564 
     
    15661566#adminmenu .menu-icon-settings.wp-has-current-submenu div.wp-menu-image, 
    15671567#adminmenu .menu-icon-settings.current div.wp-menu-image { 
    1568     background-position: -240px -1px; 
     1568    background-position: -239px -1px; 
    15691569} 
    15701570 
    15711571.icon16.icon-site, 
    15721572#adminmenu .menu-icon-site div.wp-menu-image { 
    1573     background-position: -360px -33px; 
     1573    background-position: -359px -33px; 
    15741574} 
    15751575 
     
    15771577#adminmenu .menu-icon-site.wp-has-current-submenu div.wp-menu-image, 
    15781578#adminmenu .menu-icon-site.current div.wp-menu-image { 
    1579     background-position: -360px -1px; 
     1579    background-position: -359px -1px; 
    15801580} 
    15811581/* end menu and screen icons */ 
  • trunk/wp-admin/css/colors-fresh.dev.css

    r20367 r20400  
    11411141.icon16.icon-dashboard, 
    11421142#adminmenu .menu-icon-dashboard div.wp-menu-image { 
    1143     background-position: -60px -33px; 
     1143    background-position: -59px -33px; 
    11441144} 
    11451145 
     
    11471147#adminmenu .menu-icon-dashboard.wp-has-current-submenu div.wp-menu-image, 
    11481148#adminmenu .menu-icon-dashboard.current div.wp-menu-image { 
    1149     background-position: -60px -1px; 
     1149    background-position: -59px -1px; 
    11501150} 
    11511151 
    11521152.icon16.icon-post, 
    11531153#adminmenu .menu-icon-post div.wp-menu-image { 
    1154     background-position: -271px -33px; 
     1154    background-position: -269px -33px; 
    11551155} 
    11561156 
     
    11581158#adminmenu .menu-icon-post.wp-has-current-submenu div.wp-menu-image, 
    11591159#adminmenu .menu-icon-post.current div.wp-menu-image { 
    1160     background-position: -271px -1px; 
     1160    background-position: -269px -1px; 
    11611161} 
    11621162 
    11631163.icon16.icon-media, 
    11641164#adminmenu .menu-icon-media div.wp-menu-image { 
    1165     background-position: -120px -33px; 
     1165    background-position: -119px -33px; 
    11661166} 
    11671167 
     
    11691169#adminmenu .menu-icon-media.wp-has-current-submenu div.wp-menu-image, 
    11701170#adminmenu .menu-icon-media.current div.wp-menu-image { 
    1171     background-position: -120px -1px; 
     1171    background-position: -119px -1px; 
    11721172} 
    11731173 
    11741174.icon16.icon-links, 
    11751175#adminmenu .menu-icon-links div.wp-menu-image { 
    1176     background-position: -90px -33px; 
     1176    background-position: -89px -33px; 
    11771177} 
    11781178 
     
    11801180#adminmenu .menu-icon-links.wp-has-current-submenu div.wp-menu-image, 
    11811181#adminmenu .menu-icon-links.current div.wp-menu-image { 
    1182     background-position: -90px -1px; 
     1182    background-position: -89px -1px; 
    11831183} 
    11841184 
    11851185.icon16.icon-page, 
    11861186#adminmenu .menu-icon-page div.wp-menu-image { 
    1187     background-position: -150px -33px; 
     1187    background-position: -149px -33px; 
    11881188} 
    11891189 
     
    11911191#adminmenu .menu-icon-page.wp-has-current-submenu div.wp-menu-image, 
    11921192#adminmenu .menu-icon-page.current div.wp-menu-image { 
    1193     background-position: -150px -1px; 
     1193    background-position: -149px -1px; 
    11941194} 
    11951195 
    11961196.icon16.icon-comments, 
    11971197#adminmenu .menu-icon-comments div.wp-menu-image { 
    1198     background-position: -30px -33px; 
     1198    background-position: -29px -33px; 
    11991199} 
    12001200 
     
    12021202#adminmenu .menu-icon-comments.wp-has-current-submenu div.wp-menu-image, 
    12031203#adminmenu .menu-icon-comments.current div.wp-menu-image { 
    1204     background-position: -30px -1px; 
     1204    background-position: -29px -1px; 
    12051205} 
    12061206 
    12071207.icon16.icon-appearance, 
    12081208#adminmenu .menu-icon-appearance div.wp-menu-image { 
    1209     background-position: 0 -33px; 
     1209    background-position: 1px -33px; 
    12101210} 
    12111211 
     
    12131213#adminmenu .menu-icon-appearance.wp-has-current-submenu div.wp-menu-image, 
    12141214#adminmenu .menu-icon-appearance.current div.wp-menu-image { 
    1215     background-position: 0 -1px; 
     1215    background-position: 1px -1px; 
    12161216} 
    12171217 
    12181218.icon16.icon-plugins, 
    12191219#adminmenu .menu-icon-plugins div.wp-menu-image { 
    1220     background-position: -180px -33px; 
     1220    background-position: -179px -33px; 
    12211221} 
    12221222 
     
    12241224#adminmenu .menu-icon-plugins.wp-has-current-submenu div.wp-menu-image, 
    12251225#adminmenu .menu-icon-plugins.current div.wp-menu-image { 
    1226     background-position: -180px -1px; 
     1226    background-position: -179px -1px; 
    12271227} 
    12281228 
     
    12401240.icon16.icon-tools, 
    12411241#adminmenu .menu-icon-tools div.wp-menu-image { 
    1242     background-position: -210px -33px; 
     1242    background-position: -209px -33px; 
    12431243} 
    12441244 
     
    12461246#adminmenu .menu-icon-tools.wp-has-current-submenu div.wp-menu-image, 
    12471247#adminmenu .menu-icon-tools.current div.wp-menu-image { 
    1248     background-position: -210px -1px; 
     1248    background-position: -209px -1px; 
    12491249} 
    12501250 
    12511251.icon16.icon-settings, 
    12521252#adminmenu .menu-icon-settings div.wp-menu-image { 
    1253     background-position: -240px -33px; 
     1253    background-position: -239px -33px; 
    12541254} 
    12551255 
     
    12571257#adminmenu .menu-icon-settings.wp-has-current-submenu div.wp-menu-image, 
    12581258#adminmenu .menu-icon-settings.current div.wp-menu-image { 
    1259     background-position: -240px -1px; 
     1259    background-position: -239px -1px; 
    12601260} 
    12611261 
    12621262.icon16.icon-site, 
    12631263#adminmenu .menu-icon-site div.wp-menu-image { 
    1264     background-position: -360px -33px; 
     1264    background-position: -359px -33px; 
    12651265} 
    12661266 
     
    12681268#adminmenu .menu-icon-site.wp-has-current-submenu div.wp-menu-image, 
    12691269#adminmenu .menu-icon-site.current div.wp-menu-image { 
    1270     background-position: -360px -1px; 
     1270    background-position: -359px -1px; 
    12711271} 
    12721272/* end menu and screen icons */ 
  • trunk/wp-admin/css/wp-admin.dev.css

    r20391 r20400  
    14111411 
    14121412.folded #adminmenu div.wp-menu-image { 
    1413     width: 32px; 
     1413    width: 30px; 
    14141414} 
    14151415 
Note: See TracChangeset for help on using the changeset viewer.