diff --git src/wp-admin/css/themes.css src/wp-admin/css/themes.css
index a18a89a740..56fc43fc54 100644
|
|
body.full-overlay-active { |
1520 | 1520 | box-shadow: none !important; |
1521 | 1521 | -webkit-border-radius: 0 !important; |
1522 | 1522 | border-radius: 0 !important; |
1523 | | z-index: -1; /* Below device buttons */ |
1524 | 1523 | } |
1525 | 1524 | |
1526 | 1525 | .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, |
… |
… |
body.full-overlay-active { |
1622 | 1621 | background: #eee; |
1623 | 1622 | } |
1624 | 1623 | |
1625 | | .wp-full-overlay-footer .devices { |
| 1624 | .wp-full-overlay-footer .devices-wrapper { |
1626 | 1625 | float: right; |
| 1626 | } |
| 1627 | |
| 1628 | .wp-full-overlay-footer .devices { |
| 1629 | position: relative; |
1627 | 1630 | background: #eee; |
1628 | 1631 | -webkit-box-shadow: -20px 0 10px -5px #eee; |
1629 | 1632 | box-shadow: -20px 0 10px -5px #eee; |
diff --git src/wp-admin/customize.php src/wp-admin/customize.php
index f1e66ff3dd..b6c1e63827 100644
|
|
do_action( 'customize_controls_print_scripts' ); |
171 | 171 | </div> |
172 | 172 | |
173 | 173 | <div id="customize-footer-actions" class="wp-full-overlay-footer"> |
174 | | <?php $previewable_devices = $wp_customize->get_previewable_devices(); ?> |
175 | | <?php if ( ! empty( $previewable_devices ) ) : ?> |
176 | | <div class="devices"> |
177 | | <?php foreach ( (array) $previewable_devices as $device => $settings ) : ?> |
178 | | <?php |
179 | | if ( empty( $settings['label'] ) ) { |
180 | | continue; |
181 | | } |
182 | | $active = ! empty( $settings['default'] ); |
183 | | $class = 'preview-' . $device; |
184 | | if ( $active ) { |
185 | | $class .= ' active'; |
186 | | } |
187 | | ?> |
188 | | <button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>"> |
189 | | <span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span> |
190 | | </button> |
191 | | <?php endforeach; ?> |
192 | | </div> |
193 | | <?php endif; ?> |
194 | 174 | <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr( _x( 'Hide Controls', 'label for hide controls button without length constraints' ) ); ?>"> |
195 | 175 | <span class="collapse-sidebar-arrow"></span> |
196 | 176 | <span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span> |
197 | 177 | </button> |
| 178 | <?php $previewable_devices = $wp_customize->get_previewable_devices(); ?> |
| 179 | <?php if ( ! empty( $previewable_devices ) ) : ?> |
| 180 | <div class="devices-wrapper"> |
| 181 | <div class="devices"> |
| 182 | <?php foreach ( (array) $previewable_devices as $device => $settings ) : ?> |
| 183 | <?php |
| 184 | if ( empty( $settings['label'] ) ) { |
| 185 | continue; |
| 186 | } |
| 187 | $active = ! empty( $settings['default'] ); |
| 188 | $class = 'preview-' . $device; |
| 189 | if ( $active ) { |
| 190 | $class .= ' active'; |
| 191 | } |
| 192 | ?> |
| 193 | <button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>"> |
| 194 | <span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span> |
| 195 | </button> |
| 196 | <?php endforeach; ?> |
| 197 | </div> |
| 198 | </div> |
| 199 | <?php endif; ?> |
198 | 200 | </div> |
199 | 201 | </form> |
200 | 202 | <div id="customize-preview" class="wp-full-overlay-main"></div> |