From 7a1db035a2cfe0d8de7f79ed5f291cdfc3a7b619 Mon Sep 17 00:00:00 2001
From: ryan
Date: Fri, 14 Mar 2008 23:58:31 +0000
Subject: [PATCH] Reduce dependency on inline style. Props mdawaffe. fixes
#6228
git-svn-id: http://svn.automattic.com/wordpress/trunk@7304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/categories.php | 16 ++++++++--------
wp-admin/comment.php | 2 +-
wp-admin/css/global.css | 7 ++++++-
wp-admin/css/theme-editor.css | 24 +++++++++++++++++++++++-
wp-admin/edit-attachment-rows.php | 4 ++--
wp-admin/edit-comments.php | 11 ++++++-----
wp-admin/edit-form-advanced.php | 2 +-
wp-admin/edit-form-comment.php | 2 +-
wp-admin/edit-form.php | 2 +-
wp-admin/edit-link-categories.php | 12 ++++++------
wp-admin/edit-link-form.php | 2 +-
wp-admin/edit-page-form.php | 2 +-
wp-admin/edit-pages.php | 8 ++++----
wp-admin/edit-post-rows.php | 2 +-
wp-admin/edit-tags.php | 12 ++++++------
wp-admin/edit.php | 6 +++---
wp-admin/includes/media.php | 6 +++---
wp-admin/includes/template.php | 18 +++++++++---------
wp-admin/link-import.php | 4 ++--
wp-admin/link-manager.php | 10 +++++-----
wp-admin/options-writing.php | 2 +-
wp-admin/plugin-editor.php | 14 +++++++-------
wp-admin/plugins.php | 8 ++++----
wp-admin/sidebar.php | 2 +-
wp-admin/theme-editor.php | 18 +++++++++---------
wp-admin/upload.php | 8 ++++----
wp-admin/user-edit.php | 2 +-
wp-admin/users.php | 10 +++++-----
wp-admin/wp-admin.css | 6 +++++-
29 files changed, 127 insertions(+), 95 deletions(-)
diff --git a/wp-admin/categories.php b/wp-admin/categories.php
index 76433192b..e51ad2212 100644
--- a/wp-admin/categories.php
+++ b/wp-admin/categories.php
@@ -130,27 +130,27 @@ endif; ?>
-
+
diff --git a/wp-admin/comment.php b/wp-admin/comment.php
index 6b3438ee2..3ed3b8287 100644
--- a/wp-admin/comment.php
+++ b/wp-admin/comment.php
@@ -79,7 +79,7 @@ if ( 'spam' == $_GET['dt'] ) {
diff --git a/wp-admin/css/global.css b/wp-admin/css/global.css
index 5bd9e2fcc..d4b6f721b 100644
--- a/wp-admin/css/global.css
+++ b/wp-admin/css/global.css
@@ -27,9 +27,10 @@ textarea, input, select {
}
.alignleft { float: left; }
-
.alignright { float: right; }
+.textleft { text-align: left; }
+.textright { text-align: right; }
.clear { clear: both; height: 2px; }
@@ -82,6 +83,10 @@ textarea, input, select {
width: 3%;
}
+.widefat .num {
+ text-align: center;
+}
+
.wrap, .updated, .error {
margin: 0;
margin-left: 15px;
diff --git a/wp-admin/css/theme-editor.css b/wp-admin/css/theme-editor.css
index eaaa946fd..2c59e97b8 100644
--- a/wp-admin/css/theme-editor.css
+++ b/wp-admin/css/theme-editor.css
@@ -18,6 +18,14 @@
margin: 0;
}
+h3#bordertitle {
+ margin-bottom: 10px;
+}
+
+#templateside h4 {
+ margin-bottom: 0px;
+}
+
#templateside ol, #templateside ul {
list-style: none;
margin: .5em;
@@ -35,10 +43,24 @@
bottom: 25px;
}
+#themeselector select {
+ margin: 0;
+ padding: 0;
+}
+
.nonessential {
font-size: small;
}
.highlight {
padding: 1px;
-}
\ No newline at end of file
+}
+
+div.bordertitle h2 {
+ border: none;
+ padding-bottom: 0px;
+}
+
+div.tablenav {
+ margin-right: 210px;
+}
diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php
index 8eb90660f..2a1ab994d 100644
--- a/wp-admin/edit-attachment-rows.php
+++ b/wp-admin/edit-attachment-rows.php
@@ -33,7 +33,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
case 'cb':
?>
- |
+ |
$column_display_name) {
case 'comments':
?>
-
+ |
ID );
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php
index b5dc2143f..4d237e03c 100644
--- a/wp-admin/edit-comments.php
+++ b/wp-admin/edit-comments.php
@@ -162,7 +162,7 @@ if ( $page_links )
echo " $page_links ";
?>
-
+
@@ -175,17 +175,18 @@ if ( $page_links )
-
+
+
-
+
- |
+ |
|
|
|
@@ -236,7 +237,7 @@ if ($comments) {
if ( $page_links )
echo "$page_links ";
?>
-
+
diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
index b8c9b3d88..9eb7a6daf 100644
--- a/wp-admin/edit-form-advanced.php
+++ b/wp-admin/edit-form-advanced.php
@@ -133,7 +133,7 @@ if ($post_ID) {
-
+
post_status, array('publish', 'future') ) || 0 == $post_ID ) {
?>
diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php
index 0cc4915b4..d10cf34a6 100644
--- a/wp-admin/edit-form-comment.php
+++ b/wp-admin/edit-form-comment.php
@@ -51,7 +51,7 @@ $time = mysql2date(get_option('time_format'), $comment->comment_date);
-
+
comment_ID", 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "";
?>
diff --git a/wp-admin/edit-form.php b/wp-admin/edit-form.php
index 0f939f77d..d0713e951 100644
--- a/wp-admin/edit-form.php
+++ b/wp-admin/edit-form.php
@@ -58,7 +58,7 @@ edCanvas = document.getElementById('content');
-
+
-
+
@@ -81,15 +81,15 @@ if ( $page_links )
echo " $page_links ";
?>
-
-
+
@@ -124,7 +124,7 @@ if ( $categories ) {
-
+
@@ -132,7 +132,7 @@ if ( $categories ) {
if ( $page_links )
echo " $page_links ";
?>
-
+
diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php
index df0e794bd..843a9ff68 100644
--- a/wp-admin/edit-link-form.php
+++ b/wp-admin/edit-link-form.php
@@ -52,7 +52,7 @@ function xfn_check($class, $value = '', $deprecated = '') {
-
+
link_name )) . "') ) { return true;}return false;\">" . __('Delete link') . "";
diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php
index 321a46355..981daeca4 100644
--- a/wp-admin/edit-page-form.php
+++ b/wp-admin/edit-page-form.php
@@ -111,7 +111,7 @@ if ($post_ID) {
-
+
post_status, array('publish', 'future') ) || 0 == $post_ID ) {
?>
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php
index 71fe7a9ac..b1123598a 100644
--- a/wp-admin/edit-pages.php
+++ b/wp-admin/edit-pages.php
@@ -117,15 +117,15 @@ endif;
-
-
+
-
+
$column_display_name) {
case 'comments':
?>
-
+ |
ID );
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php
index fe6b89f73..38e1ee628 100644
--- a/wp-admin/edit-tags.php
+++ b/wp-admin/edit-tags.php
@@ -122,7 +122,7 @@ endif; ?>
-
+
@@ -144,15 +144,15 @@ if ( $page_links )
echo " $page_links ";
?>
-
-
+
@@ -173,7 +173,7 @@ $count = tag_rows( $pagenum, $tagsperpage, $searchterms );
-
+
@@ -181,7 +181,7 @@ $count = tag_rows( $pagenum, $tagsperpage, $searchterms );
if ( $page_links )
echo " $page_links ";
?>
-
+
diff --git a/wp-admin/edit.php b/wp-admin/edit.php
index 21824db68..80346b188 100644
--- a/wp-admin/edit.php
+++ b/wp-admin/edit.php
@@ -134,7 +134,7 @@ if ( $page_links )
echo "$page_links ";
?>
-
-
+
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index b43c2daba..94dff14aa 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -823,7 +823,7 @@ jQuery(function($){
-
+
$page_links";
?>
-
+
posts WHERE post_type = 'attachment' ORDER BY post_date DESC";
@@ -1024,7 +1024,7 @@ foreach ($arc_result as $arc_row) {
-
+
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 9e78d9304..0b963781e 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -56,7 +56,7 @@ function _cat_row( $category, $level, $name_override = false ) {
| |
$edit |
$category->description |
- $posts_count | \n\t \n";
+ $posts_count | \n\t\n";
return apply_filters('cat_row', $output);
}
@@ -84,7 +84,7 @@ function link_cat_row( $category ) {
' | ' .
"$edit |
$category->description |
- $count | ";
+ $count | ";
return apply_filters( 'link_cat_row', $output );
}
@@ -276,7 +276,7 @@ function tag_rows( $page = 1, $pagesize = 20, $searchterms = '' ) {
// define the columns to display, the syntax is 'internal name' => 'display name'
function wp_manage_posts_columns() {
$posts_columns = array();
- $posts_columns['cb'] = '';
+ $posts_columns['cb'] = '';
if ( 'draft' === $_GET['post_status'] )
$posts_columns['modified'] = __('Modified');
elseif ( 'pending' === $_GET['post_status'] )
@@ -298,7 +298,7 @@ function wp_manage_posts_columns() {
// define the columns to display, the syntax is 'internal name' => 'display name'
function wp_manage_media_columns() {
$posts_columns = array();
- $posts_columns['cb'] = '';
+ $posts_columns['cb'] = '';
$posts_columns['icon'] = '';
$posts_columns['media'] = _c('Media|media column header');
$posts_columns['desc'] = _c('Description|media column header');
@@ -313,7 +313,7 @@ function wp_manage_media_columns() {
function wp_manage_pages_columns() {
$posts_columns = array();
- $posts_columns['cb'] = '';
+ $posts_columns['cb'] = '';
if ( 'draft' === $_GET['post_status'] )
$posts_columns['modified'] = __('Modified');
elseif ( 'pending' === $_GET['post_status'] )
@@ -400,7 +400,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
case 'comments':
?>
-
+ |
ID );
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
@@ -627,7 +627,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
?>
|
-
+ |
| |