From 7227e50b0a59caecd6beaa7a632b202001ee86a4 Mon Sep 17 00:00:00 2001 From: Volker E Date: Mon, 30 Sep 2019 01:12:02 -0700 Subject: [PATCH] Simplify watch link selectors Change-Id: I51b1f66900dbc4982156b5356783a69a7025ebe7 --- components/watchstar.less | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/watchstar.less b/components/watchstar.less index b1736977..49d4c255 100644 --- a/components/watchstar.less +++ b/components/watchstar.less @@ -4,8 +4,8 @@ /* 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 { - #ca-unwatch.icon a, - #ca-watch.icon a { + // `#ca-unwatch` & `#ca-watch` both carry `.mw-watchlink` as well. + .mw-watchlink.icon a { margin: 0; padding: 0; display: block; @@ -37,8 +37,9 @@ .background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' ); } - #ca-unwatch.icon a.loading, - #ca-watch.icon a.loading { + // Loading watchstar link class. + #ca-unwatch.icon .loading, + #ca-watch.icon .loading { background-image: url( images/watch-icon-loading.svg ); .rotation( 700ms ); /* Suppress the hilarious rotating focus outline on Firefox */