mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
truncation: Fix fade direction for RTL previews
CSSJanus v1.1.3 doesn't appear to flip the "to right" argument for the linear-gradient CSS function. As with the position of the truncating element in I0d50a8b5, the direction of the gradient doesn't vary with the text direction of the current page but that of the target page. Bug: T158858 Change-Id: I4b6fcf68bdf57722348513f12c7b19f80b2545c4
This commit is contained in:
parent
b64260b1cc
commit
84a60c4db7
|
@ -126,20 +126,24 @@
|
|||
width: 25%;
|
||||
height: 24px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&[dir='ltr']:after {
|
||||
/* @noflip */
|
||||
right: 0;
|
||||
background-image: -webkit-linear-gradient( to right, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
|
||||
background-image: -moz-linear-gradient( to right, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
|
||||
background-image: -o-linear-gradient( to right, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
|
||||
background-image: linear-gradient( to right, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
|
||||
}
|
||||
|
||||
&[dir='ltr']:after {
|
||||
/* @noflip */
|
||||
right: 0;
|
||||
}
|
||||
|
||||
&[dir='rtl']:after {
|
||||
/* @noflip */
|
||||
left: 0;
|
||||
background-image: -webkit-linear-gradient( to left, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
|
||||
background-image: -moz-linear-gradient( to left, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
|
||||
background-image: -o-linear-gradient( to left, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
|
||||
background-image: linear-gradient( to left, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue