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`). */
|
2022-09-02 14:57:31 +00:00
|
|
|
// Note: there's no watchstar for anon users so no need to worry about cached HTML when changing this class
|
|
|
|
.vector-feature-visual-enhancement-next-disabled .vector-menu-tabs {
|
2019-10-24 17:44:35 +00:00
|
|
|
@size-watchlink-icon: unit( 16 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
|
2019-09-30 08:12:02 +00:00
|
|
|
.mw-watchlink.icon a {
|
2017-10-01 18:12:11 +00:00
|
|
|
overflow: hidden;
|
2022-07-15 18:27:57 +00:00
|
|
|
text-indent: -99999px;
|
|
|
|
color: transparent;
|
2019-10-24 17:44:35 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
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 {
|
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
|
|
|
|
2020-05-04 19:13:38 +00:00
|
|
|
#ca-unwatch.mw-watchlink-temp.icon a:before {
|
2022-07-22 19:29:04 +00:00
|
|
|
background-image: url( ../common/images/unwatch-temp-icon.svg );
|
2020-05-04 19:13:38 +00:00
|
|
|
}
|
|
|
|
|
2019-10-24 17:44:35 +00:00
|
|
|
#ca-watch.icon a:before {
|
2022-07-22 19:29:04 +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
|
|
|
|
2019-10-24 17:44:35 +00:00
|
|
|
#ca-unwatch.icon a:hover:before,
|
|
|
|
#ca-unwatch.icon a:focus:before {
|
2022-07-22 19:29:04 +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
|
|
|
|
2020-05-04 19:13:38 +00:00
|
|
|
#ca-unwatch.mw-watchlink-temp.icon a:hover:before,
|
|
|
|
#ca-unwatch.mw-watchlink-temp.icon a:focus:before {
|
2022-07-22 19:29:04 +00:00
|
|
|
background-image: url( ../common/images/unwatch-temp-icon-hl.svg );
|
2020-05-04 19:13:38 +00:00
|
|
|
}
|
|
|
|
|
2019-10-24 17:44:35 +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.
|
2019-10-24 17:44:35 +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
|
|
|
}
|
2022-09-02 14:57:31 +00:00
|
|
|
|
|
|
|
// Loading watchstar link class.
|
|
|
|
.vector-feature-visual-enhancement-next-enabled {
|
2022-09-30 23:50:22 +00:00
|
|
|
.mw-watchlink a:before {
|
|
|
|
transition: transform 500ms;
|
|
|
|
}
|
|
|
|
|
2022-09-02 14:57:31 +00:00
|
|
|
.mw-watchlink .loading:before {
|
|
|
|
/* Suppress the hilarious rotating focus outline on Firefox */
|
|
|
|
outline: 0;
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
|
|
|
transform-origin: 50% 50%;
|
|
|
|
}
|
2022-09-30 23:50:22 +00:00
|
|
|
|
|
|
|
.mw-ui-icon-wikimedia-unStar:before,
|
|
|
|
.mw-ui-icon-wikimedia-star.loading:before {
|
|
|
|
transform: rotate( 72deg );
|
|
|
|
}
|
2022-09-02 14:57:31 +00:00
|
|
|
}
|