More betterer theme screenshot scaling when the admin menu is folded. props andrewspittle. fixes #22794.

git-svn-id: http://core.svn.wordpress.org/trunk@24834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2013-07-28 23:24:17 +00:00
parent ac1f98d4ce
commit 8d40c02ac4

View File

@ -5314,6 +5314,54 @@ h3.available-themes {
margin: 0;
}
/* Allow for three-up in small windows when sidebar is collapsed */
@media only screen and (max-width: 1200px) {
.folded .available-theme,
.folded .available-theme .screenshot {
width: 300px;
}
.folded .available-theme .screenshot {
height: 225px;
}
.folded #current-theme img {
width: 300px;
}
.folded #current-theme.has-screenshot {
padding-left: 330px;
}
.folded #current-theme img {
margin-left: -330px;
}
}
/* Adjust three-up display in smaller windows when sidebar is collapsed */
@media only screen and (max-width: 1079px) {
.folded .available-theme,
.folded .available-theme .screenshot {
width: 270px;
}
.folded .available-theme .screenshot {
height: 203px;
}
.folded #current-theme img {
width: 270px;
}
.folded #current-theme.has-screenshot {
padding-left: 300px;
}
.folded #current-theme img {
margin-left: -300px;
}
}
/* Allow for three-up on 1024px wide screens, e.g. tablets */
@media only screen and (max-width: 1200px) {
.available-theme,