@import 'mediawiki.skin.variables.less';

.mw-pulsating-dot {
	&::before,
	&::after {
		content: '';
		display: block;
		position: absolute;
		border-radius: @border-radius-circle;
		background-color: @background-color-progressive;
	}

	&::before {
		width: 36px;
		height: 36px;
		top: -18px;
		left: -18px;
		opacity: 0;
		animation: mw-pulsating-dot-pulse 3s ease-out;
		animation-iteration-count: infinite;
	}

	&::after {
		width: 12px;
		height: 12px;
		top: -6px;
		left: -6px;
	}
}

.mw-pulsating-dot-pulse-frames() {
	0% {
		transform: scale( 0 );
		opacity: 0;
	}

	25% {
		transform: scale( 0 );
		opacity: 0.1;
	}

	50% {
		transform: scale( 0.1 );
		opacity: 0.3;
	}

	75% {
		transform: scale( 0.5 );
		opacity: 0.5;
	}

	100% {
		transform: scale( 1 );
		opacity: 0;
	}
}

@keyframes mw-pulsating-dot-pulse {
	.mw-pulsating-dot-pulse-frames;
}
