mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-11 07:46:15 +00:00
b64642a527
Duplicated in core mixins with `.user-select()` since v1.38.0. Change-Id: Ia0d36bbd2fd417a7195c235854ddd81ac76e51c1
22 lines
732 B
Plaintext
22 lines
732 B
Plaintext
// from https://stackoverflow.com/a/12178019/323407
|
|
.fade-out-vertical( @backgroundColor: white ) {
|
|
@invisible: fadeout( @backgroundColor, 100% );
|
|
background-image: linear-gradient( to bottom, @invisible 0%, @backgroundColor 100% ); // W3C
|
|
}
|
|
|
|
.fade-out-horizontal( @backgroundColor: white ) {
|
|
@invisible: fadeout( @backgroundColor, 100% );
|
|
background-image: linear-gradient( to right, @invisible 0%, @backgroundColor 100% ); // W3C
|
|
}
|
|
|
|
.rotate( @degrees: 45deg ) {
|
|
transform: rotate( @degrees );
|
|
}
|
|
|
|
.grayscale() {
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
-webkit-filter: grayscale( 100% );
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
filter: grayscale( 100% );
|
|
}
|