mediawiki-extensions-Multim.../resources/mmv/mmv.mixins.less
Ed Sanders 73e59d396d style: Remove vendor-prefixes no longer required
Change-Id: Ide19cd0decb8a6ef26ccb94bfc89376b3a886748
2022-05-19 23:48:51 +01:00

29 lines
766 B
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: 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() {
-webkit-filter: grayscale( 100% );
filter: grayscale( 100% );
}