Make WordPress Core

Changeset 26230


Ignore:
Timestamp:
11/15/2013 10:22:43 PM (13 years ago)
Author:
nacin
Message:

More dash updates.

  • Shuffle around some pixels.
  • Rename some things that weren't caught in [26220].
  • Revert default-widgets.php change from [26144].

props lessbloat.
see #25824.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/wp-admin.css

    r26229 r26230  
    25792579
    25802580.postbox .inside {
    2581         margin: 12px 0;
     2581        margin: 11px 0;
    25822582        position: relative;
    25832583}
    … …  
    26542654        overflow: auto;
    26552655        margin: 16px 0;
    2656         padding: 23px 10px 12px;
     2656        padding: 23px 10px 0;
    26572657        font-size: 13px;
    26582658        line-height: 2.1em;
    … …  
    26842684        top: 5px;
    26852685        right: 10px;
    2686         padding: 8px 3px;
     2686        padding: 20px 15px 0 3px;
    26872687        font-size: 13px;
    26882688        text-decoration: none;
    … …  
    28152815/* Dashboard WordPress news */
    28162816
    2817 #dashboard_rss .inside {
     2817#dashboard_primary .inside {
    28182818        margin: 0;
    28192819        padding: 0;
    28202820}
    28212821
    2822 #dashboard_rss .widget-loading,
    2823 #dashboard_rss .dashboard-widget-control-form {
     2822#dashboard_primary .widget-loading,
     2823#dashboard_primary .dashboard-widget-control-form {
    28242824        padding: 12px 12px 0;
    28252825}
    … …  
    28422842}
    28432843
    2844 .rss-widget {
     2844#dashboard_primary .rss-widget {
    28452845        border-bottom: 1px solid #eee;
    28462846        font-size: 13px;
    2847         padding: 8px 12px 12px;
    2848 }
    2849 
    2850 .rss-widget:last-child {
     2847        padding: 8px 12px 10px;
     2848}
     2849
     2850#dashboard_primary .rss-widget:last-child {
    28512851        border-bottom: none;
    2852         padding-bottom: 0;
    2853 }
    2854 
    2855 .rss-widget a {
     2852        padding-bottom: 8px;
     2853}
     2854
     2855#dashboard_primary .rss-widget a {
    28562856        font-weight: normal;
    28572857}
    28582858
    2859 .rss-widget span,
    2860 .rss-widget span.rss-date {
     2859#dashboard_primary .rss-widget span,
     2860#dashboard_primary .rss-widget span.rss-date {
    28612861        color: #bbb;
    28622862}
    28632863
    2864 .rss-widget span.rss-date {
     2864#dashboard_primary .rss-widget span.rss-date {
    28652865        margin-left: 12px;
    28662866}
    28672867
    2868 .rss-widget ul li {
     2868#dashboard_primary .rss-widget ul li {
    28692869        margin-bottom: 8px;
    28702870}
    … …  
    28902890
    28912891#dash-right-now .main {
    2892         padding: 0 12px;
     2892        padding: 0 12px 11px;
    28932893}
    28942894
    … …  
    29102910        color: #bfbbbb;
    29112911        background: #f5f5f5;
    2912         border-top-color: #dedede;
    2913         padding: 12px 12px 6px 12px;
    2914         border-top: 1px solid;
     2912        border-top: 1px solid #eee;
     2913        padding: 10px 12px 6px 12px;
    29152914}
    29162915
    … …  
    29702969/* Dashboard Quick Draft */
    29712970
     2971#dashboard_quick_press .inside {
     2972        margin: 0;
     2973        padding: 0;
     2974}
     2975
    29722976#dashboard_quick_press div.updated {
    29732977        margin-bottom: 10px;
    … …  
    29772981
    29782982#dashboard_quick_press form {
    2979         padding: 0 12px 1px 12px;
    29802983        overflow: hidden;
     2984        margin: 12px 12px 0;
    29812985}
    29822986
    29832987#dashboard_quick_press .drafts,
    29842988#dashboard_quick_press .easy-blogging {
    2985         padding: 8px 12px 0;
    2986 }
    2987 
    2988 #dashboard-widgets .postbox .inside {
    2989         margin: 10px 0;
    2990         padding: 0;
     2989        padding: 10px 0 0;
    29912990}
    29922991
    … …  
    30813080
    30823081#dashboard_quick_press .drafts h4 {
    3083         margin: 0 0 8px 0;
     3082        margin: 0 12px 8px;
    30843083        font-weight: normal;
    30853084}
    … …  
    30873086#dashboard_quick_press .drafts .view-all {
    30883087        float: right;
    3089         margin-top: 0;
    3090 }
    3091 
    3092 #dashboard_rss a.rsswidget {
     3088        margin: 0 12px 0 0;
     3089}
     3090
     3091#dashboard_primary a.rsswidget {
    30933092        font-weight: normal;
    30943093}
    30953094
    30963095#dashboard_quick_press .drafts ul {
    3097         margin: 0;
     3096        margin: 0 12px;
    30983097}
    30993098
    … …  
    31893188        border-top: 1px solid #eeeeee;
    31903189        margin-top: 0;
    3191         padding: 8px 12px 0 12px;
     3190        padding: 8px 12px 4px;
    31923191}
    31933192
    … …  
    31953194#published-posts .show-more {
    31963195        float: right;
     3196        margin-right: 12px;
    31973197}
    31983198
    … …  
    32203220        border-bottom: 1px solid #eee;
    32213221        overflow: hidden;
    3222         padding: 8px 0 0;
     3222        padding: 8px 0 4px;
    32233223}
    32243224
    … …  
    78337833.metabox-holder h3 {
    78347834        font-size: 14px;
    7835         padding: 7px 12px;
     7835        padding: 8px 12px;
    78367836        margin: 0;
    78377837        line-height: 1.4;
    … …  
    82778277
    82788278#title-wrap #title-prompt-text {
    8279         font-size: 1em;
     8279        font-size: 1.1em;
    82808280        padding: 5px 8px;
    82818281}
  • trunk/src/wp-admin/js/dashboard.js

    r26220 r26230  
    6363                var act = $('#quickpost-action'), t;
    6464                t = $('#quick-press').submit( function() {
    65                         $('#dashboard_quick_draft #publishing-action .spinner').show();
     65                        $('#dashboard_quick_press #publishing-action .spinner').show();
    6666                        $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true);
    6767
    6868                        $.post( t.attr( 'action' ), t.serializeArray(), function( data ) {
    6969                                // Replace the form, and prepend the published post.
    70                                 $('#dashboard_quick_draft .inside').html( data );
     70                                $('#dashboard_quick_press .inside').html( data );
    7171                                $('#quick-press').removeClass('initial-form');
    7272                                quickPressLoad();
    … …  
    7676
    7777                        function highlightLatestPost () {
    78                                 var latestPost = $('#draft-list li').first();
     78                                var latestPost = $('.drafts ul li').first();
    7979                                latestPost.css('background', '#fffbe5');
    8080                                setTimeout(function () {
  • trunk/src/wp-admin/post.php

    r26144 r26230  
    106106
    107107        if ( $error_msg )
    108                 return wp_dashboard_quick_draft( $error_msg );
     108                return wp_dashboard_quick_press( $error_msg );
    109109
    110110        $post = get_post( $_REQUEST['post_ID'] );
    … …  
    113113        // output the quickdraft dashboard widget
    114114        require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
    115         wp_dashboard_quick_draft();
     115        wp_dashboard_quick_press();
    116116        exit;
    117117        break;
  • trunk/src/wp-includes/default-widgets.php

    r26144 r26230  
    905905                        echo "<li>$title{$date}{$summary}{$author}</li>";
    906906                } else {
    907                         echo "<li><div class='rss-title-row'><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}</div>{$summary}{$author}</li>";
     907                        echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";
    908908                }
    909909        }
Note: See TracChangeset for help on using the changeset viewer.