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:
parent
c996169c04
commit
eafbdb0a2f
|
@ -197,7 +197,7 @@ body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.customize-close-overlay,
|
.customize-overlay-close,
|
||||||
.customize-controls-close {
|
.customize-controls-close {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -205,19 +205,25 @@ body {
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 45px;
|
width: 45px;
|
||||||
height: 45px;
|
height: 45px;
|
||||||
padding-left: 2px;
|
padding: 0 0 0 2px;
|
||||||
background: #eee;
|
background: #eee;
|
||||||
border: none;
|
border: none;
|
||||||
border-left: 1px solid #ddd;
|
border-left: 1px solid #ddd;
|
||||||
color: #444;
|
color: #444;
|
||||||
|
text-align: right;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
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;
|
right: auto;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
border-left: 0;
|
||||||
|
border-right: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-panel-back {
|
.control-panel-back {
|
||||||
|
@ -240,8 +246,8 @@ body {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.customize-close-overlay:focus,
|
.customize-overlay-close:focus,
|
||||||
.customize-close-overlay:hover,
|
.customize-overlay-close:hover,
|
||||||
.customize-controls-close:focus,
|
.customize-controls-close:focus,
|
||||||
.customize-controls-close:hover,
|
.customize-controls-close:hover,
|
||||||
.control-panel-back:focus,
|
.control-panel-back:focus,
|
||||||
|
@ -256,26 +262,20 @@ body {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.customize-overlay-close:before,
|
||||||
.customize-controls-close:before {
|
.customize-controls-close:before {
|
||||||
font: normal 22px/1 dashicons;
|
font: normal 22px/45px dashicons;
|
||||||
content: "\f335";
|
content: "\f335";
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 7px;
|
top: 1px;
|
||||||
right: 13px;
|
right: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.customize-close-overlay:before {
|
|
||||||
font: normal 22px/1 dashicons;
|
|
||||||
content: "\f335";
|
|
||||||
position: relative;
|
|
||||||
top: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control-panel-back:before {
|
.control-panel-back:before {
|
||||||
font: normal 20px/1 dashicons;
|
font: normal 20px/45px dashicons;
|
||||||
content: "\f345";
|
content: "\f345";
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 7px;
|
top: 1px;
|
||||||
right: 13px;
|
right: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -197,7 +197,7 @@ body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.customize-close-overlay,
|
.customize-overlay-close,
|
||||||
.customize-controls-close {
|
.customize-controls-close {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -205,19 +205,25 @@ body {
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 45px;
|
width: 45px;
|
||||||
height: 45px;
|
height: 45px;
|
||||||
padding-right: 2px;
|
padding: 0 2px 0 0;
|
||||||
background: #eee;
|
background: #eee;
|
||||||
border: none;
|
border: none;
|
||||||
border-right: 1px solid #ddd;
|
border-right: 1px solid #ddd;
|
||||||
color: #444;
|
color: #444;
|
||||||
|
text-align: left;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
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;
|
left: auto;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
border-right: 0;
|
||||||
|
border-left: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-panel-back {
|
.control-panel-back {
|
||||||
|
@ -240,8 +246,8 @@ body {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.customize-close-overlay:focus,
|
.customize-overlay-close:focus,
|
||||||
.customize-close-overlay:hover,
|
.customize-overlay-close:hover,
|
||||||
.customize-controls-close:focus,
|
.customize-controls-close:focus,
|
||||||
.customize-controls-close:hover,
|
.customize-controls-close:hover,
|
||||||
.control-panel-back:focus,
|
.control-panel-back:focus,
|
||||||
|
@ -256,26 +262,20 @@ body {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.customize-overlay-close:before,
|
||||||
.customize-controls-close:before {
|
.customize-controls-close:before {
|
||||||
font: normal 22px/1 dashicons;
|
font: normal 22px/45px dashicons;
|
||||||
content: "\f335";
|
content: "\f335";
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 7px;
|
top: 1px;
|
||||||
left: 13px;
|
left: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.customize-close-overlay:before {
|
|
||||||
font: normal 22px/1 dashicons;
|
|
||||||
content: "\f335";
|
|
||||||
position: relative;
|
|
||||||
top: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control-panel-back:before {
|
.control-panel-back:before {
|
||||||
font: normal 20px/1 dashicons;
|
font: normal 20px/45px dashicons;
|
||||||
content: "\f341";
|
content: "\f341";
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 7px;
|
top: 1px;
|
||||||
left: 13px;
|
left: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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>
|
<span class="control-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="secondary-actions">
|
<div class="secondary-actions">
|
||||||
<button type="button" class="dashicons dashicons-no customize-close-overlay">
|
<button type="button" class="customize-overlay-close">
|
||||||
<span class="screen-reader-text"><?php _e( 'Close' ); ?></span>
|
<span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue