From ee9c9b86cf26d5b1e15c5d3bf3a732234595a693 Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 24 Oct 2008 18:25:46 +0000 Subject: [PATCH] New buttons and styling for all "management" pages git-svn-id: http://svn.automattic.com/wordpress/trunk@9328 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 13 ++-- wp-admin/css/colors-fresh.css | 78 +++++++++++++-------- wp-admin/css/global.css | 27 +++++--- wp-admin/edit-comments.php | 49 +++++++------- wp-admin/edit-link-categories.php | 12 ++-- wp-admin/edit-pages.php | 8 ++- wp-admin/edit-tags.php | 13 ++-- wp-admin/edit.php | 78 +++++++++++---------- wp-admin/images/button-grad.png | Bin 0 -> 230 bytes wp-admin/images/gray-grad.png | Bin 0 -> 213 bytes wp-admin/images/white-grad.png | Bin 0 -> 207 bytes wp-admin/includes/media.php | 4 +- wp-admin/includes/plugin-install.php | 4 +- wp-admin/link-manager.php | 45 ++++++------- wp-admin/plugins.php | 6 +- wp-admin/themes.php | 2 + wp-admin/upload.php | 79 +++++++++++----------- wp-admin/users.php | 6 +- wp-admin/wp-admin.css | 97 +++++++++++++++------------ 19 files changed, 284 insertions(+), 237 deletions(-) create mode 100644 wp-admin/images/button-grad.png create mode 100644 wp-admin/images/gray-grad.png create mode 100644 wp-admin/images/white-grad.png diff --git a/wp-admin/categories.php b/wp-admin/categories.php index decfe90e0a..d94900b526 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -148,14 +148,13 @@ if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> endif; ?>
-

+

- -
+

