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
*/
.theme-browser .theme.active .theme-name {
background: #0074a2;
background: #2f2f2f;
color: #fff;
padding-left: 110px;
font-weight: 300;
-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);
}
.theme-browser .theme.active .theme-name span {
font-weight: 600;
}
.theme-browser .theme.active .theme-actions {
top: 0;
right: 0;
background: #2f2f2f;
height: 48px;
background: rgba(49,49,49,0.7);
border-right: none;
opacity: 1;
line-height: 48px;
padding: 0 10px;
z-index: 1;
}
.theme-browser .theme.active .theme-actions .button {
float: left;
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.active .theme-actions .button-primary {
margin-left: 0;
}
.theme-browser .theme .theme-author {
@@ -7133,11 +7122,6 @@ body.folded .theme-overlay .theme-wrap {
}
@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,
.theme-overlay .theme-wrap {
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;
}
.theme-browser .theme.active .theme-name span {
/* Hide the "Active: " label on smaller screens. */
display: none;
}
.theme-overlay .theme-screenshots {
width: 40%;
}
@@ -7160,6 +7149,10 @@ body.folded .theme-overlay .theme-wrap {
.single-theme .theme-wrap {
padding: 10px;
}
.theme-browser .theme .theme-actions {
padding: 5px 10px 4px 10px;
}
}
@media only screen and (max-width: 480px) {
@@ -7180,14 +7173,6 @@ body.folded .theme-overlay .theme-wrap {
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 {
position: relative;
left: auto;