Make WordPress Core

Changeset 26247


Ignore:
Timestamp:
11/18/2013 06:52:06 PM (13 years ago)
Author:
iammattthomas
Message:

Style and positioning fixes to form elements in the Publish box:

  • Make select element text #555 to match others
  • Make Cancel links vertically align with buttons
  • Make sure the spacing between buttons and cancel links is always consistent
  • Override active button styles for responsive states so button size doesn't change when active
  • Reduce font size of date select element to match date text inputs

Fixes #26082, props aubreypwd.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/wp-admin.css

    r26240 r26247  
    10881088        line-height: 28px;
    10891089        height: 28px;
     1090        color: #555;
     1091        vertical-align: top;
     1092}
     1093
     1094.wp-admin .button-cancel {
     1095        padding: 0 5px;
     1096        line-height: 2;
    10901097}
    10911098
     
    41004107
    41014108#post-status-select {
    4102         line-height: 2.5em;
    41034109        margin-top: 3px;
    41044110}
     
    43144320
    43154321#timestampdiv select {
    4316         height: 20px;
     4322        height: 21px;
    43174323        line-height: 14px;
    43184324        padding: 0;
    43194325        vertical-align: top;
     4326        font-size: 12px;
    43204327}
    43214328
     
    1109411101                font-size: 16px;
    1109511102        }
     11103       
     11104        .wp-admin .button-cancel {
     11105                padding: 0;
     11106                font-size: 14px;
     11107        }
    1109611108
    1109711109        .wp-core-ui .button,
     11110        .wp-core-ui .button:active, /* Override non-responsive active styles in buttons.css */
    1109811111        input#publish,
    1109911112        input#save-post,
     
    1136911382
    1137011383        .wp-core-ui .save-post-status.button {
    11371                 top: 16px;
    1137211384                position: relative;
    11373                 margin: 0 10px;
     11385                margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */
    1137411386        }
    1137511387
  • trunk/src/wp-admin/includes/meta-boxes.php

    r25670 r26247  
    100100</select>
    101101 <a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e('OK'); ?></a>
    102  <a href="#post_status" class="cancel-post-status hide-if-no-js"><?php _e('Cancel'); ?></a>
     102 <a href="#post_status" class="cancel-post-status hide-if-no-js button-cancel"><?php _e('Cancel'); ?></a>
    103103</div>
    104104
     
    144144<p>
    145145 <a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a>
    146  <a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php _e('Cancel'); ?></a>
     146 <a href="#visibility" class="cancel-post-visibility hide-if-no-js button-cancel"><?php _e('Cancel'); ?></a>
    147147</p>
    148148</div>
  • trunk/src/wp-admin/includes/template.php

    r26089 r26247  
    687687<p>
    688688<a href="#edit_timestamp" class="save-timestamp hide-if-no-js button"><?php _e('OK'); ?></a>
    689 <a href="#edit_timestamp" class="cancel-timestamp hide-if-no-js"><?php _e('Cancel'); ?></a>
     689<a href="#edit_timestamp" class="cancel-timestamp hide-if-no-js button-cancel"><?php _e('Cancel'); ?></a>
    690690</p>
    691691<?php
Note: See TracChangeset for help on using the changeset viewer.