@@ -173,6 +172,8 @@ if( ! isset( $catsperpage ) || $catsperpage < 0 ) $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', + 'prev_text' => __('«'), + 'next_text' => __('»'), 'total' => ceil(wp_count_terms('category') / $catsperpage), 'current' => $pagenum )); @@ -181,7 +182,7 @@ if ( $page_links ) echo "
$page_links
"; ?> -
+
diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index b04906fcec..5c96e0fcfb 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -20,13 +20,20 @@ body > #upload-menu { border-bottom-color: #fff; } -div#current-widgets, #postcustomstuff table, #your-profile fieldset, -a.page-numbers, #rightnow, div.dashboard-widget, -#dashboard-widgets p.dashboard-widget-links, .widefat, +div#current-widgets, +#postcustomstuff table, +#your-profile fieldset, +#rightnow, +div.dashboard-widget, +#dashboard-widgets p.dashboard-widget-links, #replyrow #ed_reply_toolbar input { border-color: #ccc; } +.widefat { + border-color: #dfdfdf; +} + div.dashboard-widget-error { background-color: #c43; } @@ -73,7 +80,7 @@ strong .post-com-count span { background-color: #2583ad; } -#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary, +#post-body ul#category-tabs li.ui-tabs-selected, #quicktags, #login form .submit input, .search-box .button, #ed_reply_toolbar { background-color: #cee1ef !important; @@ -172,17 +179,6 @@ ul#widget-list li.widget-list-item h4.widget-title { color: #9a9a9a; } -.page-numbers { - background-color: #fff; - border-color: #fff; -} - -.page-numbers.current { - background-color: #328ab2; - border-color: #328ab2; - color: #fff; -} - .post-com-count { background-image: url(../images/bubble_bg.gif); color: #fff; @@ -211,8 +207,6 @@ ul#widget-list li.widget-list-item h4.widget-title { } .submit input, -.button, -.button-secondary, #login form .submit input, div.dashboard-widget-submit input, #edit-slug-buttons a.save { @@ -221,6 +215,29 @@ div.dashboard-widget-submit input, border-color: #80b5d0; } +.button { + border-color: #DCDCDC; + color: #464646; + text-shadow: #FFF 0 1px 0; +} + +.button-primary { + border-color: #21759B; + color: #FFF; + background: #21759B url(../images/button-grad.png) repeat-x scroll left top; +} + +.button-secondary { + border-color: #CFE1EF; + color: #464646; + text-shadow: #FFF, 0 1px 0; +} + +.button, +.button-secondary { + background: #f2f2f2 url(../images/white-grad.png) repeat-x scroll left top; +} + .button[disabled], .button:disabled { background-color: #999; } @@ -238,7 +255,12 @@ div.dashboard-widget-submit input, color: #d54e21; } -.button-secondary:hover, #login form .submit input:hover { +.button-primary:hover { + border-color: #156079; +} + +.button-secondary:hover, +#login form .submit input:hover { border-color: #328ab2; } @@ -305,10 +327,18 @@ div.dashboard-widget-submit input, border-bottom-color: #2583ad; } -.widefat td, .widefat th, div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li { +a.page-numbers { + border-bottom-color: #B8D3E2; +} + +div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li { border-bottom-color: #ccc; } +.widefat td, .widefat th { + border-color: #dfdfdf; +} + .widefat thead, .widefat tfoot, .thead, @@ -317,8 +347,8 @@ h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small, .find-box-head { - background-color: #464646; - color: #d7d7d7; + color: #333; + background: #dfdfdf url(../images/gray-grad.png) repeat-x scroll left top; } h3.dashboard-widget-title small a { @@ -334,12 +364,6 @@ h3.dashboard-widget-title small a:hover { color: #246; } -.wrap h2 { - border-bottom-color: #dadada; - color: #666; -} - - #adminmenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, .ui-sortable .postbox h3:hover span, a { color: #2583ad; } diff --git a/wp-admin/css/global.css b/wp-admin/css/global.css index 718396ad33..f0e25e7155 100644 --- a/wp-admin/css/global.css +++ b/wp-admin/css/global.css @@ -174,10 +174,16 @@ h6 { .widefat { border-width: 1px; border-style: solid; - border-collapse: collapse; + border-collapse: separate; + border-spacing: 0; width: 100%; clear: both; margin: 0; + -moz-border-radius: 4px; + -khtml-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + } .widefat a { @@ -202,7 +208,7 @@ h6 { } .widefat th { - padding: 9px 15px 6px 10px; + padding: 7px 15px 8px 10px; text-align: left; line-height: 1.3em; } @@ -210,6 +216,7 @@ h6 { .widefat th input { margin: 0 0 0 8px; padding: 0; + vertical-align: text-top; } .widefat .check-column { @@ -220,7 +227,7 @@ h6 { } .widefat tbody th.check-column { - padding: 8px 0 22px; + padding: 10px 0 22px; } /* th.check-column + th, th.check-column + td { @@ -232,6 +239,10 @@ th.check-column + th, th.check-column + td { text-align: center; } +.widefat th#comments { + vertical-align: middle; +} + .wrap, .updated, .error { margin: 0 15px; padding: 0; @@ -262,14 +273,10 @@ th.check-column + th, th.check-column + td { } .wrap h2 { - border-bottom-width: 1px; - border-bottom-style: solid; clear: both; - font: 24px Georgia, "Times New Roman", Times, serif; - margin: 5px 0 10px -4px; - padding: 0; - padding-bottom: 7px; - padding-right: 280px; + font: italic normal normal 24px/29px Georgia, "Times New Roman", Times, serif; + margin: 5px 0 10px; + padding: 8px 15px 4px 0; } .wrap h2.long-header { diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 7ae26e1114..39529f4406 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -151,33 +151,11 @@ unset($status_links); ?> -
-
-\n"; ?> - - -
-
-
@@ -199,6 +177,8 @@ $extra_comments = array_slice($_comments, $comments_per_page); $page_links = paginate_links( array( 'base' => add_query_arg( 'apage', '%#%' ), 'format' => '', + 'prev_text' => __('«'), + 'next_text' => __('»'), 'total' => ceil($total / $comments_per_page), 'current' => $page )); @@ -217,7 +197,7 @@ if ( $page_links ) echo "
$page_links
"; ?> -
+
+ +\n"; ?> + + + $page_links
"; ?> -
+
- +


