X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.skinning%2Fcontent.parsoid.less;h=ddf9b055f5cb1b9cb583eba9185b6d824c64f71a;hb=361c98d0b9f47e8eea443f46073fd9f02b02bd57;hp=ec5b429533705096bea29cce3b08cbe5020c581a;hpb=551e98f6fa8be974b84c018da9769f99e814c4a8;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index ec5b429533..ddf9b055f5 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -2,19 +2,17 @@ * Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser. */ -/*csslint regex-selectors:false */ - /* * Auto-numbered external links * Parsoid renders those as link without content, and lets CSS do the * counting. This way the counting style can be customized, and counts update * automatically when content is modified. */ -.mw-body-content { +.mw-parser-output { counter-reset: mw-numbered-ext-link; } -.mw-body-content a[rel~='mw:ExtLink']:empty:after { +.mw-parser-output a[rel~='mw:ExtLink']:empty:after { content: '[' counter( mw-numbered-ext-link ) ']'; counter-increment: mw-numbered-ext-link; } @@ -46,7 +44,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 +109,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; @@ -122,18 +126,33 @@ figure[typeof~='mw:Image/Frame'] { margin: 0.5em 0 1.3em 1.4em; clear: right; float: right; + + > *:first-child { + > img, + > video { + border: 1px solid #c8ccd1; + margin: 3px; + background: #fff; + } + } } -figure[typeof~='mw:Image/Thumb'] > *:first-child > img, -figure[typeof~='mw:Image/Frame'] > *:first-child > img, -.mw-image-border > *:first-child > img { - border: 1px solid #c8ccd1; - margin: 3px; - background: #fff; +/* Same as img.thumbborder in content.css */ +.mw-image-border > *:first-child { + > img, + > 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 { - display: none; +figure[typeof~='mw:Image/Frameless'], +figure[typeof~='mw:Video/Frameless'], +figure[typeof~='mw:Audio/Frameless'], +figure[typeof~='mw:Image'], +figure[typeof~='mw:Video'], +figure[typeof~='mw:Audio'] { + > figcaption { + display: none; + } }