From dc6246a5488242de0092c273ff6b1f29e6028563 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 27 Feb 2015 22:12:52 +0000 Subject: [PATCH] In the `Insert From URL` state of the `Post` frame, add the necessary CSS for focus styles for images. Example image to insert: https://flic.kr/p/rnsm5M See #28820. git-svn-id: https://develop.svn.wordpress.org/trunk@31585 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/css/media-views.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index 2157a3c9ef..801cdf86eb 100644 --- a/src/wp-includes/css/media-views.css +++ b/src/wp-includes/css/media-views.css @@ -1798,11 +1798,18 @@ overflow: auto; } -.embed-preview img, .embed-preview iframe, .embed-preview embed { +.embed-preview img, +.embed-preview iframe, +.embed-preview embed { max-width: 100%; } +.embed-preview a { + display: inline-block; +} + .embed-preview img { + display: block; height: auto; }