Customize: Make the media control buttons natural-width.

Natural-width buttons are better for translations, and don't feel as
overpowering as the half-width (and full-width) buttons.

Props melchoyce, timmydcrawford, afercia.
Fixes #40220.


git-svn-id: https://develop.svn.wordpress.org/trunk@40653 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2017-05-12 17:50:00 +00:00
parent 2596b5ac1c
commit c29cab4491
2 changed files with 15 additions and 21 deletions

View File

@ -710,7 +710,9 @@ p.customize-section-description {
padding-top: 7px;
}
.customize-control .thumbnail-image {
.customize-control .thumbnail-image,
.customize-control-header .current,
.customize-control .wp-media-wrapper.wp-video {
line-height: 0;
}
@ -932,12 +934,8 @@ p.customize-section-description {
/* Media controls */
.customize-control .attachment-media-view .actions {
margin-top: 8px;
}
.customize-control-header .current {
margin-bottom: 8px;
.customize-control .actions .button {
margin-top: 12px;
}
.customize-control-header .actions,
@ -965,9 +963,9 @@ p.customize-section-description {
.customize-control .attachment-media-view .upload-button,
.customize-control-header button.new,
.customize-control-header button.remove {
white-space: normal;
width: 48%;
width: auto;
height: auto;
white-space: normal;
}
.customize-control .attachment-media-view .thumbnail,
@ -1013,7 +1011,7 @@ p.customize-section-description {
.customize-control-header .header-view {
position: relative;
width: 100%;
margin-bottom: 5px;
margin-bottom: 12px;
}
.customize-control-header .header-view:last-child {
@ -1137,13 +1135,7 @@ p.customize-section-description {
.customize-control .attachment-media-view .remove-button,
.customize-control .attachment-media-view .default-button,
.customize-control-header .remove {
float: left;
margin-right: 3px;
}
.customize-control .attachment-media-view .upload-button,
.customize-control-header .new {
float: right;
margin-right: 8px;
}
/* Background position control */

View File

@ -68,16 +68,18 @@
.media-widget-buttons {
text-align: left;
margin-bottom: 10px;
margin-top: 0;
}
.media-widget-control .media-widget-buttons .button {
margin-left: 8px;
width: auto;
height: auto;
margin-top: 12px;
white-space: normal;
}
.media-widget-control:not(.selected) .media-widget-buttons .button,
.media-widget-buttons .button:first-child {
margin-left: 0;
margin-right: 8px;
}
.media-widget-control .placeholder {