Followup dd1c7f7fd7: fix LESSification errors in Parsoid styles
authorRoan Kattouw <roan.kattouw@gmail.com>
Sat, 24 May 2014 03:02:16 +0000 (20:02 -0700)
committerCatrope <roan.kattouw@gmail.com>
Sat, 24 May 2014 03:04:10 +0000 (03:04 +0000)
.mw-halign-right should probably have float: right;, not float: left;

Also, use & because .mw-halign-* are applied to <figure>, not its descendants.

Bug: 65596
Change-Id: I7cd00f0049523f064703d7355b80457a4ab5d0d0

resources/src/mediawiki.skinning/content.parsoid.less

index 0ab4b37..7bfb642 100644 (file)
@@ -29,26 +29,26 @@ figure[typeof*='mw:Image'] {
                border: 0;
        }
 
-       .mw-halign-right {
+       &.mw-halign-right {
                /* @noflip */
                margin: .5em 0 1.3em 1.4em;
                /* @noflip */
-               clear: left;
+               clear: right;
                /* @noflip */
-               float: left;
+               float: right;
        }
 
        /* @noflip */
-       .mw-halign-left {
+       &.mw-halign-left {
                /* @noflip */
                margin: .5em 1.4em 1.3em 0;
                /* @noflip */
-               clear: right;
+               clear: left;
                /* @noflip */
-               float: right;
+               float: left;
        }
 
-       .mw-halign-center {
+       &.mw-halign-center {
                margin-left: auto;
                margin-right: auto;
        }