mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Administration: Fix minor misalignments caused by the button-link
CSS class.
After [40059] the CSS class `button-link` uses `text-align: left` by default. This change now requires to limit as much as possible the use of `button-link` to controls that should really look like links and to explicitly set `text-align: center` in a few other cases. Fixes #39983. Built from https://develop.svn.wordpress.org/trunk@40358 git-svn-id: http://core.svn.wordpress.org/trunk@40265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
35d8daf000
commit
9c360b1ab8
@ -150,6 +150,7 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
||||||
@ -521,6 +522,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#available-menu-items .accordion-section-title .no-items,
|
#available-menu-items .accordion-section-title .no-items,
|
||||||
@ -612,6 +614,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#available-menu-items .menu-item-handle .item-add:focus {
|
#available-menu-items .menu-item-handle .item-add:focus {
|
||||||
|
2
wp-admin/css/customize-nav-menus-rtl.min.css
vendored
2
wp-admin/css/customize-nav-menus-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -150,6 +150,7 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
||||||
@ -521,6 +522,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#available-menu-items .accordion-section-title .no-items,
|
#available-menu-items .accordion-section-title .no-items,
|
||||||
@ -612,6 +614,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#available-menu-items .menu-item-handle .item-add:focus {
|
#available-menu-items .menu-item-handle .item-add:focus {
|
||||||
|
2
wp-admin/css/customize-nav-menus.min.css
vendored
2
wp-admin/css/customize-nav-menus.min.css
vendored
File diff suppressed because one or more lines are too long
@ -183,19 +183,28 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background: none;
|
||||||
|
color: #666;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
cursor: pointer;
|
||||||
|
outline: none;
|
||||||
-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;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-close.button-link {
|
.media-modal-close:hover,
|
||||||
text-decoration: none;
|
.media-modal-close:active {
|
||||||
|
color: #00a0d2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-close:active {
|
.media-modal-close:focus {
|
||||||
-webkit-box-shadow: none;
|
color: #00a0d2;
|
||||||
box-shadow: none;
|
border-color: #5b9dd9;
|
||||||
|
-webkit-box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||||
|
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-close span.media-modal-icon {
|
.media-modal-close span.media-modal-icon {
|
||||||
@ -209,15 +218,6 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-close:hover .media-modal-icon:before {
|
|
||||||
color: #00a0d2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-close:active {
|
|
||||||
outline: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-content {
|
.media-modal-content {
|
||||||
|
2
wp-includes/css/media-views-rtl.min.css
vendored
2
wp-includes/css/media-views-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -183,19 +183,28 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background: none;
|
||||||
|
color: #666;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
cursor: pointer;
|
||||||
|
outline: none;
|
||||||
-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;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-close.button-link {
|
.media-modal-close:hover,
|
||||||
text-decoration: none;
|
.media-modal-close:active {
|
||||||
|
color: #00a0d2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-close:active {
|
.media-modal-close:focus {
|
||||||
-webkit-box-shadow: none;
|
color: #00a0d2;
|
||||||
box-shadow: none;
|
border-color: #5b9dd9;
|
||||||
|
-webkit-box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||||
|
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-close span.media-modal-icon {
|
.media-modal-close span.media-modal-icon {
|
||||||
@ -209,15 +218,6 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-close:hover .media-modal-icon:before {
|
|
||||||
color: #00a0d2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-close:active {
|
|
||||||
outline: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-content {
|
.media-modal-content {
|
||||||
|
2
wp-includes/css/media-views.min.css
vendored
2
wp-includes/css/media-views.min.css
vendored
File diff suppressed because one or more lines are too long
@ -93,6 +93,7 @@
|
|||||||
width: 22px;
|
width: 22px;
|
||||||
color: #72777c;
|
color: #72777c;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wp-auth-check-wrap .wp-auth-check-close:before {
|
#wp-auth-check-wrap .wp-auth-check-close:before {
|
||||||
|
2
wp-includes/css/wp-auth-check-rtl.min.css
vendored
2
wp-includes/css/wp-auth-check-rtl.min.css
vendored
@ -1 +1 @@
|
|||||||
#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;right:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 -190px 0 0;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{right:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{height:100%;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-form.loading:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;margin:-10px -10px 0 0;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transform:translateZ(0);transform:translateZ(0)}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#wp-auth-check-form.loading:before{background-image:url(../images/spinner-2x.gif)}}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:5px;left:5px;height:22px;width:22px;color:#72777c;text-decoration:none}#wp-auth-check-wrap .wp-auth-check-close:before{content:"\f158";font:400 20px/22px dashicons;speak:none;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:focus,#wp-auth-check-wrap .wp-auth-check-close:hover{color:#0073aa}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block}
|
#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;right:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 -190px 0 0;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{right:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{height:100%;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-form.loading:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;margin:-10px -10px 0 0;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transform:translateZ(0);transform:translateZ(0)}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#wp-auth-check-form.loading:before{background-image:url(../images/spinner-2x.gif)}}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:5px;left:5px;height:22px;width:22px;color:#72777c;text-decoration:none;text-align:center}#wp-auth-check-wrap .wp-auth-check-close:before{content:"\f158";font:400 20px/22px dashicons;speak:none;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:focus,#wp-auth-check-wrap .wp-auth-check-close:hover{color:#0073aa}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block}
|
@ -93,6 +93,7 @@
|
|||||||
width: 22px;
|
width: 22px;
|
||||||
color: #72777c;
|
color: #72777c;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wp-auth-check-wrap .wp-auth-check-close:before {
|
#wp-auth-check-wrap .wp-auth-check-close:before {
|
||||||
|
2
wp-includes/css/wp-auth-check.min.css
vendored
2
wp-includes/css/wp-auth-check.min.css
vendored
@ -1 +1 @@
|
|||||||
#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;left:0;right:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;left:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 0 0 -190px;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{left:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{height:100%;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-form.loading:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;margin:-10px 0 0 -10px;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transform:translateZ(0);transform:translateZ(0)}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#wp-auth-check-form.loading:before{background-image:url(../images/spinner-2x.gif)}}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:5px;right:5px;height:22px;width:22px;color:#72777c;text-decoration:none}#wp-auth-check-wrap .wp-auth-check-close:before{content:"\f158";font:400 20px/22px dashicons;speak:none;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:focus,#wp-auth-check-wrap .wp-auth-check-close:hover{color:#0073aa}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block}
|
#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;left:0;right:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;left:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 0 0 -190px;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{left:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{height:100%;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-form.loading:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;margin:-10px 0 0 -10px;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transform:translateZ(0);transform:translateZ(0)}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#wp-auth-check-form.loading:before{background-image:url(../images/spinner-2x.gif)}}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:5px;right:5px;height:22px;width:22px;color:#72777c;text-decoration:none;text-align:center}#wp-auth-check-wrap .wp-auth-check-close:before{content:"\f158";font:400 20px/22px dashicons;speak:none;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:focus,#wp-auth-check-wrap .wp-auth-check-close:hover{color:#0073aa}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block}
|
@ -163,7 +163,7 @@ function wp_print_media_templates() {
|
|||||||
|
|
||||||
<script type="text/html" id="tmpl-media-modal">
|
<script type="text/html" id="tmpl-media-modal">
|
||||||
<div class="<?php echo $class; ?>">
|
<div class="<?php echo $class; ?>">
|
||||||
<button type="button" class="button-link media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close media panel' ); ?></span></span></button>
|
<button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close media panel' ); ?></span></span></button>
|
||||||
<div class="media-modal-content"></div>
|
<div class="media-modal-content"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="media-modal-backdrop"></div>
|
<div class="media-modal-backdrop"></div>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-40357';
|
$wp_version = '4.8-alpha-40358';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user