From: Arlo Breault Date: Thu, 3 May 2018 17:07:39 +0000 (-0400) Subject: mediawiki.skinning: Only apply tright/tleft margins to frame/thumb X-Git-Tag: 1.34.0-rc.0~5454^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%22id_auteur=%24connect_id_auteur%22%29%20.%20%22?a=commitdiff_plain;h=d17b8bfc5b3b0264162005bd483a97414a68f938;p=lhc%2Fweb%2Fwiklou.git mediawiki.skinning: Only apply tright/tleft margins to frame/thumb The other formats should correspond to the margins for floatright/floatleft. Bug: T193695 Change-Id: I19ff964bcac486e8d45e7deab40f9220295bf9f6 --- diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index 27ecb1a4c7..d880e8bebd 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -55,7 +55,7 @@ figure[ typeof*='mw:Audio' ] { &.mw-halign-right { /* @noflip */ - margin: 0.5em 0 1.3em 1.4em; + margin: 0 0 0.5em 0.5em; /* @noflip */ clear: right; /* @noflip */ @@ -64,7 +64,7 @@ figure[ typeof*='mw:Audio' ] { &.mw-halign-left { /* @noflip */ - margin: 0.5em 1.4em 1.3em 0; + margin: 0 0.5em 0.5em 0; /* @noflip */ clear: left; /* @noflip */ @@ -116,6 +116,15 @@ figure[ typeof~='mw:Audio/Frame' ] { clear: right; float: right; + &.mw-halign-left { + /* @noflip */ + margin: 0.5em 1.4em 1.3em 0; + } + &.mw-halign-right { + /* @noflip */ + margin: 0.5em 0 1.3em 1.4em; + } + > *:first-child { > img, > video {