mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-19 03:11:57 +00:00
1a5aa67c08
Bug: T278670 Change-Id: I5640e4539598de8e9ae2d4e5172a5ae41b570ce3
32 lines
1 KiB
Plaintext
32 lines
1 KiB
Plaintext
/* stylelint-disable function-parentheses-space-inside */
|
|
|
|
.unselectable() {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: -moz-none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
// from https://stackoverflow.com/a/12178019/323407
|
|
.fade-out-vertical( @backgroundColor: white ) {
|
|
@invisible: fadeout( @backgroundColor, 100% );
|
|
background-image: -webkit-linear-gradient( top, @invisible 0%, @backgroundColor 100% ); // Chrome10+,Safari5.1+
|
|
background-image: linear-gradient( to bottom, @invisible 0%, @backgroundColor 100% ); // W3C
|
|
}
|
|
|
|
.fade-out-horizontal( @backgroundColor: white ) {
|
|
@invisible: fadeout( @backgroundColor, 100% );
|
|
background-image: -webkit-linear-gradient( left, @invisible 0%, @backgroundColor 100% ); // Chrome10+,Safari5.1+
|
|
background-image: linear-gradient( to right, @invisible 0%, @backgroundColor 100% ); // W3C
|
|
}
|
|
|
|
.rotate( @degrees: 45deg ) {
|
|
-webkit-transform: rotate( @degrees );
|
|
transform: rotate( @degrees );
|
|
}
|
|
|
|
.grayscale() {
|
|
-webkit-filter: grayscale( 100% );
|
|
filter: grayscale( 100% );
|
|
}
|