2020-01-15 21:46:45 +00:00
|
|
|
@import '../../variables.less';
|
2019-10-25 20:46:51 +00:00
|
|
|
@import 'mediawiki.mixins.rotation.less';
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
/* Watch/Unwatch Icon Styling */
|
2017-10-01 18:12:11 +00:00
|
|
|
/* 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 {
|
2019-09-30 08:12:02 +00:00
|
|
|
// `#ca-unwatch` & `#ca-watch` both carry `.mw-watchlink` as well.
|
2019-10-24 17:44:35 +00:00
|
|
|
@width-watchlink: unit( 28 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
@height-watchlink: unit( 40 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
@size-watchlink-icon: unit( 16 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
|
2019-09-30 08:12:02 +00:00
|
|
|
.mw-watchlink.icon a {
|
2019-10-24 17:44:35 +00:00
|
|
|
width: @width-watchlink;
|
2017-10-01 18:12:11 +00:00
|
|
|
/* This hides the text but shows the background image */
|
2018-06-26 14:37:50 +00:00
|
|
|
/* Must not exceed parent's height, otherwise the background disappears on Chrome (T196610) */
|
2017-10-01 18:12:11 +00:00
|
|
|
height: 0;
|
2019-10-24 17:44:35 +00:00
|
|
|
padding: @height-watchlink 0 0 0;
|
2017-10-01 18:12:11 +00:00
|
|
|
overflow: hidden;
|
2019-10-24 17:44:35 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: unit( 14 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
left: unit( 5 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
width: @size-watchlink-icon;
|
|
|
|
height: @size-watchlink-icon;
|
|
|
|
}
|
2017-10-01 18:12:11 +00:00
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2019-10-24 17:44:35 +00:00
|
|
|
#ca-unwatch.icon a:before {
|
2017-10-01 18:12:11 +00:00
|
|
|
.background-image-svg( 'images/unwatch-icon.svg', 'images/unwatch-icon.png' );
|
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2019-10-24 17:44:35 +00:00
|
|
|
#ca-watch.icon a:before {
|
2017-10-01 18:12:11 +00:00
|
|
|
.background-image-svg( 'images/watch-icon.svg', 'images/watch-icon.png' );
|
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2019-10-24 17:44:35 +00:00
|
|
|
#ca-unwatch.icon a:hover:before,
|
|
|
|
#ca-unwatch.icon a:focus:before {
|
2017-10-01 18:12:11 +00:00
|
|
|
.background-image-svg( 'images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png' );
|
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2019-10-24 17:44:35 +00:00
|
|
|
#ca-watch.icon a:hover:before,
|
|
|
|
#ca-watch.icon a:focus:before {
|
2017-10-01 18:12:11 +00:00
|
|
|
.background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' );
|
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2019-09-30 08:12:02 +00:00
|
|
|
// Loading watchstar link class.
|
2019-10-24 17:44:35 +00:00
|
|
|
#ca-unwatch.icon .loading:before,
|
|
|
|
#ca-watch.icon .loading:before {
|
2019-08-06 14:06:08 +00:00
|
|
|
background-image: url( images/watch-icon-loading.svg );
|
2017-10-01 18:12:11 +00:00
|
|
|
.rotation( 700ms );
|
|
|
|
/* Suppress the hilarious rotating focus outline on Firefox */
|
|
|
|
outline: 0;
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
2019-10-24 17:44:35 +00:00
|
|
|
-webkit-transform-origin: 50% 50%;
|
|
|
|
transform-origin: 50% 50%;
|
2017-10-01 18:12:11 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|