Standardize button and select treatments. Props mt. fixes #5925

git-svn-id: http://svn.automattic.com/wordpress/trunk@6918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-19 20:33:59 +00:00
parent c1d3fa2f28
commit b97f4b5e10
13 changed files with 41 additions and 27 deletions

View File

@ -126,7 +126,7 @@ $messages[5] = __('Category not updated.');
<p id="post-search"> <p id="post-search">
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" /> <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
</p> </p>
<br style="clear:both;" /> <br style="clear:both;" />
@ -134,7 +134,7 @@ $messages[5] = __('Category not updated.');
<div class="tablenav"> <div class="tablenav">
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" />
<?php wp_nonce_field('bulk-categories'); ?> <?php wp_nonce_field('bulk-categories'); ?>
</div> </div>

View File

@ -16,7 +16,7 @@ else $mode = attribute_escape($_GET['mode']);
<fieldset> <fieldset>
<legend><?php _e('Show Comments That Contain...') ?></legend> <legend><?php _e('Show Comments That Contain...') ?></legend>
<input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" /> <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" />
<input type="submit" name="submit" value="<?php _e('Search') ?>" /> <input type="submit" name="submit" value="<?php _e('Search') ?>" class="button" />
<input type="hidden" name="mode" value="<?php echo $mode; ?>" /> <input type="hidden" name="mode" value="<?php echo $mode; ?>" />
<?php _e('(Searches within comment text, e-mail, URL, and IP address.)') ?> <?php _e('(Searches within comment text, e-mail, URL, and IP address.)') ?>
</fieldset> </fieldset>

View File

@ -56,7 +56,7 @@ if (isset($_GET['message'])) : ?>
<p id="post-search"> <p id="post-search">
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" /> <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
</p> </p>
<br style="clear:both;" /> <br style="clear:both;" />
@ -82,7 +82,7 @@ if ( $page_links )
?> ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" />
<?php wp_nonce_field('bulk-link-categories'); ?> <?php wp_nonce_field('bulk-link-categories'); ?>
</div> </div>

View File

@ -99,7 +99,7 @@ unset($status_links);
<p id="post-search"> <p id="post-search">
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Pages' ); ?>" /> <input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button" />
</p> </p>
<br style="clear:both;" /> <br style="clear:both;" />
@ -107,7 +107,7 @@ unset($status_links);
<div class="tablenav"> <div class="tablenav">
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" />
<?php wp_nonce_field('bulk-pages'); ?> <?php wp_nonce_field('bulk-pages'); ?>
</div> </div>

View File

@ -118,7 +118,7 @@ $messages[6] = __('Tags deleted.');
<p id="post-search"> <p id="post-search">
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Tags' ); ?>" /> <input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" />
</p> </p>
<br style="clear:both;" /> <br style="clear:both;" />
@ -144,7 +144,7 @@ if ( $page_links )
?> ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" />
<?php wp_nonce_field('bulk-tags'); ?> <?php wp_nonce_field('bulk-tags'); ?>
</div> </div>

View File

