WordPress.org

Make WordPress Core

Ticket #12343: 12343-custom-header-style.patch

File 12343-custom-header-style.patch, 2.0 KB (added by iammattthomas, 5 years ago)

Styles the header selection table to match the mockup

  • wp-admin/custom-header.php

     
    404404endif; 
    405405?> 
    406406<div class="wrap"> 
    407 <h2><?php _e('Upload New Header Image'); ?></h2><p><?php _e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.'); ?></p> 
    408 <p><?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p> 
     407<h2><?php _e('Upload New Header Image'); ?></h2><p><?php _e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.'); ?> <?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p> 
    409408 
    410 <form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>" style="margin: auto; width: 50%;"> 
     409<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>"> 
    411410<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" /> 
    412411<input type="hidden" name="action" value="save" /> 
    413412<?php wp_nonce_field('custom-header') ?> 
  • wp-admin/css/wp-admin.dev.css

     
    36683668        display: inline; 
    36693669} 
    36703670 
     3671/* Custom Header */ 
     3672 
     3673table#available-headers td { 
     3674        padding: 0 20px 10px 0; 
     3675} 
     3676table#available-headers label input { 
     3677        margin-right: 8px; 
     3678} 
     3679table#available-headers label img { 
     3680        vertical-align: middle; 
     3681} 
     3682 
    36713683/* Tab Interface */ 
    36723684 
    36733685.menu-tabs {