mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Themes: If a theme only has a very-old-school 300px-wide screenshot (or narrower), don't stretch it.
props matveb. fixes #26459. git-svn-id: https://develop.svn.wordpress.org/trunk@26738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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-left: 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-left: 0;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 480px) {
|
||||
|
||||
Reference in New Issue
Block a user