Customizer: Improve the overlay close button for iOS.

see #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31984 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-04-02 17:15:08 +00:00
parent d92cc07d91
commit 340cb573ae
2 changed files with 18 additions and 18 deletions

View File

@ -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;
} }

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> <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>