mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fix button styling inconsistency on settings pages, props sivel, fixes #7975
git-svn-id: http://svn.automattic.com/wordpress/trunk@9369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a36f3d0ed6
commit
17083f0ce8
@ -217,27 +217,12 @@ ul#widget-list li.widget-list-item h4.widget-title {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.submit input,
|
||||
#login form .submit input,
|
||||
div.dashboard-widget-submit input,
|
||||
#edit-slug-buttons a.save {
|
||||
background-color: #e5e5e5;
|
||||
color: #246;
|
||||
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;
|
||||
@ -249,15 +234,22 @@ div.dashboard-widget-submit input,
|
||||
background: #f2f2f2 url(../images/white-grad.png) repeat-x scroll left top;
|
||||
}
|
||||
|
||||
.button-primary {
|
||||
border-color: #21759B;
|
||||
color: #FFF;
|
||||
background: #21759B url(../images/button-grad.png) repeat-x scroll left top;
|
||||
}
|
||||
|
||||
.button[disabled], .button:disabled {
|
||||
background-color: #999;
|
||||
}
|
||||
|
||||
.submit input:hover, .button:hover, #edit-slug-buttons a.save:hover {
|
||||
.button:hover,
|
||||
#edit-slug-buttons a.save:hover {
|
||||
border-color: #535353;
|
||||
}
|
||||
|
||||
.submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover,
|
||||
.button:hover, .button-secondary:hover, #wphead #viewsite a:hover,
|
||||
#adminmenu a:hover, #adminmenu ul.wp-submenu a:hover, #the-comment-list .comment a:hover,
|
||||
#rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover,
|
||||
#login form .submit input:hover, div.dashboard-widget-submit input:hover,
|
||||
@ -266,15 +258,16 @@ div.dashboard-widget-submit input,
|
||||
color: #d54e21;
|
||||
}
|
||||
|
||||
.button-primary:hover {
|
||||
border-color: #156079;
|
||||
}
|
||||
|
||||
.button-secondary:hover,
|
||||
#login form .submit input:hover {
|
||||
border-color: #328ab2;
|
||||
}
|
||||
|
||||
.button-primary:hover {
|
||||
border-color: #156079;
|
||||
background-image: inherit;
|
||||
}
|
||||
|
||||
#side-info-column #category-tabs .ui-tabs-selected a {
|
||||
color: #333;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ foreach ( $authors as $id ) {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="submit"><input type="submit" name="submit" value="<?php _e('Download Export File'); ?>" />
|
||||
<p class="submit"><input type="submit" name="submit" class="button" value="<?php _e('Download Export File'); ?>" />
|
||||
<input type="hidden" name="download" value="true" />
|
||||
</p>
|
||||
</form>
|
||||
|
@ -34,7 +34,7 @@ class BunnyTags_Import {
|
||||
echo '<p><strong>'.__('Don’t be stupid - backup your database before proceeding!').'</strong></p>';
|
||||
echo '<form action="admin.php?import=btt&step=1" method="post">';
|
||||
wp_nonce_field('import-btt');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Tags').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Import Tags').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
@ -104,7 +104,7 @@ class BunnyTags_Import {
|
||||
|
||||
echo '<form action="admin.php?import=btt&step='.($precheck? 2:3).'" method="post">';
|
||||
wp_nonce_field('import-btt');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Next').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Next').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ class Dotclear_Import {
|
||||
echo '<form action="admin.php?import=dotclear&step=1" method="post">';
|
||||
wp_nonce_field('import-dotclear');
|
||||
$this->db_form();
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.attribute_escape(__('Import Categories')).'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.attribute_escape(__('Import Categories')).'" /></p>';
|
||||
echo '</form></div>';
|
||||
}
|
||||
|
||||
@ -631,7 +631,7 @@ class Dotclear_Import {
|
||||
|
||||
echo '<form action="admin.php?import=dotclear&step=2" method="post">';
|
||||
wp_nonce_field('import-dotclear');
|
||||
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Import Users')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Import Users')));
|
||||
echo '</form>';
|
||||
|
||||
}
|
||||
@ -644,7 +644,7 @@ class Dotclear_Import {
|
||||
|
||||
echo '<form action="admin.php?import=dotclear&step=3" method="post">';
|
||||
wp_nonce_field('import-dotclear');
|
||||
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Import Posts')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Import Posts')));
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
@ -658,7 +658,7 @@ class Dotclear_Import {
|
||||
|
||||
echo '<form action="admin.php?import=dotclear&step=4" method="post">';
|
||||
wp_nonce_field('import-dotclear');
|
||||
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Import Comments')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Import Comments')));
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
@ -670,7 +670,7 @@ class Dotclear_Import {
|
||||
|
||||
echo '<form action="admin.php?import=dotclear&step=5" method="post">';
|
||||
wp_nonce_field('import-dotclear');
|
||||
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Import Links')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Import Links')));
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
@ -683,7 +683,7 @@ class Dotclear_Import {
|
||||
|
||||
echo '<form action="admin.php?import=dotclear&step=6" method="post">';
|
||||
wp_nonce_field('import-dotclear');
|
||||
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Finish')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Finish')));
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ class GM_Import {
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
<p><input type="submit" name="submit" value="<?php _e('Start Importing') ?>" class="button" /></p>
|
||||
<p class="submit"><input type="submit" name="submit" class="button" value="<?php _e('Start Importing') ?>" /></p>
|
||||
</form>
|
||||
<?php
|
||||
$this->footer();
|
||||
|
@ -119,7 +119,7 @@ class JeromesKeyword_Import {
|
||||
|
||||
echo '<form action="admin.php?import=jkw&step='.($precheck? 2:6).'" method="post">';
|
||||
wp_nonce_field('import-jkw');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Next').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Next').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
@ -152,7 +152,7 @@ class JeromesKeyword_Import {
|
||||
}
|
||||
echo '<form action="admin.php?import=jkw&step='.($precheck? 4:5).'" method="post">';
|
||||
wp_nonce_field('import-jkw');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Next').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Next').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ class MT_Import {
|
||||
<input type="hidden" name="upload_type" value="ftp" />
|
||||
<?php _e('Or use <code>mt-export.txt</code> in your <code>/wp-content/</code> directory'); ?></p>
|
||||
<p class="submit">
|
||||
<input type="submit" value="<?php echo attribute_escape(__('Import mt-export.txt')); ?>" />
|
||||
<input type="submit" class="button" value="<?php echo attribute_escape(__('Import mt-export.txt')); ?>" />
|
||||
</p>
|
||||
</form>
|
||||
<p><?php _e('The importer is smart enough not to import duplicates, so you can run this multiple times without worry if—for whatever reason—it doesn\'t finish. If you get an <strong>out of memory</strong> error try splitting up the import file into pieces.'); ?> </p>
|
||||
@ -211,7 +211,7 @@ class MT_Import {
|
||||
echo '</label></li>';
|
||||
}
|
||||
|
||||
echo '<input type="submit" value="'.__('Submit').'">'.'<br />';
|
||||
echo '<p class="submit"><input type="submit" class="button" value="'.__('Submit').'"></p>'.'<br />';
|
||||
echo '</form>';
|
||||
echo '</ol></div>';
|
||||
|
||||
|
@ -32,7 +32,7 @@ class STP_Import {
|
||||
echo '<p><strong>'.__('Don’t be stupid - backup your database before proceeding!').'</strong></p>';
|
||||
echo '<form action="admin.php?import=stp&step=1" method="post">';
|
||||
wp_nonce_field('import-stp');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 1').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Step 1').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
@ -92,7 +92,7 @@ class STP_Import {
|
||||
|
||||
echo '<form action="admin.php?import=stp&step=2" method="post">';
|
||||
wp_nonce_field('import-stp');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 2').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Step 2').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
@ -108,7 +108,7 @@ class STP_Import {
|
||||
echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tag was added!', 'Done! <strong>%s</strong> tags were added!', $tags_added), $tags_added ) . '<br /></p>';
|
||||
echo '<form action="admin.php?import=stp&step=3" method="post">';
|
||||
wp_nonce_field('import-stp');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 3').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Step 3').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ class Textpattern_Import {
|
||||
echo '<form action="admin.php?import=textpattern&step=1" method="post">';
|
||||
wp_nonce_field('import-textpattern');
|
||||
$this->db_form();
|
||||
echo '<p class="submit"><input type="submit" class="button" name="submit" value="'.attribute_escape(__('Import')).'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.attribute_escape(__('Import')).'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
@ -504,7 +504,7 @@ class Textpattern_Import {
|
||||
|
||||
echo '<form action="admin.php?import=textpattern&step=2" method="post">';
|
||||
wp_nonce_field('import-textpattern');
|
||||
printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Import Users')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Import Users')));
|
||||
echo '</form>';
|
||||
|
||||
}
|
||||
@ -517,7 +517,7 @@ class Textpattern_Import {
|
||||
|
||||
echo '<form action="admin.php?import=textpattern&step=3" method="post">';
|
||||
wp_nonce_field('import-textpattern');
|
||||
printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Import Posts')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Import Posts')));
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
@ -531,7 +531,7 @@ class Textpattern_Import {
|
||||
|
||||
echo '<form action="admin.php?import=textpattern&step=4" method="post">';
|
||||
wp_nonce_field('import-textpattern');
|
||||
printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Import Comments')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Import Comments')));
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
@ -543,7 +543,7 @@ class Textpattern_Import {
|
||||
|
||||
echo '<form action="admin.php?import=textpattern&step=5" method="post">';
|
||||
wp_nonce_field('import-textpattern');
|
||||
printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Import Links')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Import Links')));
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
@ -556,7 +556,7 @@ class Textpattern_Import {
|
||||
|
||||
echo '<form action="admin.php?import=textpattern&step=6" method="post">';
|
||||
wp_nonce_field('import-textpattern');
|
||||
printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Finish')));
|
||||
printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attribute_escape(__('Finish')));
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ class UTW_Import {
|
||||
echo '<p>'.__('To accommodate larger databases for those tag-crazy authors out there, we have made this into an easy 5-step program to help you kick that nasty UTW habit. Just keep clicking along and we will let you know when you are in the clear!').'</p>';
|
||||
echo '<p><strong>'.__('Don’t be stupid - backup your database before proceeding!').'</strong></p>';
|
||||
echo '<form action="admin.php?import=utw&step=1" method="post">';
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 1').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Step 1').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
@ -119,7 +119,7 @@ class UTW_Import {
|
||||
|
||||
echo '<form action="admin.php?import=utw&step=2" method="post">';
|
||||
wp_nonce_field('import-utw');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 2').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Step 2').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
@ -155,7 +155,7 @@ class UTW_Import {
|
||||
|
||||
echo '<form action="admin.php?import=utw&step=3" method="post">';
|
||||
wp_nonce_field('import-utw');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 3').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Step 3').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
|
||||
@ -174,7 +174,7 @@ class UTW_Import {
|
||||
|
||||
echo '<form action="admin.php?import=utw&step=4" method="post">';
|
||||
wp_nonce_field('import-utw');
|
||||
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 4').'" /></p>';
|
||||
echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Step 4').'" /></p>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
|
||||
|
@ -221,7 +221,7 @@ echo apply_filters('default_avatar_select', $avatar_list);
|
||||
<?php do_settings_sections('discussion'); ?>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
|
||||
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -207,7 +207,7 @@ endfor;
|
||||
<?php do_settings_sections('general'); ?>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
|
||||
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
@ -122,7 +122,7 @@ include('admin-header.php');
|
||||
<?php do_settings_sections('media'); ?>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
|
||||
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
@ -76,7 +76,7 @@ include('admin-header.php');
|
||||
<?php do_settings_sections('misc'); ?>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button" />
|
||||
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
@ -199,7 +199,7 @@ $structures = array(
|
||||
<?php do_settings_sections('permalink'); ?>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" name="submit" class="button" value="<?php _e('Save Changes') ?>" />
|
||||
<input type="submit" name="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
||||
</p>
|
||||
</form>
|
||||
<?php if ( $permalink_structure && !$usingpi && !$writable ) : ?>
|
||||
|
@ -40,7 +40,7 @@ include('./admin-header.php');
|
||||
<?php do_settings_sections('privacy'); ?>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
|
||||
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
@ -78,7 +78,7 @@ include('admin-header.php');
|
||||
<?php do_settings_fields('reading', 'default'); ?>
|
||||
</table>
|
||||
<p class="submit">
|
||||
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
|
||||
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -149,7 +149,7 @@ endforeach;
|
||||
<?php do_settings_sections('writing'); ?>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
|
||||
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -181,7 +181,7 @@ if ($allowed_files) :
|
||||
<?php if ( is_writeable($real_file) ) : ?>
|
||||
<p class="submit">
|
||||
<?php
|
||||
echo "<input type='submit' name='submit' value='" . __('Update File') . "' tabindex='2' />";
|
||||
echo "<input type='submit' name='submit' class='button' value='" . __('Update File') . "' tabindex='2' />";
|
||||
?>
|
||||
</p>
|
||||
<?php else : ?>
|
||||
|
@ -390,7 +390,7 @@ if ( $show_password_fields ) :
|
||||
<p class="submit">
|
||||
<input type="hidden" name="action" value="update" />
|
||||
<input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id; ?>" />
|
||||
<input type="submit" value="<?php $is_profile_page? _e('Update Profile') : _e('Update User') ?>" name="submit" />
|
||||
<input type="submit" class="button" value="<?php $is_profile_page? _e('Update Profile') : _e('Update User') ?>" name="submit" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -474,7 +474,7 @@ foreach ( $wp_user_search->get_results() as $userid ) {
|
||||
</table>
|
||||
<p class="submit">
|
||||
<?php echo $referer; ?>
|
||||
<input name="adduser" type="submit" id="addusersub" value="<?php _e('Add User') ?>" />
|
||||
<input name="adduser" type="submit" id="addusersub" class="button" value="<?php _e('Add User') ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
@ -305,7 +305,7 @@ require_once( 'admin-header.php' ); ?>
|
||||
<p class="submit">
|
||||
<input type="hidden" id='sidebar' name='sidebar' value="<?php echo $sidebar; ?>" />
|
||||
<input type="hidden" id="generated-time" name="generated-time" value="<?php echo time() - 1199145600; // Jan 1, 2008 ?>" />
|
||||
<input type="submit" name="save-widgets" value="<?php _e( 'Save Changes' ); ?>" />
|
||||
<input type="submit" name="save-widgets" class="button" value="<?php _e( 'Save Changes' ); ?>" />
|
||||
<?php
|
||||
wp_nonce_field( 'edit-sidebar_' . $sidebar );
|
||||
?>
|
||||
@ -321,3 +321,4 @@ require_once( 'admin-header.php' ); ?>
|
||||
|
||||
<?php require_once( 'admin-footer.php' ); ?>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user