From f492a8f7dc53c03c1f749074285091617e9cab30 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 16 Dec 2014 15:13:24 +0000 Subject: [PATCH] In response to regressions on .com, fix MEjs styles for screen reader text and overflow on the volume slider. Props obenland. See #30281. Built from https://develop.svn.wordpress.org/trunk@30907 git-svn-id: http://core.svn.wordpress.org/trunk@30897 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../js/mediaelement/wp-mediaelement.css | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/wp-includes/js/mediaelement/wp-mediaelement.css b/wp-includes/js/mediaelement/wp-mediaelement.css index 65fc8eaff4..e724a15021 100644 --- a/wp-includes/js/mediaelement/wp-mediaelement.css +++ b/wp-includes/js/mediaelement/wp-mediaelement.css @@ -13,6 +13,10 @@ background: #222; } +.mejs-controls a.mejs-horizontal-volume-slider { + display: table; +} + .mejs-controls .mejs-time-rail .mejs-time-loaded, .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { background: #fff; @@ -33,6 +37,31 @@ border-radius: 0; } +.mejs-controls .mejs-offscreen { + clip: rect(1px, 1px, 1px, 1px); + position: absolute; +} + +.mejs-controls a:focus > .mejs-offscreen { + background-color: #f1f1f1; + border-radius: 3px; + box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); + clip: auto; + color: #21759b; + display: block; + font-size: 14px; + font-weight: bold; + height: auto; + line-height: normal; + padding: 15px 23px 14px; + position: absolute; + left: 0; + top: 15px; + text-decoration: none; + text-transform: none; + width: auto; +} + .mejs-overlay-loading { background: transparent; }