Make WordPress Core

Ticket #17324: 17324.header.diff

File 17324.header.diff, 14.1 KB (added by iammattthomas, 15 years ago)

Patch for header updates I've been working on with Jane today. Smaller site title, larger page title, adjusted style for user-info dropdown, new add-new-h2 style, and removed button class from all add-new-h2 links.

  • users.php

     
    360360<?php
    361361echo esc_html( $title );
    362362if ( current_user_can( 'create_users' ) ) { ?>
    363         <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
     363        <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
    364364<?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
    365         <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
     365        <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
    366366<?php }
    367367
    368368if ( $usersearch )
  • upload.php

     
    160160
    161161<div class="wrap">
    162162<?php screen_icon(); ?>
    163 <h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php
     163<h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php
    164164if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
    165165        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
    166166</h2>
  • network/users.php

     
    7474        <?php screen_icon(); ?>
    7575        <h2><?php esc_html_e( 'Users' );
    7676        if ( current_user_can( 'create_users') ) : ?>
    77                 <a href="<?php echo network_admin_url('user-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
     77                <a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
    7878        endif;
    7979       
    8080        if ( !empty( $usersearch ) )
  • network/themes.php

     
    199199
    200200<div class="wrap">
    201201<?php screen_icon('themes'); ?>
    202 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
     202<h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
    203203if ( $s )
    204204        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
    205205</h2>
  • network/sites.php

     
    102102<h2><?php _e('Sites') ?>
    103103<?php echo $msg; ?>
    104104<?php if ( current_user_can( 'create_sites') ) : ?>
    105         <a href="<?php echo network_admin_url('site-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
     105        <a href="<?php echo network_admin_url('site-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
    106106<?php endif; ?>
    107107
    108108<?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) {
  • plugins.php

     
    387387<?php screen_icon(); ?>
    388388<h2><?php echo esc_html( $title );
    389389if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
    390 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
     390<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
    391391<?php }
    392392if ( $s )
    393393        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
  • edit.php

     
    190190?>
    191191<div class="wrap">
    192192<?php screen_icon(); ?>
    193 <h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
     193<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
    194194if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
    195195        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
    196196</h2>
  • css/global.dev.css

     
    525525        text-shadow: rgba(255,255,255,1) 0 1px 0;
    526526}
    527527.wrap h2 {
    528         font-size: 20px;
    529         padding: 7px 15px 3px 0;
    530         line-height: 28px;
     528        font-size: 23px;
     529        padding: 9px 15px 4px 0;
     530        line-height: 29px;
    531531}
    532532.subtitle {
    533533        font-size: 14px;
    534534}
    535535.wrap .add-new-h2 {
     536        font-family: Arial, "Bitstream Vera Sans", Helvetica, Verdana, sans-serif;
     537        margin-left: 4px;
     538        padding: 3px 8px;
    536539        position: relative;
    537         top: -2px;
    538         margin-left: 2px;
    539         font-family: Arial, "Bitstream Vera Sans", Helvetica, Verdana, sans-serif;
     540        top: -3px;
     541        -moz-border-radius: 3px;
     542        -khtml-border-radius: 3px;
     543        -webkit-border-radius: 3px;
     544        border-radius: 3px;
     545        text-decoration: none;
     546        font-size: 12px;
    540547}
    541548
    542549.wrap h2.long-header {
  • css/colors-fresh.dev.css

     
    178178.wrap h2 {
    179179        color: #464646;
    180180}
     181
     182.wrap .add-new-h2 {
     183        background: #f1f1f1;
     184}
     185
    181186.subtitle {
    182187        color: #999;
    183188}
     
    12891294}
    12901295
    12911296/* menu and screen icons */
    1292 #icon-index,
    12931297#adminmenu .menu-icon-dashboard div.wp-menu-image {
    12941298        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -61px -33px;
    12951299}
     
    13001304        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -61px -1px;
    13011305}
    13021306
    1303 #icon-edit,
    1304 #icon-post,
    13051307#adminmenu .menu-icon-post div.wp-menu-image {
    13061308        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -272px -33px;
    13071309}
     
    13111313        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -272px -1px;
    13121314}
    13131315
    1314 #icon-upload,
    13151316#adminmenu .menu-icon-media div.wp-menu-image {
    13161317        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -121px -33px;
    13171318}
     
    13211322        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -121px -1px;
    13221323}
    13231324
    1324 #icon-link,
    1325 #icon-link-manager,
    1326 #icon-link-category,
    13271325#adminmenu .menu-icon-links div.wp-menu-image {
    13281326        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -91px -33px;
    13291327}
     
    13331331        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -91px -1px;
    13341332}
    13351333
    1336 #icon-page,
    1337 #icon-edit-pages,
    13381334#adminmenu .menu-icon-page div.wp-menu-image {
    13391335        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -151px -33px;
    13401336}
     
    13441340        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -151px -1px;
    13451341}
    13461342
    1347 #icon-edit-comments,
    13481343#adminmenu .menu-icon-comments div.wp-menu-image {
    13491344        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -31px -33px;
    13501345}
     
    13551350        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -31px -1px;
    13561351}
    13571352
    1358 #icon-themes,
    13591353#adminmenu .menu-icon-appearance div.wp-menu-image {
    13601354        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -1px -33px;
    13611355}
     
    13651359        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -1px -1px;
    13661360}
    13671361
    1368 #icon-plugins,
    13691362#adminmenu .menu-icon-plugins div.wp-menu-image {
    13701363        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -181px -33px;
    13711364}
     
    13751368        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -181px -1px;
    13761369}
    13771370
    1378 #icon-users,
    1379 #icon-profile,
    1380 #icon-user-edit,
    13811371#adminmenu .menu-icon-users div.wp-menu-image {
    13821372        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -301px -33px;
    13831373}
     
    13871377        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -301px -1px;
    13881378}
    13891379
    1390 #icon-tools,
    1391 #icon-admin,
    13921380#adminmenu .menu-icon-tools div.wp-menu-image {
    13931381        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -211px -33px;
    13941382}
     
    14081396        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -241px -1px;
    14091397}
    14101398
    1411 #icon-ms-admin,
    14121399#adminmenu .menu-icon-site div.wp-menu-image {
    14131400        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -361px -33px;
    14141401}
     
    14171404#adminmenu .menu-icon-site.wp-has-current-submenu div.wp-menu-image {
    14181405        background: transparent url('../images/menu.png?ver=20100531') no-repeat scroll -361px -1px;
    14191406}
    1420 
    14211407/* end menu and screen icons */
    14221408
     1409/* Screen Icons */
     1410#icon-edit,
     1411#icon-post {
     1412        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -552px -5px;
     1413}
    14231414
     1415#icon-index {
     1416        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -137px -5px;
     1417}
     1418                 
     1419#icon-upload {
     1420        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -251px -5px;
     1421}
     1422                 
     1423#icon-link-manager,
     1424#icon-link,
     1425#icon-link-category {
     1426        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -190px -5px;
     1427}
     1428                 
     1429#icon-edit-pages,
     1430#icon-page {
     1431        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -312px -5px;
     1432}
     1433                 
     1434#icon-edit-comments {
     1435        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -72px -5px;
     1436}
     1437                 
     1438#icon-themes {
     1439        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -11px -5px;
     1440}
     1441                 
     1442#icon-plugins {
     1443        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -370px -5px;
     1444}
     1445                 
     1446#icon-users,
     1447#icon-profile,
     1448#icon-user-edit {
     1449        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -600px -5px;
     1450}
     1451                 
     1452#icon-tools,
     1453#icon-admin {
     1454        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -432px -5px;
     1455}
     1456                 
     1457#icon-options-general {
     1458        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -492px -5px;
     1459}
     1460                 
     1461#icon-ms-admin {
     1462        background: transparent url(../images/icons32.png?ver=20100531) no-repeat -659px -5px;
     1463}
     1464/* end screen icons */
     1465
     1466
    14241467/* Diff */
    14251468table.diff .diff-deletedline {
    14261469        background-color: #fdd;
  • css/wp-admin.dev.css

     
    8181
    8282.icon32 {
    8383        float: left;
    84         height: 28px;
    85         margin: 6px 1px 0 -5px;
    86         width: 28px;
     84        height: 34px;
     85        margin: 7px 8px 0 0;
     86        width: 36px;
    8787}
    8888
    8989.key-labels label {
     
    834834#user_info {
    835835        float: right;
    836836        font-size: 12px;
    837         line-height: 36px;
    838         height: 36px;
     837        line-height: 26px;
     838        height: 25px;
    839839        position: relative;
    840840        z-index: 49;
    841841        border-style: solid;
    842842        border-width: 0;
     843        margin-top: 3px;
    843844        padding: 0 2px 0 6px;
    844845}
    845846
    846847#user_info.active {
    847         border-width: 0 1px;
     848        border-width: 1px;
    848849        margin-right: -1px;
     850        margin-top: 2px;
     851        -moz-border-radius: 3px 3px 0 0;
     852        -webkit-border-top-right-radius: 3px;
     853        -webkit-border-top-left-radius: 3px;
     854        -khtml-border-top-right-radius: 3px;
     855        -khtml-border-top-left-radius: 3px;
     856        border-top-right-radius: 3px;
     857        border-top-left-radius: 3px;
    849858}
    850859
    851860#user_info p {
    852861        margin: 0;
    853862        padding: 0;
    854         line-height: 36px;
     863        line-height: 25px;
    855864        cursor: pointer;
    856865}
    857866
     
    867876}
    868877
    869878#user_info_arrow {
    870         height: 34px;
    871         width: 24px;
     879        height: 22px;
     880        width: 22px;
    872881        position: absolute;
    873         right: 1px;
    874         top: 4px;
     882        right: 3px;
     883        top: 0;
    875884        cursor: pointer;
    876885}
    877886
     
    879888        min-width: 100px;
    880889        width: 100%;
    881890        position: absolute;
    882         top: 36px;
     891        top: 25px;
    883892        right: 0;
    884893        padding: 0;
    885894        text-shadow: rgba(255,255,255,0.7) 0 1px 0;
     
    933942}
    934943
    935944#wphead {
    936         height: 36px;
     945        height: 32px;
    937946        margin-right: 15px;
     947        margin-left: 2px;
    938948}
    939949
    940950#wphead a,
     
    948958
    949959#header-logo {
    950960        float: left;
    951         margin: 9px 0;
     961        margin: 7px 0;
    952962        -webkit-user-select: none;
    953963        -moz-user-select: none;
    954964        -khtml-user-select: none;
     
    956966}
    957967
    958968#wphead h1 {
    959         font: normal 18px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
    960         padding: 7px 8px 5px;
     969        font: normal 16px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
     970        padding: 6px 8px 5px;
    961971        margin: 0;
    962972        float: left;
    963973}
     
    10571067}
    10581068
    10591069#screen-meta-links {
    1060         margin: 0 15px 0 0;
     1070        margin: 0 19px 0 0;
    10611071}
    10621072
    10631073#screen-meta .screen-reader-text {
     
    40654075}
    40664076
    40674077h2 .nav-tab {
    4068         padding: 2px 10px 3px;
     4078        padding: 4px 10px 6px;
    40694079        font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    40704080        font-weight: 200;
    40714081        font-size: 20px;
  • link-manager.php

     
    5959
    6060<div class="wrap nosubsub">
    6161<?php screen_icon(); ?>
    62 <h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
     62<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
    6363if ( !empty($_REQUEST['s']) )
    6464        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( stripslashes($_REQUEST['s']) ) ); ?>
    6565</h2>