Press This: ensure proper tab order in the split button. Tweak padding and border color a bit.

See #32757.
Built from https://develop.svn.wordpress.org/trunk@32921


git-svn-id: http://core.svn.wordpress.org/trunk@32892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-06-24 03:23:27 +00:00
parent f4109b0c5d
commit f8cf80e9b1
6 changed files with 20 additions and 24 deletions

View File

@ -398,15 +398,13 @@ strong {
.split-button-body {
display: none;
position: absolute;
bottom: 37px;
bottom: 39px;
left: 0;
border: 1px solid #ccc;
border: 1px solid #ddd;
background-color: #fff;
min-width: 160px;
min-width: 180px;
max-width: 100%;
padding: 5px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 8px;
-webkit-box-shadow: -1px 0 4px rgba( 0, 0, 0, 0.15 );
box-shadow: -1px 0 4px rgba( 0, 0, 0, 0.15 );
}
@ -425,7 +423,7 @@ strong {
.split-button-body:before {
bottom: -18px;
border-top-color: #a0a5aa;
border-top-color: #ccc;
border-width: 9px;
left: 11px;
}
@ -438,7 +436,7 @@ strong {
.split-button-body .split-button-option {
display: block;
padding: 4px 10px;
padding: 5px 15px;
margin: 0;
width: 100%;
text-align: right;

File diff suppressed because one or more lines are too long

View File

@ -398,15 +398,13 @@ strong {
.split-button-body {
display: none;
position: absolute;
bottom: 37px;
bottom: 39px;
right: 0;
border: 1px solid #ccc;
border: 1px solid #ddd;
background-color: #fff;
min-width: 160px;
min-width: 180px;
max-width: 100%;
padding: 5px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 8px;
-webkit-box-shadow: 1px 0 4px rgba( 0, 0, 0, 0.15 );
box-shadow: 1px 0 4px rgba( 0, 0, 0, 0.15 );
}
@ -425,7 +423,7 @@ strong {
.split-button-body:before {
bottom: -18px;
border-top-color: #a0a5aa;
border-top-color: #ccc;
border-width: 9px;
right: 11px;
}
@ -438,7 +436,7 @@ strong {
.split-button-body .split-button-option {
display: block;
padding: 4px 10px;
padding: 5px 15px;
margin: 0;
width: 100%;
text-align: left;

File diff suppressed because one or more lines are too long

View File

@ -1450,11 +1450,6 @@ class WP_Press_This {
<div class="post-actions">
<span class="spinner">&nbsp;</span>
<div class="split-button">
<div class="split-button-body">
<button type="button" class="button-subtle draft-button split-button-option" aria-live="polite"><?php _e( 'Save Draft' ); ?></button>
<a href="<?php echo esc_url( get_edit_post_link( $post_ID ) ); ?>" class="edit-post-link split-button-option" target="_blank"><?php _e( 'Standard Editor' ); ?></a>
<button type="button" class="button-subtle preview-button split-button-option"><?php _e( 'Preview' ); ?></button>
</div>
<div class="split-button-head">
<button type="button" class="publish-button split-button-primary"><?php
echo ( current_user_can( 'publish_posts' ) ) ? __( 'Publish' ) : __( 'Submit for Review' );
@ -1463,6 +1458,11 @@ class WP_Press_This {
<span class="screen-reader-text"><?php _e('Toggle dropdown'); ?></span>
</button>
</div>
<div class="split-button-body">
<button type="button" class="button-subtle draft-button split-button-option" aria-live="polite"><?php _e( 'Save Draft' ); ?></button>
<a href="<?php echo esc_url( get_edit_post_link( $post_ID ) ); ?>" class="edit-post-link split-button-option" target="_blank"><?php _e( 'Standard Editor' ); ?></a>
<button type="button" class="button-subtle preview-button split-button-option"><?php _e( 'Preview' ); ?></button>
</div>
</div>
</div>
</div>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32920';
$wp_version = '4.3-alpha-32921';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.