Custom background styling fixes. Props yoavf. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5557d3e4f0
commit
0ebb6732bf
File diff suppressed because one or more lines are too long
|
@ -560,8 +560,25 @@ ol {
|
|||
.clearlooks2 .mceTop .mceLeft {
|
||||
width:100% !important;
|
||||
}
|
||||
|
||||
/* Custom Background */
|
||||
|
||||
#custom-background table th, #custom-background table td {
|
||||
text-align:right;
|
||||
padding-right:0px;
|
||||
padding-left:40px;
|
||||
}
|
||||
|
||||
#custom-background table label {
|
||||
padding-right:0;
|
||||
padding-left:10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ltr
|
||||
=================================== */
|
||||
#author-email, #author-url, #rss-url-1, #edit-slug-box, #post_name, #trackback_url, #metakeyinput, #post_password, #slug, #category_nicename, #link_url, #link_image, #rss_uri, #menu_order, #email, #newcomment_author_url, #pages-exclude, #template textarea, #user_login, #url, #pass1, #pass2, #aim, #yim, #jabber, #siteurl, #home, #admin_email, #gmt_offset, #default_post_edit_rows, #mailserver_url, #mailserver_login, #mailserver_pass, #mailserver_port, #ping_sites, #posts_per_page, #posts_per_rss, #blog_charset, #close_comments_days_old, #comments_per_page, #comment_max_links, #moderation_keys, #blacklist_keys, #thumbnail_size_w, #thumbnail_size_h, #medium_size_w, #medium_size_h, #large_size_w, #large_size_h, #permalink_structure, #category_base, #tag_base, #upload_path, #upload_url_path, #rules {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3641,3 +3641,29 @@ span.imgedit-scale-warn {
|
|||
border-right-style: solid;
|
||||
border-right-width: 1px;
|
||||
}
|
||||
|
||||
/* Custom Background */
|
||||
|
||||
div#custom-background h2 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
#custom-background table th, #custom-background table td {
|
||||
text-align:left;
|
||||
padding-right:40px;
|
||||
padding-left:0;
|
||||
}
|
||||
|
||||
#custom-background table label {
|
||||
padding-right:10px;
|
||||
width:80px;
|
||||
}
|
||||
|
||||
div#custom-background-image img {
|
||||
max-width: 400px;
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
div#custom-background-image p.submit {
|
||||
display: inline;
|
||||
}
|
|
@ -135,7 +135,7 @@ class Custom_Background {
|
|||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="wrap">
|
||||
<div class="wrap" id="custom-background">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php _e('Custom Background'); ?></h2>
|
||||
<?php if ( get_background_image() ) { ?>
|
||||
|
@ -153,11 +153,9 @@ if ( $this->admin_image_div_callback ) {
|
|||
<img class="custom-background-image" src="<?php background_image(); ?>" />
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ( get_background_image() ) : ?>
|
||||
<div class="wrap">
|
||||
|
||||
|
||||
<h2><?php _e('Change Display Options') ?></h2>
|
||||
<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
|
||||
<table>
|
||||
|
@ -211,14 +209,13 @@ if ( $this->admin_image_div_callback ) {
|
|||
</table>
|
||||
|
||||
<?php wp_nonce_field('custom-background'); ?>
|
||||
<input type="submit" class="button" name="save-background-options" value="<?php esc_attr_e('Save Changes'); ?>" />
|
||||
<p class="submit"><input type="submit" class="button" name="save-background-options" value="<?php esc_attr_e('Save Changes'); ?>" /></p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="wrap">
|
||||
<h2><?php _e('Upload New Background Image'); ?></h2>
|
||||
<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>" style="margin: auto; width: 50%;">
|
||||
<form enctype="multipart/form-data" id="uploadFrom" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
|
||||
<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
|
||||
<input type="hidden" name="action" value="save" />
|
||||
<?php wp_nonce_field('custom-background') ?>
|
||||
|
@ -226,19 +223,18 @@ if ( $this->admin_image_div_callback ) {
|
|||
<input type="submit" value="<?php esc_attr_e('Upload'); ?>" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php if ( get_background_image() ) : ?>
|
||||
<div class="wrap">
|
||||
<h2><?php _e('Remove Background Image'); ?></h2>
|
||||
<p><?php _e('This will remove background image. You will not be able to retrieve any customizations.') ?></p>
|
||||
<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
|
||||
<?php wp_nonce_field('custom-background'); ?>
|
||||
<input type="submit" class="button" name="remove-background" value="<?php esc_attr_e('Remove Background'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
<?php endif;
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -437,7 +437,7 @@ function wp_default_styles( &$styles ) {
|
|||
// all colors stylesheets need to have the same query strings (cache manifest compat)
|
||||
$colors_version = '20100217';
|
||||
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20100217' );
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20100222' );
|
||||
|
||||
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20100219' );
|
||||
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
||||
|
|
Loading…
Reference in New Issue