mediawiki-skins-Vector/components/watchstar.less
Volker E 7446c28f79 Re-order background* properties to unify across files
Orienting on https://www.mediawiki.org/wiki/Topic:Tv3wddg7n9nz8ft8

Change-Id: I4504600fcc0c54f684eddde9c66cbc6b4d419846
2019-10-01 17:14:30 -07:00

54 lines
1.5 KiB
Plaintext

@import 'mediawiki.mixins.rotation';
/* Watch/Unwatch Icon Styling */
/* Only use icon if the menu item is not collapsed into the "More" dropdown
* (in which case it is inside .vectorMenu instead of .vectorTabs). */
.vectorTabs {
// `#ca-unwatch` & `#ca-watch` both carry `.mw-watchlink` as well.
.mw-watchlink.icon a {
background-position: 5px 60%;
background-repeat: no-repeat;
margin: 0;
padding: 0;
display: block;
width: 28px;
/* This hides the text but shows the background image */
/* Must not exceed parent's height, otherwise the background disappears on Chrome (T196610) */
padding-top: 2.5em / 0.8125;
height: 0;
overflow: hidden;
}
#ca-unwatch.icon a {
.background-image-svg( 'images/unwatch-icon.svg', 'images/unwatch-icon.png' );
}
#ca-watch.icon a {
.background-image-svg( 'images/watch-icon.svg', 'images/watch-icon.png' );
}
#ca-unwatch.icon a:hover,
#ca-unwatch.icon a:focus {
.background-image-svg( 'images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png' );
}
#ca-watch.icon a:hover,
#ca-watch.icon a:focus {
.background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' );
}
// Loading watchstar link class.
#ca-unwatch.icon .loading,
#ca-watch.icon .loading {
background-image: url( images/watch-icon-loading.svg );
background-position: 50% 60%;
.rotation( 700ms );
/* Suppress the hilarious rotating focus outline on Firefox */
outline: 0;
cursor: default;
pointer-events: none;
-webkit-transform-origin: 50% 57%;
transform-origin: 50% 57%;
}
}