@@ -101,6 +101,8 @@ if( ! isset( $catsperpage ) || $catsperpage < 0 ) $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', + 'prev_text' => __('«'), + 'next_text' => __('»'), 'total' => ceil(wp_count_terms('link_category') / $catsperpage), 'current' => $pagenum )); @@ -109,7 +111,7 @@ if ( $page_links ) echo "
$page_links
"; ?> -
+
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 09f4be6d8e..0037139430 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -168,7 +168,7 @@ endif; @@ -191,6 +191,8 @@ $num_pages = ceil(count($posts) / $per_page); $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', + 'prev_text' => __('«'), + 'next_text' => __('»'), 'total' => $num_pages, 'current' => $pagenum )); @@ -199,7 +201,7 @@ if ( $page_links ) echo "
$page_links
"; ?> -
+
diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 957538ec26..b346349a3b 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -143,14 +143,13 @@ $messages[6] = __('Tags deleted.'); ?> endif; ?>
-

+

-

-
+

@@ -168,6 +167,8 @@ if( ! isset( $tagsperpage ) || $tagsperpage < 0 ) $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', + 'prev_text' => __('«'), + 'next_text' => __('»'), 'total' => ceil(wp_count_terms('post_tag') / $tagsperpage), 'current' => $pagenum )); @@ -176,7 +177,7 @@ if ( $page_links ) echo "
$page_links
"; ?> -
+
diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 9bac0974fa..7da8c0835f 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -153,9 +153,44 @@ endif; ?> -
-
+ + +
+ +
+ + + + + + +
add_query_arg( 'paged', '%#%' ), + 'format' => '', + 'prev_text' => __('«'), + 'next_text' => __('»'), + 'total' => $wp_query->max_num_pages, + 'current' => $_GET['paged'] +)); + +?> + +
+ + + + +posts WHERE post_type = 'post' ORDER BY post_date DESC"; @@ -196,43 +231,6 @@ do_action('restrict_manage_posts'); - -
- -
- -
- -
- - - - - - -
- add_query_arg( 'paged', '%#%' ), - 'format' => '', - 'total' => $wp_query->max_num_pages, - 'current' => $_GET['paged'] -)); - -?> - -
- - -
@@ -258,7 +256,7 @@ if ( $page_links ) echo "
$page_links
"; ?> -
+
+ +

+ +
+ +
+
+ +
+ + -
- \n"; @@ -119,27 +136,7 @@ echo $select_order; ?> -
-

-
- -
-
- -
-
- -
- -

@@ -265,7 +262,7 @@ if ( $links ) {
-
+
@@ -342,7 +342,7 @@ function print_plugins_table($plugins, $context = '') {
-
+
diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 8001472d01..09e8be0859 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -53,6 +53,8 @@ $start = $offset = ( $page - 1 ) * $per_page; $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ) . '#themenav', 'format' => '', + 'prev_text' => __('«'), + 'next_text' => __('»'), 'total' => ceil($theme_total / $per_page), 'current' => $page )); diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 81cd2859c4..10862576b3 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -216,8 +216,44 @@ unset($type_links); ?> -
- + + + + +
+
+max_num_pages; + +$page_links = paginate_links( array( + 'base' => add_query_arg( 'paged', '%#%' ), + 'format' => '', + 'prev_text' => __('«'), + 'next_text' => __('»'), + 'total' => $page_links_total, + 'current' => $_GET['paged'] +)); + +if ( $page_links ) + echo "
$page_links
"; +?> + +
+ + + + posts WHERE post_type = 'attachment' ORDER BY post_date DESC"; @@ -251,43 +287,6 @@ foreach ($arc_result as $arc_row) { -
- -
- -
- -
-
-max_num_pages; - -$page_links = paginate_links( array( - 'base' => add_query_arg( 'paged', '%#%' ), - 'format' => '', - 'total' => $page_links_total, - 'current' => $_GET['paged'] -)); - -if ( $page_links ) - echo "
$page_links
"; -?> - -
- - - @@ -394,7 +393,7 @@ if ( $page_links ) echo "
$page_links
"; ?> -
+
@@ -329,8 +329,6 @@ unset($role_links);
-
- search_errors ) ) : ?>
    @@ -383,7 +381,7 @@ foreach ( $wp_user_search->get_results() as $userid ) {
    page_links(); ?>
    -
    +