From 3ba8dd66042a5600b738c5b711380bb6d4849c23 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 19 Mar 2014 19:00:14 +0000 Subject: [PATCH] On attachment pages for audio and video, display players. Currently, only a link is displayed. Add minimal CSS rules for compatibility with 2011, 2012, and 2013 themes. In `prepend_attachment`, add logic to support attachment types that are not `image`. In `get_post_class()`, don't add the `has-post-thumbnail` class for attachment pages. Fixes #27243. Built from https://develop.svn.wordpress.org/trunk@27622 git-svn-id: http://core.svn.wordpress.org/trunk@27465 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- style.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/style.css b/style.css index 7fb30fff0..93cd07fd5 100644 --- a/style.css +++ b/style.css @@ -1007,6 +1007,17 @@ footer.entry-meta { margin-top: 1.571428571rem; } +/* =Single audio/video attachment view +-------------------------------------------------------------- */ + +.attachment .entry-content .mejs-audio { + max-width: 400px; +} + +.attachment .entry-content .mejs-container { + margin-bottom: 24px; +} + /* =Single image attachment view -------------------------------------------------------------- */