@import "mediawiki.mixins.rotation";

/* Watch/Unwatch Icon Styling */
/* @see T298601 */
#ca-unwatch.icon a,
#ca-watch.icon a {
	margin: 0;
	padding: 0;
	padding-top: 1em;
	display: block;
	width: 26px;
	margin-top: 0;
	/* Only applied in IE6 */
	_margin-top: -0.8em;
	overflow: hidden;
	background-position: 5px 45%;
	background-repeat: no-repeat;
	height: 2.1em;
	text-indent: 100%;
}
/* On smaller screens the watch star gets hidden into the "..." menu;
 * apply a bit of padding to it in that case to make it look nicer and
 * more consistent with the textual links like "Edit", "History", etc.
 */
#p-cactions.menuForceShow #ca-watch,
#p-cactions.menuForceShow #ca-unwatch {
	padding-left: 0.5em;
}
#ca-unwatch.icon a {
	background-image: url( images/unwatch-icon.svg );
}
#ca-watch.icon a {
	background-image: url( images/watch-icon.svg );
}
#ca-unwatch.icon a:hover,
#ca-unwatch.icon a:focus {
	background-image: url( images/unwatch-icon-hl.svg );
}
#ca-watch.icon a:hover,
#ca-watch.icon a:focus {
	background-image: url( images/watch-icon-hl.svg );
}
#ca-unwatch.icon a.loading,
#ca-watch.icon a.loading {
	background-image: url( images/watch-icon-loading.svg );
	.rotation(700ms);
	/* Suppress the hilarious rotating focus outline on Firefox */
	outline: none;
	cursor: default;
	pointer-events: none;
	background-position: 50% 60%;
	-webkit-transform-origin: 50% 57%;
	transform-origin: 50% 57%;
}
#ca-unwatch.icon a span,
#ca-watch.icon a span {
	display: none;
}