@ -113,7 +113,7 @@ endif;
<p id="post-search"> <p id="post-search">
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" /> <input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" />
</p> </p>
<?php do_action('restrict_manage_posts'); ?> <?php do_action('restrict_manage_posts'); ?>
@ -135,7 +135,7 @@ if ( $page_links )
?> ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" />
<?php wp_nonce_field('bulk-posts'); ?> <?php wp_nonce_field('bulk-posts'); ?>
<?php <?php
@ -168,7 +168,7 @@ foreach ($arc_result as $arc_row) {
<?php } ?> <?php } ?>
<?php wp_dropdown_categories('show_option_all='.__('View all categories').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?> <?php wp_dropdown_categories('show_option_all='.__('View all categories').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?>
<input type="submit" id="post-query-submit" value="<?php _e('Filter &#187;'); ?>" class="button" /> <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button" />
</div> </div>

View File

@ -81,7 +81,7 @@ if ( isset($_GET['deleted']) ) {
<p id="post-search"> <p id="post-search">
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Links' ); ?>" /> <input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
</p> </p>
<br style="clear:both;" /> <br style="clear:both;" />
@ -89,7 +89,7 @@ if ( isset($_GET['deleted']) ) {
<div class="tablenav"> <div class="tablenav">
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" />
<?php <?php
$categories = get_terms('link_category', "hide_empty=1"); $categories = get_terms('link_category', "hide_empty=1");
$select_cat = "<select name=\"cat_id\">\n"; $select_cat = "<select name=\"cat_id\">\n";

View File

@ -137,7 +137,7 @@ if ($plugin_files) :
if ( isset($_GET['phperror']) ) if ( isset($_GET['phperror']) )
echo "<input type='hidden' name='phperror' value='1' /><input type='submit' name='submit' value='" . __('Update File and Attempt to Reactivate &raquo;') . "' tabindex='2' />"; echo "<input type='hidden' name='phperror' value='1' /><input type='submit' name='submit' value='" . __('Update File and Attempt to Reactivate &raquo;') . "' tabindex='2' />";
else else
echo "<input type='submit' name='submit' value='" . __('Update File &raquo;') . "' tabindex='2' />"; echo "<input type='submit' name='submit' value='" . __('Update File') . "' tabindex='2' />";
?> ?>
</p> </p>
<?php else : ?> <?php else : ?>

View File

@ -104,7 +104,7 @@ $desc_header = ( $description != $file_show ) ? "$description</strong> (%s)" : "
} }
?> ?>
</select> </select>
<input type="submit" name="Submit" value="<?php _e('Select') ?>" class="button" style="padding: 0px;" /> <input type="submit" name="Submit" value="<?php _e('Select') ?>" class="button" />
</form> </form>
</div> </div>
<br style="clear: both;" /> <br style="clear: both;" />
@ -160,7 +160,7 @@ if ($allowed_files) :
<?php if ( is_writeable($real_file) ) : ?> <?php if ( is_writeable($real_file) ) : ?>
<p class="submit"> <p class="submit">
<?php <?php
echo "<input type='submit' name='submit' value=' " . __('Update File &raquo;') . "' tabindex='2' />"; echo "<input type='submit' name='submit' value='" . __('Update File') . "' tabindex='2' />";
?> ?>
</p> </p>
<?php else : ?> <?php else : ?>

View File

@ -116,7 +116,7 @@ endif;
<p id="post-search"> <p id="post-search">
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Media' ); ?>" /> <input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" />
</p> </p>
<?php do_action('restrict_manage_posts'); ?> <?php do_action('restrict_manage_posts'); ?>
@ -138,7 +138,7 @@ if ( $page_links )
?> ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" />
<?php wp_nonce_field('bulk-posts'); ?> <?php wp_nonce_field('bulk-posts'); ?>
<?php <?php

View File

@ -149,7 +149,7 @@ case 'delete':
<?php echo '<label for="delete_option1">'.__('Attribute all posts and links to:')."</label> $user_dropdown"; ?></li> <?php echo '<label for="delete_option1">'.__('Attribute all posts and links to:')."</label> $user_dropdown"; ?></li>
</ul> </ul>
<input type="hidden" name="action" value="dodelete" /> <input type="hidden" name="action" value="dodelete" />
<p class="submit"><input type="submit" name="submit" value="<?php _e('Confirm Deletion'); ?>" /></p> <p class="submit"><input type="submit" name="submit" value="<?php _e('Confirm Deletion'); ?>" class="button" /></p>
<?php else : ?> <?php else : ?>
<p><?php _e('There are no valid users selected for deletion.'); ?></p> <p><?php _e('There are no valid users selected for deletion.'); ?></p>
<?php endif; ?> <?php endif; ?>
@ -275,7 +275,7 @@ unset($role_links);
</ul> </ul>
<p id="post-search"> <p id="post-search">
<input type="text" id="post-search-input" name="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" /> <input type="text" id="post-search-input" name="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" />
<input type="submit" value="<?php _e( 'Search Users' ); ?>" /> <input type="submit" value="<?php _e( 'Search Users' ); ?>" class="button" />
</p> </p>
<br style="clear:both;" /> <br style="clear:both;" />
@ -287,7 +287,7 @@ unset($role_links);
<?php endif; ?> <?php endif; ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" />
<?php wp_nonce_field('bulk-users'); ?> <?php wp_nonce_field('bulk-users'); ?>
</div> </div>
@ -436,7 +436,7 @@ foreach ( $wp_user_search->get_results() as $userid ) {
</table> </table>
<p class="submit"> <p class="submit">
<?php echo $referer; ?> <?php echo $referer; ?>
<input name="adduser" type="submit" id="addusersub" value="<?php _e('Add User &raquo;') ?>" /> <input name="adduser" type="submit" id="addusersub" value="<?php _e('Add User') ?>" />
</p> </p>
</form> </form>

View File

@ -181,7 +181,7 @@ if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
<h2><?php _e( 'Widgets' ); ?></h2> <h2><?php _e( 'Widgets' ); ?></h2>
<p id="widget-search"> <p id="widget-search">
<input type="text" id="widget-search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" /> <input type="text" id="widget-search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" />
<input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" /> <input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" class="button" />
</p> </p>
<div class="widget-liquid-left-holder"> <div class="widget-liquid-left-holder">
@ -193,7 +193,7 @@ if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
<option value='<?php echo $show_value; ?>'<?php selected( $show_value, $show ); ?>><?php echo wp_specialchars( $show_text ); ?></option> <option value='<?php echo $show_value; ?>'<?php selected( $show_value, $show ); ?>><?php echo wp_specialchars( $show_text ); ?></option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<input type="submit" value="<?php _e('Show' ); ?>" /> <input type="submit" value="<?php _e('Show' ); ?>" class="button" />
<p class="pagenav"> <p class="pagenav">
<?php echo $page_links; ?> <?php echo $page_links; ?>
</p> </p>
@ -210,7 +210,7 @@ if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
<option value='<?php echo $sidebar_id; ?>'<?php selected( $sidebar_id, $sidebar ); ?>><?php echo wp_specialchars( $registered_sidebar['name'] ); ?></option> <option value='<?php echo $sidebar_id; ?>'<?php selected( $sidebar_id, $sidebar ); ?>><?php echo wp_specialchars( $registered_sidebar['name'] ); ?></option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<input type="submit" value="<?php _e('Go' ); ?>" /> <input type="submit" value="<?php _e('Go' ); ?>" class="button" />
</div> </div>
</div> </div>

View File

@ -134,7 +134,7 @@ form#upload #post_content {
.submit input, .submit input:focus, .button, .button:focus { .submit input, .submit input:focus, .button, .button:focus {
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
color: #246; color: #246;
padding: 6px; padding: 4px 6px;
background: #e5e5e5; background: #e5e5e5;
border: none; border: none;
-moz-border-radius: 2px; -moz-border-radius: 2px;
@ -147,6 +147,13 @@ form#upload #post_content {
color: #d54e21; color: #d54e21;
} }
select {
background: #fff;
border: 1px solid #ddd;
font: 12px/14px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
padding: none;
}
.editform th, #postcustomsubmit { .editform th, #postcustomsubmit {
text-align: right; text-align: right;
} }
@ -508,6 +515,13 @@ p.pagenav {
margin: 0 6px; margin: 0 6px;
} }
.tablenav .button,
div.nav .button,
.niceblue tr .button {
padding: 4px 6px;
background: #cee1ef;
}
.tablenav .dots { .tablenav .dots {
background-color: #e4f2fd; background-color: #e4f2fd;
border-color: #e4f2fd; border-color: #e4f2fd;