summaryrefslogtreecommitdiff
path: root/resources/src/mediawiki.less/mediawiki.mixins.rotation.less
blob: e28b333f97238ddb53c9d5f97243206894a9d713 (plain)
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
// This is a separate file because importing the mixin causes
// the keyframes blocks to be included in the output, regardless
// of whether .rotation is used.
@import "mediawiki.mixins.animation";

.rotate-frames () {
	from {
		.transform-rotate(0deg);
	}
	to {
		.transform-rotate(360deg);
	}
}

@-webkit-keyframes rotate {
	.rotate-frames;
}

@-moz-keyframes rotate {
	.rotate-frames;
}

@-o-keyframes rotate {
	.rotate-frames;
}

@keyframes rotate {
	.rotate-frames;
}

.rotation( @time ) {
	.animation(rotate, @time, infinite, linear);
}