Make WordPress Core

Changeset 26681


Ignore:
Timestamp:
12/05/2013 06:41:44 PM (11 years ago)
Author:
nacin
Message:

Themes: Refine how we display the current theme.

props shaunandrews, kwight, matveb.
see #26003.

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

Legend:

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

    r26677 r26681  
    65116511 */
    65126512.theme-browser .theme.active .theme-name {
    6513     background: #0074a2;
     6513    background: #2f2f2f;
    65146514    color: #fff;
     6515    padding-right: 110px;
     6516    font-weight: 300;
    65156517    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
    65166518    box-shadow:         inset 0 1px 1px rgba(0,0,0,0.5);
    65176519}
    65186520
     6521.theme-browser .theme.active .theme-name span {
     6522    font-weight: 600;
     6523}
     6524
    65196525.theme-browser .theme.active .theme-actions {
    6520     top: 0;
    6521     left: 0;
    6522     background: #2f2f2f;
    6523     height: 48px;
     6526    background: rgba(49,49,49,0.7);
     6527    border-left: none;
    65246528    opacity: 1;
    6525     line-height: 48px;
    6526     padding: 0 10px;
    6527     z-index: 1;
    6528 }
    6529 
    6530 .theme-browser .theme.active .theme-actions .button {
    6531     float: right;
    6532     margin-top: 10px;
    6533 }
    6534 
    6535 .theme-browser .theme.active .current-label {
    6536     font-size: 13px;
    6537     font-weight: 400;
    6538     color: #ccc;
    6539     margin-left: 5px;
    6540 }
    6541 
    6542 .theme-browser .theme.active .theme-update {
    6543     top: 48px;
     6529}
     6530
     6531.theme-browser .theme.active .theme-actions .button-primary {
     6532    margin-right: 0;
    65446533}
    65456534
     
    71347123
    71357124@media only screen and (max-width: 780px) {
    7136     .theme-browser .theme.active .theme-actions .button {
    7137         margin-top: 6px;
    7138         margin-right: -3px
    7139     }
    7140 
    71417125    body.folded .theme-overlay .theme-wrap,
    71427126    .theme-overlay .theme-wrap {
     
    71517135    }
    71527136
     7137    .theme-browser .theme.active .theme-name span {
     7138        /* Hide the "Active: " label on smaller screens. */
     7139        display: none;
     7140    }
     7141
    71537142    .theme-overlay .theme-screenshots {
    71547143        width: 40%;
     
    71607149    .single-theme .theme-wrap {
    71617150        padding: 10px;
     7151    }
     7152
     7153    .theme-browser .theme .theme-actions {
     7154        padding: 5px 10px 4px 10px;
    71627155    }
    71637156}
     
    71797172    .theme-overlay .theme-description {
    71807173        margin-left: 0;
    7181     }
    7182 
    7183     .theme .theme-actions .button {
    7184         margin-top: -4px;
    7185     }
    7186     .theme.active .theme-actions .button {
    7187         margin-top: 6px;
    7188         margin-right: 0;
    71897174    }
    71907175
  • trunk/src/wp-admin/themes.php

    r26638 r26681  
    222222    <# } #>
    223223    <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
    224     <h3 class="theme-name">{{{ data.name }}}</h3>
     224   
     225    <# if ( data.active ) { #>
     226        <h3 class="theme-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>
     227    <# } else { #>
     228        <h3 class="theme-name">{{{ data.name }}}</h3>
     229    <# } #>
    225230
    226231    <div class="theme-actions">
    227232
    228233    <# if ( data.active ) { #>
    229         <span class="current-label"><?php _e( 'Current Theme' ); ?></span>
    230234        <# if ( data.actions.customize ) { #>
    231235            <a class="button button-primary hide-if-no-customize" href="{{ data.actions.customize }}"><?php _e( 'Customize' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.