Customize: Make "Add New Page" buttons less intrusive.
They now better match the existing add functionality from the category metabox and are better separated from the surrounding inputs. All hail `.button-link`. fixes #38164. see #35126. Built from https://develop.svn.wordpress.org/trunk@39194 git-svn-id: http://core.svn.wordpress.org/trunk@39134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
215e5351cc
commit
f94285d68c
|
@ -742,6 +742,23 @@ p.customize-section-description {
|
|||
border: 1px solid #f00;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle {
|
||||
margin-right: 1px;
|
||||
color: #0073aa;
|
||||
font-weight: 600;
|
||||
line-height: 28px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle:hover,
|
||||
.customize-control-dropdown-pages .add-new-toggle:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle:focus {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
#customize-preview iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -742,6 +742,23 @@ p.customize-section-description {
|
|||
border: 1px solid #f00;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle {
|
||||
margin-left: 1px;
|
||||
color: #0073aa;
|
||||
font-weight: 600;
|
||||
line-height: 28px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle:hover,
|
||||
.customize-control-dropdown-pages .add-new-toggle:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle:focus {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
#customize-preview iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -588,7 +588,10 @@ class WP_Customize_Control {
|
|||
?>
|
||||
</label>
|
||||
<?php if ( $this->allow_addition && current_user_can( 'publish_pages' ) && current_user_can( 'edit_theme_options' ) ) : // Currently tied to menus functionality. ?>
|
||||
<button type="button" class="button add-new-toggle"><?php echo get_post_type_object( 'page' )->labels->add_new_item; ?></button>
|
||||
<button type="button" class="button-link add-new-toggle"><?php
|
||||
/* translators: %s: add new page label */
|
||||
printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item );
|
||||
?></button>
|
||||
<div class="new-content-item">
|
||||
<label for="create-input-<?php echo $this->id; ?>"><span class="screen-reader-text"><?php _e( 'New page title' ); ?></span></label>
|
||||
<input type="text" id="create-input-<?php echo $this->id; ?>" class="create-item-input" placeholder="<?php esc_attr_e( 'New page title…' ); ?>">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-beta2-39193';
|
||||
$wp_version = '4.7-beta2-39194';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue