From 60f395e4c28cdc625114980910817dd7caf68526 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 11 May 2014 02:23:14 +0000 Subject: [PATCH] Update the default (WP-defined) styles for MediaElement players to be more in-line with our flat aesthetic. Use the new official colors. Props celloexpressions. Fixes #27516. Built from https://develop.svn.wordpress.org/trunk@28365 git-svn-id: http://core.svn.wordpress.org/trunk@28193 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../js/mediaelement/wp-mediaelement.css | 36 ++++++++++++++++--- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/wp-includes/js/mediaelement/wp-mediaelement.css b/wp-includes/js/mediaelement/wp-mediaelement.css index 51fcb6765b..18a99936c9 100644 --- a/wp-includes/js/mediaelement/wp-mediaelement.css +++ b/wp-includes/js/mediaelement/wp-mediaelement.css @@ -6,16 +6,42 @@ font-family: Helvetica, Arial; } -.mejs-container, .mejs-embed, .mejs-embed body { - background: #000; +.mejs-container, +.mejs-embed, +.mejs-embed body, +.mejs-container .mejs-controls { + background: #222; } -.mejs-controls .mejs-time-rail .mejs-time-loaded { - background: #21759b; +.mejs-controls .mejs-time-rail .mejs-time-loaded, +.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { + background: #fff; } .mejs-controls .mejs-time-rail .mejs-time-current { - background: #d54e21; + background: #0074a2; +} + +.mejs-controls .mejs-time-rail .mejs-time-total, +.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total { + background: rgba(255, 255, 255, .33); +} + +.mejs-controls .mejs-time-rail span, +.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total, +.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { + border-radius: 0; +} + +.mejs-overlay-loading { + background: transparent; +} + +/* Override theme styles that may conflict with controls. */ +.mejs-controls button:hover { + border: none; + -webkit-box-shadow: none; + box-shadow: none; } .me-cannotplay {