WordPress.org

Make WordPress Core

Changeset 41309


Ignore:
Timestamp:
08/23/2017 05:14:25 PM (10 months ago)
Author:
melchoyce
Message:

Widgets: Add grey background behind image widgets.

When an image in the image widget isn't full-width, it looks like it's floating. This adds a grey background behind images to help ground them in the widget.

Props mrasharirfan.
Fixes #41630.

File:
1 edited

Legend:

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

    r41252 r41309  
    9393
    9494.media-widget-control .media-widget-preview {
     95    background: #f1f1f1;
    9596    text-align: center;
    9697}
     
    107108.media-widget-control .media-widget-preview img {
    108109    max-width: 100%;
     110    vertical-align: middle;
    109111}
    110112.media-widget-control .media-widget-preview .wp-video-shortcode {
Note: See TracChangeset for help on using the changeset viewer.