WordPress.org

Make WordPress Core

Changeset 26660


Ignore:
Timestamp:
12/05/2013 04:56:48 AM (6 years ago)
Author:
nacin
Message:

Themes: Disable collapse actions when showing only a single theme; improve the responsive layout.

props matveb.
fixes #25962.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r26656 r26660  
    71637163        width: 50%;
    71647164    }
     7165    .single-theme .theme-wrap {
     7166        padding: 10px;
     7167    }
    71657168}
    71667169
     
    72417244        text-indent: 0;
    72427245        margin-left: -40px;
     7246    }
     7247
     7248    .single-theme .theme-wrap {
     7249        margin: 0 -12px 0 -10px;
     7250        padding: 10px;
     7251    }
     7252    .single-theme .theme-overlay .theme-about {
     7253        padding: 10px;
     7254        overflow: visible;
     7255    }
     7256    .single-theme .current-label {
     7257        display: none;
    72437258    }
    72447259}
  • trunk/src/wp-admin/js/theme.js

    r26652 r26660  
    268268
    269269        event = event || window.event;
     270
     271        // Prevent collapsing detailed view when there is only one theme available
     272        if ( themes.data.themes.length === 1 ) {
     273            return;
     274        }
    270275
    271276        // Detect if the click is inside the overlay
Note: See TracChangeset for help on using the changeset viewer.