From ca71f762faadaa91be27d8c4c45babc111e59f49 Mon Sep 17 00:00:00 2001 From: MusikAnimal Date: Mon, 4 May 2020 15:13:38 -0400 Subject: [PATCH] Show half-star when the page is temporarily watched Bug: T248495 Depends-On: I61b24fddf6aaf5233f426602bfa1cc4fafce942b Change-Id: I712af9a0646d22c3b7873bbf77dba363c5770181 --- .../skins.vector.styles/TabWatchstarLink.less | 9 +++++++++ .../images/unwatch-temp-icon-hl.svg | 18 ++++++++++++++++++ .../images/unwatch-temp-icon.svg | 18 ++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 resources/skins.vector.styles/images/unwatch-temp-icon-hl.svg create mode 100644 resources/skins.vector.styles/images/unwatch-temp-icon.svg diff --git a/resources/skins.vector.styles/TabWatchstarLink.less b/resources/skins.vector.styles/TabWatchstarLink.less index f8dfb01a..bacde585 100644 --- a/resources/skins.vector.styles/TabWatchstarLink.less +++ b/resources/skins.vector.styles/TabWatchstarLink.less @@ -36,6 +36,10 @@ background-image: linear-gradient( transparent, transparent ), url( images/unwatch-icon.svg ); } + #ca-unwatch.mw-watchlink-temp.icon a:before { + background-image: linear-gradient( transparent, transparent ), url( images/unwatch-temp-icon.svg ); + } + #ca-watch.icon a:before { background-image: linear-gradient( transparent, transparent ), url( images/watch-icon.svg ); } @@ -45,6 +49,11 @@ background-image: linear-gradient( transparent, transparent ), url( images/unwatch-icon-hl.svg ); } + #ca-unwatch.mw-watchlink-temp.icon a:hover:before, + #ca-unwatch.mw-watchlink-temp.icon a:focus:before { + background-image: linear-gradient( transparent, transparent ), url( images/unwatch-temp-icon-hl.svg ); + } + #ca-watch.icon a:hover:before, #ca-watch.icon a:focus:before { background-image: linear-gradient( transparent, transparent ), url( images/watch-icon-hl.svg ); diff --git a/resources/skins.vector.styles/images/unwatch-temp-icon-hl.svg b/resources/skins.vector.styles/images/unwatch-temp-icon-hl.svg new file mode 100644 index 00000000..2bed7644 --- /dev/null +++ b/resources/skins.vector.styles/images/unwatch-temp-icon-hl.svg @@ -0,0 +1,18 @@ + + + tempwatch-icon-hl + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/skins.vector.styles/images/unwatch-temp-icon.svg b/resources/skins.vector.styles/images/unwatch-temp-icon.svg new file mode 100644 index 00000000..d50c1edd --- /dev/null +++ b/resources/skins.vector.styles/images/unwatch-temp-icon.svg @@ -0,0 +1,18 @@ + + + tempwatch-icon + + + + + + + + + + + + + + + \ No newline at end of file