Making WordPress.org

Ticket #3777: meta-3777.diff

File meta-3777.diff, 1.1 KB (added by pratikthink, 5 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/css/components/_main.scss

     
    168168/**
    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 */
    174174.theme-browser .theme .theme-screenshot {
     
    181181.theme-browser .theme .theme-screenshot:after {
    182182        content: '';
    183183        display: block;
    184         padding-top: 66.66666%; /* using a 3/2 aspect ratio */
    185184}
    186185
    187186.theme-browser .theme:hover .theme-screenshot,
     
    192191.theme-browser .theme .theme-screenshot img {
    193192        height: auto;
    194193        left: 0;
    195         position: absolute;
     194        position: inherit;
    196195        top: 0;
    197196        -webkit-transform: translateZ( 0 );
    198197        transition: opacity 0.2s ease-in-out;