From d2fa06a669a288d0008946c5b10c444473b710f8 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Mon, 24 Aug 2020 11:48:08 +0800 Subject: [PATCH] Add half-filled star for expiring watched pages This will only work with recent versions of core, but will not give an error for older versions that don't have the 'mw-watchlink-temp' class. Bug: T258674 Change-Id: Ia3d7732160dd0d8358ed12bd2c7ad08db16aa773 --- resources/images/star-half-filled.svg | 12 ++++++++++++ resources/screen-common.less | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 resources/images/star-half-filled.svg diff --git a/resources/images/star-half-filled.svg b/resources/images/star-half-filled.svg new file mode 100644 index 0000000..2363c7e --- /dev/null +++ b/resources/images/star-half-filled.svg @@ -0,0 +1,12 @@ + + + temporarily watched + + + + + + + + + diff --git a/resources/screen-common.less b/resources/screen-common.less index 3c74d08..bd0dda3 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -254,6 +254,11 @@ body { .ca-icon-only(); } +#ca-unwatch.mw-watchlink-temp a { + .ca-icon( 'images/star-half-filled' ); + .ca-icon-only(); +} + #ca-edit a { .ca-icon( 'images/pencil-grey' ); }