diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
index 9a95eb1..ed9de9e 100644
|
|
body { |
465 | 465 | margin-bottom: 18px; |
466 | 466 | } |
467 | 467 | |
468 | | #customize-control-header_image .uploaded button, |
469 | | #customize-control-header_image .default button { |
| 468 | #customize-control-header_image .uploaded button:not(.random), |
| 469 | #customize-control-header_image .default button:not(.random) { |
470 | 470 | width: 100%; |
471 | 471 | padding: 0; |
472 | 472 | margin: 0; |
… |
… |
body { |
474 | 474 | border: none; |
475 | 475 | color: inherit; |
476 | 476 | cursor: pointer; |
477 | | outline: none; |
478 | 477 | } |
479 | 478 | |
480 | 479 | #customize-control-header_image button img { |
… |
… |
body { |
579 | 578 | height: 40px; |
580 | 579 | } |
581 | 580 | |
582 | | #customize-control-header_image .random .inner { |
583 | | display: block; |
| 581 | #customize-control-header_image button.random { |
| 582 | width: 100%; |
| 583 | height: 40px; |
| 584 | } |
| 585 | |
| 586 | #customize-control-header_image button.random .dice { |
| 587 | margin-top: 4px; |
584 | 588 | } |
585 | 589 | |
586 | | #customize-control-header_image .placeholder:hover .dice { |
| 590 | #customize-control-header_image .placeholder:hover .dice, |
| 591 | #customize-control-header_image .header-view:hover > button.random .dice { |
587 | 592 | -webkit-animation: dice-color-change 3s infinite; |
588 | 593 | -ms-animation: dice-color-change 3s infinite; |
589 | 594 | animation: dice-color-change 3s infinite; |
diff --git src/wp-includes/class-wp-customize-control.php src/wp-includes/class-wp-customize-control.php
index c163247..f93a099 100644
|
|
final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control |
771 | 771 | ?> |
772 | 772 | <script type="text/template" id="tmpl-header-choice"> |
773 | 773 | <# if (data.random) { #> |
774 | | |
775 | | <div class="placeholder random"> |
776 | | <div class="inner"> |
777 | | <button type="button"><span class="dashicons dashicons-randomize dice"></span> |
778 | | <# if ( data.type === 'uploaded' ) { #> |
779 | | <?php _e( 'Randomize uploaded headers' ); ?> |
780 | | <# } else if ( data.type === 'default' ) { #> |
781 | | <?php _e( 'Randomize suggested headers' ); ?> |
782 | | <# } #> |
| 774 | <button type="button" class="button display-options random"> |
| 775 | <span class="dashicons dashicons-randomize dice"></span> |
| 776 | <# if ( data.type === 'uploaded' ) { #> |
| 777 | <?php _e( 'Randomize uploaded headers' ); ?> |
| 778 | <# } else if ( data.type === 'default' ) { #> |
| 779 | <?php _e( 'Randomize suggested headers' ); ?> |
| 780 | <# } #> |
783 | 781 | </button> |
784 | | </div> |
785 | | </div> |
786 | 782 | |
787 | 783 | <# } else { #> |
788 | 784 | |
diff --git src/wp-includes/js/customize-views.js src/wp-includes/js/customize-views.js
index 39ad65b..8dbc0c1 100644
|
|
|
121 | 121 | this.$el.html(this.template(this.extendedModel())); |
122 | 122 | |
123 | 123 | if (this.model.get('random')) { |
124 | | this.$el.addClass('button display-options'); |
125 | 124 | this.setPlaceholder(40); |
126 | 125 | } |