2022-07-15 18:27:57 +00:00
|
|
|
@import '../../common/variables.less';
|
2020-03-06 21:03:06 +00:00
|
|
|
@import 'mediawiki.mixins.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
|
2020-06-16 16:55:23 +00:00
|
|
|
* (in which case it is inside `.vector-menu-dropdown` instead of `.vector-menu-tabs`). */
|
|
|
|
.vector-menu-tabs {
|
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
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::before {
|
2019-10-24 17:44:35 +00:00
|
|
|
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
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
#ca-unwatch.icon a::before {
|
2022-07-15 18:27:57 +00:00
|
|
|
background-image: url( ../common/images/unwatch-icon.svg );
|
2017-10-01 18:12:11 +00:00
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
#ca-unwatch.mw-watchlink-temp.icon a::before {
|
2022-07-15 18:27:57 +00:00
|
|
|
background-image: url( ../common/images/unwatch-temp-icon.svg );
|
2020-05-04 19:13:38 +00:00
|
|
|
}
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
#ca-watch.icon a::before {
|
2022-07-15 18:27:57 +00:00
|
|
|
background-image: url( ../common/images/watch-icon.svg );
|
2017-10-01 18:12:11 +00:00
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
#ca-unwatch.icon a:hover::before,
|
|
|
|
#ca-unwatch.icon a:focus::before {
|
2022-07-15 18:27:57 +00:00
|
|
|
background-image: url( ../common/images/unwatch-icon-hl.svg );
|
2017-10-01 18:12:11 +00:00
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
#ca-unwatch.mw-watchlink-temp.icon a:hover::before,
|
|
|
|
#ca-unwatch.mw-watchlink-temp.icon a:focus::before {
|
2022-07-15 18:27:57 +00:00
|
|
|
background-image: url( ../common/images/unwatch-temp-icon-hl.svg );
|
2020-05-04 19:13:38 +00:00
|
|
|
}
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
#ca-watch.icon a:hover::before,
|
|
|
|
#ca-watch.icon a:focus::before {
|
2022-07-15 18:27:57 +00:00
|
|
|
background-image: url( ../common/images/watch-icon-hl.svg );
|
2017-10-01 18:12:11 +00:00
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2019-09-30 08:12:02 +00:00
|
|
|
// Loading watchstar link class.
|
2023-03-28 20:22:36 +00:00
|
|
|
#ca-unwatch.icon .loading::before,
|
|
|
|
#ca-watch.icon .loading::before {
|
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;
|
2022-05-16 22:25:44 +00:00
|
|
|
transform-origin: 50% 50%;
|
2017-10-01 18:12:11 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|