resources/src/mediawiki.less/mediawiki.mixins.rotation.less
raw| 1 | // This is a separate file because importing the mixin causes |
| 2 | // the keyframes blocks to be included in the output, regardless |
| 3 | // of whether .rotation is used. |
| 4 | |
| 5 | .rotate-frames() { |
| 6 | from { |
| 7 | transform: rotate( 0deg ); |
| 8 | } |
| 9 | |
| 10 | to { |
| 11 | transform: rotate( 360deg ); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | @keyframes rotate { |
| 16 | .rotate-frames; |
| 17 | } |
| 18 | |
| 19 | .rotation( @time ) { |
| 20 | animation: rotate @time infinite linear; |
| 21 | } |