summaryrefslogtreecommitdiff
path: root/www/wiki/resources/src/mediawiki.less/mediawiki.mixins.rotation.less
blob: 64d6b3d680a4c1dac6b5b0b70db8ec7135793d7c (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
// 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;
}

@keyframes rotate {
	.rotate-frames;
}

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