From: Arlo Breault Date: Wed, 5 Apr 2017 18:27:34 +0000 (-0400) Subject: Apply image styling to mw:Video / mw:Audio for Parsoid content X-Git-Tag: 1.31.0-rc.0~3593^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=7adc6d7dd7e00d62362bee114470cae879d1b1d9;p=lhc%2Fweb%2Fwiklou.git Apply image styling to mw:Video / mw:Audio for Parsoid content * For I53c6fa8d862c152bb1c8dd3ae96f4ee464a60d32 Change-Id: Icb26ffb802150c1d1f8c6e0aab05b25e503077e2 --- diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index ee18979029..b09986f278 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -46,7 +46,9 @@ sub { /** * Block media items */ -figure[typeof*='mw:Image'] { +figure[typeof*='mw:Image'], +figure[typeof*='mw:Video'], +figure[typeof*='mw:Audio'] { margin: 0; a { @@ -109,7 +111,11 @@ figure[typeof*='mw:Image'] { } figure[typeof~='mw:Image/Thumb'], -figure[typeof~='mw:Image/Frame'] { +figure[typeof~='mw:Video/Thumb'], +figure[typeof~='mw:Audio/Thumb'], +figure[typeof~='mw:Image/Frame'], +figure[typeof~='mw:Video/Frame'], +figure[typeof~='mw:Audio/Frame'] { display: table; overflow: auto; text-align: center; @@ -125,19 +131,28 @@ figure[typeof~='mw:Image/Frame'] { } figure[typeof~='mw:Image/Thumb'] > *:first-child > img, -figure[typeof~='mw:Image/Frame'] > *:first-child > img { +figure[typeof~='mw:Video/Thumb'] > *:first-child > video, +figure[typeof~='mw:Audio/Thumb'] > *:first-child > video, +figure[typeof~='mw:Image/Frame'] > *:first-child > img, +figure[typeof~='mw:Video/Frame'] > *:first-child > video, +figure[typeof~='mw:Audio/Frame'] > *:first-child > video { border: 1px solid #c8ccd1; margin: 3px; background: #fff; } /* Same as img.thumbborder in content.css */ -.mw-image-border > *:first-child > img { +.mw-image-border > *:first-child > img, +.mw-image-border > *:first-child > video { border: 1px solid #eaecf0; } /* Hide the caption for frameless and plain floated images */ figure[typeof~='mw:Image/Frameless'] > figcaption, -figure[typeof~='mw:Image'] > figcaption { +figure[typeof~='mw:Video/Frameless'] > figcaption, +figure[typeof~='mw:Audio/Frameless'] > figcaption, +figure[typeof~='mw:Image'] > figcaption, +figure[typeof~='mw:Video'] > figcaption, +figure[typeof~='mw:Audio'] > figcaption { display: none; }