Making WordPress.org


Ignore:
Timestamp:
10/07/2022 04:18:45 AM (14 months ago)
Author:
dufresnesteven
Message:

wporg-themes: Add style variation previews on theme page behind a feature flag.

File:
1 edited

Legend:

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

    r12036 r12106  
    486486/* First screenshot, shown big */
    487487.theme-wrap .screenshot {
     488    margin-bottom: 0 !important;
    488489    border: 1px solid #fff;
    489490    box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.2 );
    490491    box-sizing: border-box;
    491     overflow: hidden;
    492492    position: relative;
    493493}
     
    499499}
    500500
     501.theme-wrap .screenshot.style-variation:after {
     502    display: none;
     503}
     504
    501505.theme-wrap .screenshot img {
    502506    height: auto;
     507    vertical-align: middle;
     508    width: 100%;
    503509    position: absolute;
    504510    left: 0;
    505511    top: 0;
    506     vertical-align: middle;
    507     width: 100%;
    508512}
    509513
     
    521525.theme-wrap .screenshot.blank {
    522526    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=);
     527}
     528
     529.theme-wrap .wporg-style-variations {
     530    margin: 8px 0 0 !important;
    523531}
    524532
Note: See TracChangeset for help on using the changeset viewer.