WordPress.org

Make WordPress Core

Changeset 41742


Ignore:
Timestamp:
10/04/2017 06:34:44 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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

Props powerzilly, stevepuddick.
Fixes #41966. See #41948.

File:
1 edited

Legend:

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

    r41711 r41742  
    993993}
    994994
     995.imgedit-crop-wrap img {
     996    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);
     997    background-position: 0 0, 10px 10px;
     998    background-size: 20px 20px;
     999}
     1000
    9951001.imgedit-crop {
    9961002    margin: 0 8px 0 0;
Note: See TracChangeset for help on using the changeset viewer.