File: mmv.mixins.less

package info (click to toggle)
mediawiki 1%3A1.35.13-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 274,932 kB
  • sloc: php: 677,563; javascript: 572,709; sql: 11,565; python: 4,447; xml: 3,145; sh: 892; perl: 788; ruby: 496; pascal: 365; makefile: 128
file content (37 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* stylelint-disable function-parentheses-space-inside */
/* stylelint-disable string-quotes */

.unselectable() {
	-webkit-user-select: none;
	-moz-user-select: -moz-none;
	-ms-user-select: none;
	user-select: none;
}

// from http://stackoverflow.com/a/12178019/323407
.fade-out-vertical( @backgroundColor: white ) {
	@invisible: fadeout( @backgroundColor, 100% );
	background-image: -moz-linear-gradient( top, @invisible 0%, @backgroundColor 100% ); // FF3.6+
	background-image: -webkit-gradient( linear, left top, left bottom, color-stop( 0%, @invisible ), color-stop( 100%, @backgroundColor ) ); // Chrome,Safari4+
	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: -moz-linear-gradient( left, @invisible 0%, @backgroundColor 100% ); // FF3.6+
	background-image: -webkit-gradient( linear, left top, right top, color-stop( 0%, @invisible ), color-stop( 100%, @backgroundColor ) ); // Chrome,Safari4+
	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 );
	-moz-transform: rotate( @degrees );
	transform: rotate( @degrees );
}

.grayscale() {
	-webkit-filter: grayscale( 100% );
	filter: grayscale( 100% );
}