From f3363250d70a8e961c44dac544afcb20a0e94704 Mon Sep 17 00:00:00 2001 From: Mel Choyce Date: Wed, 23 Aug 2017 17:14:25 +0000 Subject: [PATCH] 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 --- src/wp-admin/css/widgets.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/css/widgets.css b/src/wp-admin/css/widgets.css index a4084137a0..cdcc34f128 100644 --- a/src/wp-admin/css/widgets.css +++ b/src/wp-admin/css/widgets.css @@ -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;