Customizer: Improve the overlay close button for iOS.

see #28784.
Built from https://develop.svn.wordpress.org/trunk@31984


git-svn-id: http://core.svn.wordpress.org/trunk@31963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-04-02 17:16:28 +00:00
parent c996169c04
commit eafbdb0a2f
6 changed files with 37 additions and 37 deletions

View File

@ -197,7 +197,7 @@ body {
width: 100%;
}
.customize-close-overlay,
.customize-overlay-close,
.customize-controls-close {
display: block;
position: absolute;
@ -205,19 +205,25 @@ body {
right: 0;
width: 45px;
height: 45px;
padding-left: 2px;
padding: 0 0 0 2px;
background: #eee;
border: none;
border-left: 1px solid #ddd;
color: #444;
text-align: right;
cursor: pointer;
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
transition: color .1s ease-in-out, background .1s ease-in-out;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.customize-close-overlay {
.customize-overlay-close {
right: auto;
left: 0;
border-left: 0;
border-right: 1px solid #ddd;
}
.control-panel-back {
@ -240,8 +246,8 @@ body {
display: none;
}
.customize-close-overlay:focus,
.customize-close-overlay:hover,
.customize-overlay-close:focus,
.customize-overlay-close:hover,
.customize-controls-close:focus,
.customize-controls-close:hover,
.control-panel-back:focus,
@ -256,26 +262,20 @@ body {
box-shadow: none;
}
.customize-overlay-close:before,
.customize-controls-close:before {
font: normal 22px/1 dashicons;
font: normal 22px/45px dashicons;
content: "\f335";
position: relative;
top: 7px;
top: 1px;
right: 13px;
}
.customize-close-overlay:before {
font: normal 22px/1 dashicons;
content: "\f335";
position: relative;
top: 3px;
}
.control-panel-back:before {
font: normal 20px/1 dashicons;
font: normal 20px/45px dashicons;
content: "\f345";
position: relative;
top: 7px;
top: 1px;
right: 13px;
}

File diff suppressed because one or more lines are too long

View File

@ -197,7 +197,7 @@ body {
width: 100%;
}
.customize-close-overlay,
.customize-overlay-close,
.customize-controls-close {
display: block;
position: absolute;
@ -205,19 +205,25 @@ body {
left: 0;
width: 45px;
height: 45px;
padding-right: 2px;
padding: 0 2px 0 0;
background: #eee;
border: none;
border-right: 1px solid #ddd;
color: #444;
text-align: left;
cursor: pointer;
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
transition: color .1s ease-in-out, background .1s ease-in-out;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.customize-close-overlay {
.customize-overlay-close {
left: auto;
right: 0;
border-right: 0;
border-left: 1px solid #ddd;
}
.control-panel-back {
@ -240,8 +246,8 @@ body {
display: none;
}
.customize-close-overlay:focus,
.customize-close-overlay:hover,
.customize-overlay-close:focus,
.customize-overlay-close:hover,
.customize-controls-close:focus,
.customize-controls-close:hover,
.control-panel-back:focus,
@ -256,26 +262,20 @@ body {
box-shadow: none;
}
.customize-overlay-close:before,
.customize-controls-close:before {
font: normal 22px/1 dashicons;
font: normal 22px/45px dashicons;
content: "\f335";
position: relative;
top: 7px;
top: 1px;
left: 13px;
}
.customize-close-overlay:before {
font: normal 22px/1 dashicons;
content: "\f335";
position: relative;
top: 3px;
}
.control-panel-back:before {
font: normal 20px/1 dashicons;
font: normal 20px/45px dashicons;
content: "\f341";
position: relative;
top: 7px;
top: 1px;
left: 13px;
}

File diff suppressed because one or more lines are too long

View File

@ -135,8 +135,8 @@ do_action( 'customize_controls_print_scripts' );
<span class="control-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>
</div>
<div class="secondary-actions">
<button type="button" class="dashicons dashicons-no customize-close-overlay">
<span class="screen-reader-text"><?php _e( 'Close' ); ?></span>
<button type="button" class="customize-overlay-close">
<span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span>
</button>
</div>
</div>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta3-31983';
$wp_version = '4.2-beta3-31984';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.