Make WordPress Core

Changeset 47257


Ignore:
Timestamp:
02/11/2020 01:45:01 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Media: Improve the preview of transparent images in Image widget by using CSS3 to show a checkered background.

Props bahia0019.
Fixes #49237.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/widgets.css

    r46028 r47257  
    134134    max-width: 100%;
    135135    vertical-align: middle;
     136    background-image: linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4), linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4);
     137    background-position: 0 0, 10px 10px;
     138    background-size: 20px 20px;
    136139}
    137140.media-widget-control .media-widget-preview .wp-video-shortcode {
Note: See TracChangeset for help on using the changeset viewer.