Themes: Refine how we display the current theme.

props shaunandrews, kwight, matveb.
see #26003.

Built from https://develop.svn.wordpress.org/trunk@26681


git-svn-id: http://core.svn.wordpress.org/trunk@26571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-12-05 18:42:16 +00:00
parent 8a2e7789f0
commit 72f9712a1f
5 changed files with 48 additions and 74 deletions

View File

@ -6510,37 +6510,26 @@ span.imgedit-scale-warn {
* The currently active theme * The currently active theme
*/ */
.theme-browser .theme.active .theme-name { .theme-browser .theme.active .theme-name {
background: #0074a2; background: #2f2f2f;
color: #fff; color: #fff;
padding-left: 110px;
font-weight: 300;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
} }
.theme-browser .theme.active .theme-name span {
font-weight: 600;
}
.theme-browser .theme.active .theme-actions { .theme-browser .theme.active .theme-actions {
top: 0; background: rgba(49,49,49,0.7);
right: 0; border-right: none;
background: #2f2f2f;
height: 48px;
opacity: 1; opacity: 1;
line-height: 48px;
padding: 0 10px;
z-index: 1;
} }
.theme-browser .theme.active .theme-actions .button { .theme-browser .theme.active .theme-actions .button-primary {
float: left; margin-left: 0;
margin-top: 10px;
}
.theme-browser .theme.active .current-label {
font-size: 13px;
font-weight: 400;
color: #ccc;
margin-right: 5px;
}
.theme-browser .theme.active .theme-update {
top: 48px;
} }
.theme-browser .theme .theme-author { .theme-browser .theme .theme-author {
@ -7133,11 +7122,6 @@ body.folded .theme-overlay .theme-wrap {
} }
@media only screen and (max-width: 780px) { @media only screen and (max-width: 780px) {
.theme-browser .theme.active .theme-actions .button {
margin-top: 6px;
margin-left: -3px
}
body.folded .theme-overlay .theme-wrap, body.folded .theme-overlay .theme-wrap,
.theme-overlay .theme-wrap { .theme-overlay .theme-wrap {
top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */ top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */
@ -7150,6 +7134,11 @@ body.folded .theme-overlay .theme-wrap {
position: fixed; position: fixed;
} }
.theme-browser .theme.active .theme-name span {
/* Hide the "Active: " label on smaller screens. */
display: none;
}
.theme-overlay .theme-screenshots { .theme-overlay .theme-screenshots {
width: 40%; width: 40%;
} }
@ -7160,6 +7149,10 @@ body.folded .theme-overlay .theme-wrap {
.single-theme .theme-wrap { .single-theme .theme-wrap {
padding: 10px; padding: 10px;
} }
.theme-browser .theme .theme-actions {
padding: 5px 10px 4px 10px;
}
} }
@media only screen and (max-width: 480px) { @media only screen and (max-width: 480px) {
@ -7180,14 +7173,6 @@ body.folded .theme-overlay .theme-wrap {
margin-right: 0; margin-right: 0;
} }
.theme .theme-actions .button {
margin-top: -4px;
}
.theme.active .theme-actions .button {
margin-top: 6px;
margin-left: 0;
}
.theme-overlay .theme-actions .delete-theme { .theme-overlay .theme-actions .delete-theme {
position: relative; position: relative;
left: auto; left: auto;

File diff suppressed because one or more lines are too long

View File

@ -6510,37 +6510,26 @@ span.imgedit-scale-warn {
* The currently active theme * The currently active theme
*/ */
.theme-browser .theme.active .theme-name { .theme-browser .theme.active .theme-name {
background: #0074a2; background: #2f2f2f;
color: #fff; color: #fff;
padding-right: 110px;
font-weight: 300;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
} }
.theme-browser .theme.active .theme-name span {
font-weight: 600;
}
.theme-browser .theme.active .theme-actions { .theme-browser .theme.active .theme-actions {
top: 0; background: rgba(49,49,49,0.7);
left: 0; border-left: none;
background: #2f2f2f;
height: 48px;
opacity: 1; opacity: 1;
line-height: 48px;
padding: 0 10px;
z-index: 1;
} }
.theme-browser .theme.active .theme-actions .button { .theme-browser .theme.active .theme-actions .button-primary {
float: right; margin-right: 0;
margin-top: 10px;
}
.theme-browser .theme.active .current-label {
font-size: 13px;
font-weight: 400;
color: #ccc;
margin-left: 5px;
}
.theme-browser .theme.active .theme-update {
top: 48px;
} }
.theme-browser .theme .theme-author { .theme-browser .theme .theme-author {
@ -7133,11 +7122,6 @@ body.folded .theme-overlay .theme-wrap {
} }
@media only screen and (max-width: 780px) { @media only screen and (max-width: 780px) {
.theme-browser .theme.active .theme-actions .button {
margin-top: 6px;
margin-right: -3px
}
body.folded .theme-overlay .theme-wrap, body.folded .theme-overlay .theme-wrap,
.theme-overlay .theme-wrap { .theme-overlay .theme-wrap {
top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */ top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */
@ -7150,6 +7134,11 @@ body.folded .theme-overlay .theme-wrap {
position: fixed; position: fixed;
} }
.theme-browser .theme.active .theme-name span {
/* Hide the "Active: " label on smaller screens. */
display: none;
}
.theme-overlay .theme-screenshots { .theme-overlay .theme-screenshots {
width: 40%; width: 40%;
} }
@ -7160,6 +7149,10 @@ body.folded .theme-overlay .theme-wrap {
.single-theme .theme-wrap { .single-theme .theme-wrap {
padding: 10px; padding: 10px;
} }
.theme-browser .theme .theme-actions {
padding: 5px 10px 4px 10px;
}
} }
@media only screen and (max-width: 480px) { @media only screen and (max-width: 480px) {
@ -7180,14 +7173,6 @@ body.folded .theme-overlay .theme-wrap {
margin-left: 0; margin-left: 0;
} }
.theme .theme-actions .button {
margin-top: -4px;
}
.theme.active .theme-actions .button {
margin-top: 6px;
margin-right: 0;
}
.theme-overlay .theme-actions .delete-theme { .theme-overlay .theme-actions .delete-theme {
position: relative; position: relative;
right: auto; right: auto;

File diff suppressed because one or more lines are too long

View File

@ -221,12 +221,16 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
<div class="theme-screenshot blank"></div> <div class="theme-screenshot blank"></div>
<# } #> <# } #>
<div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div> <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
<# if ( data.active ) { #>
<h3 class="theme-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>
<# } else { #>
<h3 class="theme-name">{{{ data.name }}}</h3> <h3 class="theme-name">{{{ data.name }}}</h3>
<# } #>
<div class="theme-actions"> <div class="theme-actions">
<# if ( data.active ) { #> <# if ( data.active ) { #>
<span class="current-label"><?php _e( 'Current Theme' ); ?></span>
<# if ( data.actions.customize ) { #> <# if ( data.actions.customize ) { #>
<a class="button button-primary hide-if-no-customize" href="{{ data.actions.customize }}"><?php _e( 'Customize' ); ?></a> <a class="button button-primary hide-if-no-customize" href="{{ data.actions.customize }}"><?php _e( 'Customize' ); ?></a>
<# } #> <# } #>