Fix collapse button and return link markup for theme install preview. Props koopersmith. fixes #20800

git-svn-id: http://core.svn.wordpress.org/trunk@20968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-06-01 15:03:50 +00:00
parent 9b39ae6629
commit cedff2638e
3 changed files with 11 additions and 22 deletions

View File

@ -1590,12 +1590,6 @@ table .column-rating {
right: 0;
}
/* Return and close buttons. */
.wp-full-overlay .close-full-overlay {
left: auto;
right: 20px;
}
/* Collapse Button */
.wp-full-overlay .collapse-sidebar {
left: auto;

View File

@ -5331,19 +5331,11 @@ body.full-overlay-active {
overflow: auto;
}
/* Return and close buttons. */
.wp-full-overlay .collapse-sidebar,
/* Close Link */
.wp-full-overlay .close-full-overlay {
z-index: 50;
position: absolute;
text-decoration: none;
}
.wp-full-overlay .close-full-overlay {
top: 15px;
left: 20px;
}
/* Collapse Button */
.wp-full-overlay .collapse-sidebar {
position: absolute;
@ -5355,6 +5347,7 @@ body.full-overlay-active {
height: 19px;
padding: 0;
border-radius: 50%;
text-decoration: none;
}
.wp-full-overlay.collapsed .collapse-sidebar {

View File

@ -251,17 +251,19 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
function theme_installer() {
?>
<div id="theme-installer" class="wp-full-overlay">
<a href="#" class="close-full-overlay"><?php printf( __( '&larr; Return to %s' ), get_admin_page_title() ); ?></a>
<a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
<span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
<span class="collapse-sidebar-arrow"></span>
</a>
<div class="wp-full-overlay-sidebar">
<div class="wp-full-overlay-header"></div>
<div class="wp-full-overlay-header">
<a href="#" class="close-full-overlay"><?php _e( '&larr; Close' ); ?></a>
</div>
<div class="wp-full-overlay-sidebar-content">
<div class="install-theme-info"></div>
</div>
<div class="wp-full-overlay-footer"></div>
<div class="wp-full-overlay-footer">
<a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
<span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
<span class="collapse-sidebar-arrow"></span>
</a>
</div>
</div>
<div class="wp-full-overlay-main"></div>
</div>