Make WordPress Core

Changeset 6468


Ignore:
Timestamp:
12/22/2007 09:46:13 AM (19 years ago)
Author:
matt
Message:

First pass at some of the header/footer styles. Again, work in progress. A few menu item renames.

Location:
trunk/wp-admin
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r6026 r6468  
    4242<body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ); ?>">
    4343<div id="wphead">
    44 <h1><?php bloginfo('name'); ?> <span id="viewsite">(<a href="<?php echo get_option('home') . '/'; ?>"><?php _e('View site &raquo;') ?></a>)</span></h1>
     44<h1><?php bloginfo('name'); ?> <span id="viewsite"><a href="<?php echo get_option('home') . '/'; ?>"><?php _e('Visit Site') ?></a></span></h1>
    4545</div>
    4646<div id="user_info"><p><?php printf(__('Howdy, <strong>%s</strong>.'), $user_identity) ?> [<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>, <a href="profile.php"><?php _e('My Profile'); ?></a>] </p></div>
  • trunk/wp-admin/menu.php

    r6356 r6468  
    1616        $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php');
    1717
    18 $menu[15] = array(__('Comments'), 'edit_posts', 'edit-comments.php');
     18$awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
     19if ( 100 < $awaiting_mod )
     20        $awaiting_mod = '99+'; // to not blow out layout
     21$menu[15] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod'>$awaiting_mod</span>" ), 'edit_posts', 'edit-comments.php');
    1922$menu[20] = array(__('Blogroll'), 'manage_links', 'link-manager.php');
    20 $menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php');
     23$menu[25] = array(__('Design'), 'switch_themes', 'themes.php');
    2124$menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
    2225if ( current_user_can('edit_users') )
     
    2427else
    2528        $menu[35] = array(__('Profile'), 'read', 'profile.php');
    26 $menu[40] = array(__('Options'), 'manage_options', 'options-general.php');
     29$menu[40] = array(__('Settings'), 'manage_options', 'options-general.php');
    2730
    2831
  • trunk/wp-admin/wp-admin.css

    r6432 r6468  
    77/* For Win IE's eyes only */
    88
    9 body {
    10         border: none;
    11 }
    129a {
    13         border-bottom: 1px solid #69c;
    1410        color: #00019b;
    1511        text-decoration: none;
     
    6965}
    7066
     67.wrap {
     68        margin: 0;
     69        padding: 0;
     70        margin-left: 10px;
     71        margin-right: 25%;
     72}
     73
     74.wrap h2 {
     75        font: 24px Georgia, "Times New Roman", Times, serif;
     76        color: #666;
     77        border-bottom: 1px solid #dadada;
     78        padding: 0;
     79        margin: 0;
     80        padding-bottom: 10px;
     81}
     82
    7183.widefat {
    7284        width: 100%;
     
    125137
    126138body    {
    127         background: #f9fcfe;
     139        background: #fff;
    128140        color: #000;
    129141        margin: 0;
     
    167179        margin: 0;
    168180        padding: 0;
    169 }
    170 
    171 h2 {
    172         color: #333;
    173         font: normal 32px Georgia, "Times New Roman", Times, serif;
    174         margin: 5px 10px;
    175         background: url( images/heading-bg.gif ) repeat-x bottom;
    176181}
    177182
     
    423428}
    424429
    425 .wrap {
    426         background: #fff;
    427         border: 1px solid #ccc;
    428         clear: both;
    429         margin: 15px 5%;
    430         padding: 1em;
    431 }
     430
    432431
    433432.narrow {
     
    440439}
    441440
    442 .wrap h2 {
    443         margin: 0 0 .5em;
    444         clear: both;
    445 }
    446 
    447 * html .wrap h2 {
    448         margin-top: 1em;
    449 }
    450441
    451442table .vers {
     
    461452}
    462453
    463 #adminmenu {
    464         background: #83B4D8;
    465         border-top: 3px solid #448abd;
    466         margin: 0;
    467         padding: .2em .2em .3em 2em;
    468 }
    469 
    470 #adminmenu .current, #submenu .current {
    471         font-weight: bold;
    472         text-decoration: none;
    473 }
    474 
    475 #adminmenu a {
    476         color: #000;
    477         font-size: 14px;
    478         font-weight: normal;
    479         margin: 0;
    480         padding: 3px 5px;
    481         border-bottom: none;
    482 }
    483 
    484 #adminmenu a:hover, #adminmenu a.current {
    485         background: #ddeaf4;
    486         color: #333;
    487 }
    488 
    489 #adminmenu li, #submenu li {
    490         display: inline;
    491         line-height: 200%;
    492         list-style: none;
    493         text-align: center;
    494         white-space: nowrap;
    495 }
    496 
    497 #adminmenu a.current {
    498         background: #0d324f;
    499         border-right: 2px solid #4f96c8;
    500         border-top: 1px solid #96c0de;
    501         color: #fff;
    502         padding-bottom: 8px;
    503 }
    504 
    505 #submenu, #minisub {
    506         background: #0d324f;
    507         border-bottom: none;
    508         margin: 0;
    509         padding: 3px 2em 0 3em;
    510 }
    511 
    512 #minisub {
    513         height: 6px;
    514 }
    515 
    516 #submenu .current {
    517         background: #f9fcfe;
    518         border-top: 1px solid #045290;
    519         border-right: 2px solid #045290;
    520         color: #000;
    521 }
    522 
    523 #submenu a {
    524         border: none;
    525         color: #fff;
    526         font-size: 12px;
    527         padding: .3em .4em .4em;
    528 }
    529 
    530 #submenu a:hover {
    531         background: #ddeaf4;
    532         color: #393939;
    533 }
    534 
    535 #submenu li {
    536         line-height: 180%;
    537         height: 25px;
    538 }
    539454
    540455#categorydiv input, #poststatusdiv input, #commentstatusdiv input, #pingstatusdiv input {
     
    654569        height: 4em;
    655570        width: 100%;
    656 }
    657 
    658 #footer {
    659         clear: both;
    660         height: 35px;
    661         padding-left: 40px;
    662         margin: 15px 5%;
    663         background: url('images/logo-ghost.png') no-repeat top left;
    664 }
    665 
    666 #footer p {
    667         margin: 0;
    668         padding: 5px 0;
    669571}
    670572
     
    869771}
    870772
    871 #user_info {
    872         position: absolute;
    873         right: 1em;
    874         top: 0;
    875         color: #fff;
    876         font-size: .9em;
    877 }
    878 
    879 #user_info a {
    880         color: #fff;
    881 }
    882 
    883 #wphead {
    884         background: #14568a;
    885         padding: .8em 19em .8em 2em;
    886         color: #c3def1;
    887 }
    888 
    889 #wphead a {
    890         color: #fff;
    891 }
    892 
    893 #wphead h1 {
    894         font-size: 2.5em;
    895         font-weight: normal;
    896         letter-spacing: -.05em;
    897         margin: 0;
    898         font-family: Georgia, "Times New Roman", Times, serif;
    899 }
    900 
    901 #wphead h1 span#viewsite {
    902         font-size: .4em;
    903         letter-spacing: 0;
    904 }
    905 
    906773#zeitgeist {
    907774        background: #eee;
     
    13901257        text-decoration:underline;
    13911258}
     1259
     1260/* Admin Header */
     1261
     1262#user_info {
     1263        position: absolute;
     1264        right: 25%;
     1265        top: 10px;
     1266        color: #fff;
     1267        font-size: 12px;
     1268}
     1269
     1270#user_info p {
     1271        margin: 0;
     1272        padding: 0;
     1273}
     1274
     1275#user_info a {
     1276        color: #fff;
     1277}
     1278
     1279#wphead {
     1280        border-top: 35px solid #464646;
     1281        background: #e4f2fd;
     1282}
     1283
     1284#wphead #viewsite {
     1285        position: absolute;
     1286        margin-top: 8px;
     1287        margin-left: 10px;
     1288}
     1289#wphead #viewsite a {
     1290        background-color: #c6d9e9;
     1291        font: 14px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
     1292        padding: 6px;
     1293        display: block;
     1294        -moz-border-radius: 2px;
     1295        color: #246;
     1296        letter-spacing: normal;
     1297}
     1298#wphead h1 {
     1299        font: normal 36px Georgia, "Times New Roman", Times, serif;
     1300        color: #555;
     1301        letter-spacing: -.03em;
     1302        padding: 15px 15px 18px;
     1303        margin: 0;
     1304}
     1305
     1306#adminmenu {
     1307        margin: 0;
     1308        list-style: none;
     1309        background: #e4f2fd;
     1310        border-bottom: 1px solid #c6d9e9;
     1311        padding-left: 10px;
     1312}
     1313
     1314#adminmenu a {
     1315        font-size: 16px;
     1316        color: #2583ad;
     1317        padding: 6px 6px;
     1318        line-height: 200%;
     1319        border: 1px solid #e4f2fd;
     1320        border-bottom: 1px solid #c6d9e9;
     1321}
     1322
     1323#adminmenu a:hover, #adminmenu a.current, #adminmenu a.current:hover {
     1324        background: #fff;
     1325        color: #d54e21;
     1326        border: 1px solid #c6d9e9;
     1327        font-weight: bold;
     1328        -moz-border-radius-topleft: 3px;
     1329        -moz-border-radius-topright: 3px;
     1330        border-bottom: 1px solid #fff;
     1331}
     1332
     1333#adminmenu a:hover {
     1334        border-bottom: 1px solid #c6d9e9;
     1335        font-weight: normal;
     1336}
     1337
     1338#adminmenu li, #submenu li {
     1339        display: inline;
     1340        line-height: 200%;
     1341        list-style: none;
     1342        text-align: center;
     1343        white-space: nowrap;
     1344}
     1345
     1346#adminmenu #awaiting-mod {
     1347        color: #fff;
     1348        font-size: 10px;
     1349        width: 23px;
     1350        position: absolute;
     1351        margin-left: -15px;
     1352        margin-top: -13px;
     1353        background-image: url(images/comment-pill.gif);
     1354        background-position: 0 10px;
     1355        background-repeat: no-repeat;
     1356}
     1357
     1358#submenu {
     1359        margin: 0;
     1360        list-style: none;
     1361        padding: 12px 0 15px 0;
     1362}
     1363
     1364#submenu a {
     1365        font-size: 14px;
     1366        color: #2583ad;
     1367        padding: 0 0 8px 17px;
     1368}
     1369
     1370#submenu a.current, #submenu a:hover {
     1371        color: #d54e21;
     1372}
     1373
     1374#minisub { /* for empty submenus */
     1375        height: 15px;
     1376}
     1377
     1378/* Admin Footer */
     1379
     1380#footer {
     1381        clear: both;
     1382        height: 65px;
     1383        padding: 10px 0 0 65px;
     1384        margin: 0;
     1385        background: #464646 url('images/logo-ghost.png') no-repeat 20px 10px;
     1386        color: #999;
     1387}
     1388
     1389#footer a {
     1390        color: #fff;
     1391}
     1392
     1393#footer p {
     1394        margin: 0;
     1395        padding: 5px 0;
     1396}
Note: See TracChangeset for help on using the changeset viewer.