Press This: ensure proper tab order in the split button. Tweak padding and border color a bit.
See #32757. git-svn-id: https://develop.svn.wordpress.org/trunk@32921 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9911a1cbe6
commit
504f154363
@ -398,15 +398,13 @@ strong {
|
|||||||
.split-button-body {
|
.split-button-body {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 37px;
|
bottom: 39px;
|
||||||
right: 0;
|
right: 0;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ddd;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
min-width: 160px;
|
min-width: 180px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 5px;
|
padding: 8px;
|
||||||
-webkit-border-radius: 3px;
|
|
||||||
border-radius: 3px;
|
|
||||||
-webkit-box-shadow: 1px 0 4px rgba( 0, 0, 0, 0.15 );
|
-webkit-box-shadow: 1px 0 4px rgba( 0, 0, 0, 0.15 );
|
||||||
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 {
|
.split-button-body:before {
|
||||||
bottom: -18px;
|
bottom: -18px;
|
||||||
border-top-color: #a0a5aa;
|
border-top-color: #ccc;
|
||||||
border-width: 9px;
|
border-width: 9px;
|
||||||
right: 11px;
|
right: 11px;
|
||||||
}
|
}
|
||||||
@ -438,7 +436,7 @@ strong {
|
|||||||
|
|
||||||
.split-button-body .split-button-option {
|
.split-button-body .split-button-option {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 4px 10px;
|
padding: 5px 15px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@ -1450,11 +1450,6 @@ class WP_Press_This {
|
|||||||
<div class="post-actions">
|
<div class="post-actions">
|
||||||
<span class="spinner"> </span>
|
<span class="spinner"> </span>
|
||||||
<div class="split-button">
|
<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">
|
<div class="split-button-head">
|
||||||
<button type="button" class="publish-button split-button-primary"><?php
|
<button type="button" class="publish-button split-button-primary"><?php
|
||||||
echo ( current_user_can( 'publish_posts' ) ) ? __( 'Publish' ) : __( 'Submit for Review' );
|
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>
|
<span class="screen-reader-text"><?php _e('Toggle dropdown'); ?></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user