Making WordPress.org


Ignore:
Timestamp:
02/11/2019 11:12:54 PM (6 years ago)
Author:
coffee2code
Message:

Theme Directory: Prevent clipping bottom portion of theme screenshots in theme browser.

Props pratikthink, presskopp, ilovewpcom.
Fixes #3777.

File:
1 edited

Legend:

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

    r7967 r8222  
    169169 * Theme Screenshot
    170170 *
    171  * Has a fixed aspect ratio of 1.5 to 1 regardless of screenshot size
     171 * Has a fixed aspect ratio of 1.33 to 1 regardless of screenshot size
    172172 * It is also responsive.
    173173 */
     
    182182    content: '';
    183183    display: block;
    184     padding-top: 66.66666%; /* using a 3/2 aspect ratio */
    185184}
    186185
     
    193192    height: auto;
    194193    left: 0;
    195     position: absolute;
     194    position: inherit;
    196195    top: 0;
    197196    -webkit-transform: translateZ( 0 );
Note: See TracChangeset for help on using the changeset viewer.