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.


git-svn-id: https://develop.svn.wordpress.org/trunk@41309 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mel Choyce 2017-08-23 17:14:25 +00:00
parent 0549e9198a
commit f3363250d7
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,7 @@
}
.media-widget-control .media-widget-preview {
background: #f1f1f1;
text-align: center;
}
.media-widget-control .media-widget-preview .notice {
@ -106,6 +107,7 @@
}
.media-widget-control .media-widget-preview img {
max-width: 100%;
vertical-align: middle;
}
.media-widget-control .media-widget-preview .wp-video-shortcode {
background: #000;