mediawiki-extensions-Multim.../resources/mmv/mmv.mixins.less
Ed Sanders a33f7e5c57 Update linters and fix issues
Change-Id: Ib562131bbb3a9940d56602e0c4dbbe810ce7358c
2023-06-28 19:12:48 +01:00

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