Make WordPress Core

Changeset 9934


Ignore:
Timestamp:
11/28/2008 04:33:35 AM (17 years ago)
Author:
azaozz
Message:

Hide actions in management tables, show on hover; improve comments table; fix "Configure" link position on dashboard, fixes #8386

Location:
trunk/wp-admin
Files:
8 edited

Legend:

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

    r9852 r9934  
    99
    1010<div class="clear"></div></div><!-- wpbody-content -->
    11 </div><!-- wpbody -->
     11<div class="clear"></div></div><!-- wpbody -->
    1212<div class="clear"></div></div><!-- wpcontent -->
    1313</div><!-- wpwrap -->
  • trunk/wp-admin/css/dashboard.css

    r9920 r9934  
    8080#dashboard-widgets h3 a {
    8181    text-decoration: underline;
    82     float: right;
    83     position: relative;
    84     right: 5px;
    85     top: -12px;
     82    position: absolute;
     83    right: 30px;
    8684}
    8785
     
    273271}
    274272
    275 #the-comment-list .comment-item p.comment-actions {
    276     margin: 3px 0 0 0;
     273#the-comment-list .comment-item p.row-actions {
     274    margin: 3px 0 0;
    277275    padding: 0;
    278276    font-size: 10px;
  • trunk/wp-admin/css/global.css

    r9918 r9934  
    328328
    329329.widefat td {
    330     padding: 5px 7px;
     330    padding: 7px 7px 5px;
    331331    vertical-align: top;
    332332}
     
    398398.wrap h2 {
    399399    font: italic normal normal 24px/29px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
    400     margin: 13px 0 0 0;
    401     padding: 0 15px 1px 0;
     400    margin: 0;
     401    padding: 15px 15px 3px 0;
    402402    line-height: 35px;
    403403    text-shadow: rgba(255,255,255,1) 0px 1px 0px;
  • trunk/wp-admin/css/ie-rtl.css

    r9687 r9934  
    5656    direction: rtl;
    5757}
    58 #dashboard_incoming_links ul li, #dashboard_secondary ul li, #dashboard_primary ul li, p.comment-actions {
     58#dashboard_incoming_links ul li,
     59#dashboard_secondary ul li,
     60#dashboard_primary ul li,
     61p.row-actions {
    5962    width: 100%;
    6063}
  • trunk/wp-admin/css/ie.css

    r9852 r9934  
    179179}
    180180/* end Inline Editor */
     181
     182* html .row-actions {
     183    visibility: visible;
     184}
     185
     186#dashboard-widgets h3 a {
     187    height: 20px;
     188    line-height: 20px;
     189}
    181190
    182191#titlediv #title {
  • trunk/wp-admin/includes/dashboard.php

    r9916 r9934  
    496496            <?php endif; // comment_type ?>
    497497            <blockquote><p><?php comment_excerpt(); ?></p></blockquote>
    498             <p class="comment-actions"><?php echo $actions_string; ?></p>
     498            <p class="row-actions"><?php echo $actions_string; ?></p>
    499499
    500500            <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
  • trunk/wp-admin/includes/template.php

    r9927 r9934  
    127127        $action_count = count($actions);
    128128        $i = 0;
     129        $edit .= '<div class="row-actions">';
    129130        foreach ( $actions as $action => $link ) {
    130131            ++$i;
     
    132133            $edit .= "<span class='$action'>$link$sep</span>";
    133134        }
     135        $edit .= '</div>';
    134136    } else {
    135137        $edit = $name;
     
    289291        $action_count = count($actions);
    290292        $i = 0;
     293        $edit .= '<div class="row-actions">';
    291294        foreach ( $actions as $action => $link ) {
    292295            ++$i;
     
    294297            $edit .= "<span class='$action'>$link$sep</span>";
    295298        }
     299        $edit .= '</div>';
    296300    } else {
    297301        $edit = $name;
     
    606610                    $action_count = count($actions);
    607611                    $i = 0;
     612                    $out .= '<div class="row-actions">';
    608613                    foreach ( $actions as $action => $link ) {
    609614                        ++$i;
     
    611616                        $out .= "<span class='$action'>$link$sep</span>";
    612617                    }
     618                    $out .= '</div>';
    613619                    $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
    614620                    $out .= '<div class="name">' . $qe_data->name . '</div>';
     
    13731379            $action_count = count($actions);
    13741380            $i = 0;
     1381            echo '<div class="row-actions">';
    13751382            foreach ( $actions as $action => $link ) {
    13761383                ++$i;
     
    13781385                echo "<span class='$action'>$link</span>$sep";
    13791386            }
     1387            echo '</div>';
    13801388
    13811389            get_inline_data($post);
     
    15561564            $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
    15571565        $action_count = count($actions);
     1566
    15581567        $i = 0;
     1568        echo '<div class="row-actions">';
    15591569        foreach ( $actions as $action => $link ) {
    15601570            ++$i;
     
    15621572            echo "<span class='$action'>$link$sep</span>";
    15631573        }
     1574        echo '</div>';
    15641575
    15651576        get_inline_data($post);
     
    17851796        $action_count = count($actions);
    17861797        $i = 0;
     1798        $edit .= '<div class="row-actions">';
    17871799        foreach ( $actions as $action => $link ) {
    17881800            ++$i;
     
    17901802            $edit .= "<span class='$action'>$link$sep</span>";
    17911803        }
     1804        $edit .= '</div>';
    17921805    } else {
    17931806        $edit = '<strong>' . $user_object->user_login . '</strong>';
     
    20092022
    20102023                    $i = 0;
     2024                    echo '<div class="row-actions">';
    20112025                    foreach ( $actions as $action => $link ) {
    20122026                        ++$i;
     
    20192033                        echo "<span class='$action'>$sep$link</span>";
    20202034                    }
     2035                    echo '</div>';
    20212036                }
    20222037
  • trunk/wp-admin/wp-admin.css

    r9932 r9934  
    725725
    726726.column-comment p {
    727     margin-top: 0;
     727    margin: 0.6em 0;
    728728}
    729729
     
    816816    position: absolute;
    817817    text-decoration: underline;
     818}
     819
     820.row-actions {
     821    visibility: hidden;
     822}
     823
     824tr:hover .row-actions,
     825div.comment-item:hover .row-actions {
     826    visibility: visible;
    818827}
    819828
     
    20112020
    20122021td.post-title p {
    2013     margin: 0;
     2022    margin: 6px 0;
    20142023}
    20152024
    20162025/* Global classes */
    20172026
    2018 .wp-hidden-children .wp-hidden-child { display: none; }
    2019 .ui-tabs-hide { display: none; }
     2027.wp-hidden-children .wp-hidden-child,
     2028.ui-tabs-hide {
     2029    display: none;
     2030}
    20202031
    20212032.commentlist .avatar {
     
    30983109}
    30993110
    3100 .fixed .comments .column-author,
    3101 #commentstatusdiv .fixed .column-date,
    3102 #commentstatusdiv .fixed .column-author {
     3111#commentstatusdiv .fixed .column-author,
     3112#comments-form .fixed .column-author,
     3113#commentstatusdiv .fixed .column-date {
    31033114    width: 20%;
    31043115}
     
    31163127    float: left;
    31173128    height: 36px;
    3118     margin: 0 6px 0 0;
     3129    margin: 12px 6px 0 0;
    31193130    width: 36px;
    31203131}
Note: See TracChangeset for help on using the changeset viewer.