WordPress.org

Make WordPress Core

Changeset 41569


Ignore:
Timestamp:
09/22/2017 07:56:14 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Media: Improve the preview of transparent images in Attachment Details modal by using CSS3 to show a checkered background.

Props powerzilly, stevepuddick.
Fixes #41948.

File:
1 edited

Legend:

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

    r41062 r41569  
    747747    max-height: 90%;
    748748    max-height: calc( 100% - 42px ); /* leave space for actions underneath */
     749    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);
     750    background-position: 0 0, 10px 10px;
     751    background-size: 20px 20px;
    749752}
    750753
Note: See TracChangeset for help on using the changeset viewer.