Making WordPress.org


Ignore:
Timestamp:
05/25/2022 02:00:00 AM (4 years ago)
Author:
dufresnesteven
Message:

wporg-themes: Adjust themes screenshot in the themes directory.

Props kafleg, poena, dd32.
Fixes #5834.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/css/components/_main.scss

    r11128 r11876  
    228228}
    229229
    230 .theme-browser .theme .theme-screenshot img {
    231         display: block;
    232         margin: 0 auto;
    233         height: auto;
    234         max-height: 300px;
     230.theme-browser .theme .theme-screenshot::before {
     231        float: left;
     232        padding-top: 75%;
     233        content: '';
     234}
     235
     236.theme-browser .theme .theme-screenshot::after {
     237        display: block;
     238        content: '';
     239        clear: both;
     240}
     241
     242.theme-browser .theme .theme-screenshot > img {
     243        position: absolute;
     244        top: 0;
    235245        left: 0;
    236         position: inherit;
    237         top: 0;
     246        right: 0;
     247        bottom: 0;
     248        width: 100%;
     249        object-fit: cover;
    238250        -webkit-transform: translateZ( 0 );
    239251        transition: opacity 0.2s ease-in-out;
Note: See TracChangeset for help on using the changeset viewer.