mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Themes: Use consistent thumbnail sizes in Customizer preview screen.
This ensures displaying theme thumbnails in consistent sizes in Customizer theme preview. Props poena, karpstrucking, costdev, audrasjb. Fixes #54188. git-svn-id: https://develop.svn.wordpress.org/trunk@53191 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
23aa7715b0
commit
dbb0e6345e
@ -1852,6 +1852,22 @@ body.full-overlay-active {
|
||||
margin: 15px 0;
|
||||
width: 258px;
|
||||
border: 1px solid #c3c4c7;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.install-theme-info .theme-screenshot > img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.install-theme-info .theme-screenshot:after {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 66.66666666%;
|
||||
}
|
||||
|
||||
.install-theme-info .theme-details {
|
||||
|
||||
@ -456,7 +456,9 @@ if ( $tab ) {
|
||||
?>
|
||||
</span>
|
||||
|
||||
<img class="theme-screenshot" src="{{ data.screenshot_url }}?ver={{ data.version }}" alt="" />
|
||||
<div class="theme-screenshot">
|
||||
<img class="theme-screenshot" src="{{ data.screenshot_url }}?ver={{ data.version }}" alt="" />
|
||||
</div>
|
||||
|
||||
<div class="theme-details">
|
||||
<# if ( data.rating ) { #>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user