Make WordPress Core

Changeset 20391


Ignore:
Timestamp:
04/07/2012 12:10:22 AM (13 years ago)
Author:
koopersmith
Message:

Theme Customizer: Move 'collapse' button to footer and add a visible text label. see #19910.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.dev.css

    r20383 r20391  
    51325132.wp-full-overlay .collapse-sidebar {
    51335133    position: absolute;
    5134     top: 13px;
     5134    bottom: 13px;
    51355135    left: 265px;
    51365136    z-index: 50;
     
    51455145    left: 315px;
    51465146}
    5147 .wp-full-overlay .collapse-sidebar span {
     5147.wp-full-overlay .collapse-sidebar-arrow {
    51485148    margin-top: 2px;
    51495149    margin-left: 2px;
     
    51535153    background: transparent url('../../wp-admin/images/arrows.png') no-repeat 0 -72px;
    51545154}
    5155 .wp-full-overlay.collapsed .collapse-sidebar span {
     5155.wp-full-overlay.collapsed .collapse-sidebar-arrow {
    51565156    background-position: 0 -108px;
     5157}
     5158
     5159.wp-full-overlay .collapse-sidebar-label {
     5160    text-align: right;
     5161    position: absolute;
     5162    right: 100%;
     5163    color: #aaa;
     5164    line-height: 20px;
     5165    margin-right: 10px;
     5166}
     5167.wp-full-overlay.collapsed .collapse-sidebar-label {
     5168    display: none;
     5169}
     5170.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-label {
     5171    color: #999;
    51575172}
    51585173
     
    51945209}
    51955210
     5211#customize-container .collapse-sidebar {
     5212    bottom: 16px;
     5213}
     5214
    51965215#theme-installer {
    51975216    display: none;
  • trunk/wp-admin/includes/class-wp-theme-install-list-table.php

    r20141 r20391  
    214214        <div id="theme-installer" class="wp-full-overlay">
    215215            <a href="#" class="close-full-overlay"><?php printf( __( '&larr; Return to %s' ), get_admin_page_title() ); ?></a>
    216             <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>"><span></span></a>
     216            <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
     217                <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
     218                <span class="collapse-sidebar-arrow"></span>
     219            </a>
    217220            <div class="wp-full-overlay-sidebar">
    218221                <div class="wp-full-overlay-header"></div>
    219222                <div class="install-theme-info"></div>
     223                <div class="wp-full-overlay-footer"></div>
    220224            </div>
    221225            <div class="wp-full-overlay-main"></div>
  • trunk/wp-includes/class-wp-customize.php

    r20319 r20391  
    305305            <input type="hidden" class="admin-url" value="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>" />
    306306            <a href="#" class="close-full-overlay"><?php printf( __( '&larr; Return to %s' ), get_admin_page_title() ); ?></a>
    307             <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>"><span></span></a>
     307            <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
     308                <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
     309                <span class="collapse-sidebar-arrow"></span>
     310            </a>
    308311        </div>
    309312        <?php
Note: See TracChangeset for help on using the changeset viewer.