Themes: If a theme only has a very-old-school 300px-wide screenshot (or narrower), don't stretch it.

props matveb.
fixes #26459.

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


git-svn-id: http://core.svn.wordpress.org/trunk@26627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin
2013-12-06 19:42:11 +00:00
parent 41b8584cd2
commit 3964c1f132
7 changed files with 56 additions and 3 deletions

View File

@@ -6894,6 +6894,15 @@ body.folded .theme-overlay .theme-wrap {
top: 0;
width: 100%;
}
/* Handles old 300px screenshots */
.theme-overlay.small-screenshot .theme-screenshots {
position: absolute;
width: 302px;
}
.theme-overlay.small-screenshot .theme-info {
margin-right: 350px;
width: auto;
}
/* Other screenshots, shown small and square */
.theme-overlay .screenshot.thumb {
@@ -7162,6 +7171,15 @@ body.folded .theme-overlay .theme-wrap {
.theme-browser .theme .theme-actions {
padding: 5px 10px 4px 10px;
}
.theme-overlay.small-screenshot .theme-screenshots {
position: static;
float: none;
max-width: 302px;
}
.theme-overlay.small-screenshot .theme-info {
margin-right: 0;
width: auto;
}
}
@media only screen and (max-width: 480px) {