Do not use icon for "Watch" link when it is inside the "More" dropdown
Bug: T177106 Change-Id: Ia50817afe6395d8a52567599d23a232d6f07c0ce
This commit is contained in:
parent
467ae1cda4
commit
8db5779682
|
@ -1,49 +1,53 @@
|
||||||
@import 'mediawiki.mixins.rotation';
|
@import 'mediawiki.mixins.rotation';
|
||||||
|
|
||||||
/* Watch/Unwatch Icon Styling */
|
/* Watch/Unwatch Icon Styling */
|
||||||
#ca-unwatch.icon a,
|
/* Only use icon if the menu item is not collapsed into the "More" dropdown
|
||||||
#ca-watch.icon a {
|
* (in which case it is inside .vectorMenu instead of .vectorTabs). */
|
||||||
margin: 0;
|
.vectorTabs {
|
||||||
padding: 0;
|
#ca-unwatch.icon a,
|
||||||
display: block;
|
#ca-watch.icon a {
|
||||||
width: 26px;
|
margin: 0;
|
||||||
/* This hides the text but shows the background image */
|
padding: 0;
|
||||||
padding-top: 3.1em;
|
display: block;
|
||||||
margin-top: 0;
|
width: 26px;
|
||||||
/* Only applied in IE6 */
|
/* This hides the text but shows the background image */
|
||||||
_margin-top: -0.8em;
|
padding-top: 3.1em;
|
||||||
height: 0;
|
margin-top: 0;
|
||||||
overflow: hidden;
|
/* Only applied in IE6 */
|
||||||
background-position: 5px 60%;
|
_margin-top: -0.8em;
|
||||||
background-repeat: no-repeat;
|
height: 0;
|
||||||
}
|
overflow: hidden;
|
||||||
#ca-unwatch.icon a {
|
background-position: 5px 60%;
|
||||||
.background-image-svg( 'images/unwatch-icon.svg', 'images/unwatch-icon.png' );
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
#ca-watch.icon a {
|
#ca-unwatch.icon a {
|
||||||
.background-image-svg( 'images/watch-icon.svg', 'images/watch-icon.png' );
|
.background-image-svg( 'images/unwatch-icon.svg', 'images/unwatch-icon.png' );
|
||||||
}
|
}
|
||||||
#ca-unwatch.icon a:hover,
|
#ca-watch.icon a {
|
||||||
#ca-unwatch.icon a:focus {
|
.background-image-svg( 'images/watch-icon.svg', 'images/watch-icon.png' );
|
||||||
.background-image-svg( 'images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png' );
|
}
|
||||||
}
|
#ca-unwatch.icon a:hover,
|
||||||
#ca-watch.icon a:hover,
|
#ca-unwatch.icon a:focus {
|
||||||
#ca-watch.icon a:focus {
|
.background-image-svg( 'images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png' );
|
||||||
.background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' );
|
}
|
||||||
}
|
#ca-watch.icon a:hover,
|
||||||
#ca-unwatch.icon a.loading,
|
#ca-watch.icon a:focus {
|
||||||
#ca-watch.icon a.loading {
|
.background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' );
|
||||||
.background-image-svg( 'images/watch-icon-loading.svg', 'images/watch-icon-loading.png' );
|
}
|
||||||
.rotation( 700ms );
|
#ca-unwatch.icon a.loading,
|
||||||
/* Suppress the hilarious rotating focus outline on Firefox */
|
#ca-watch.icon a.loading {
|
||||||
outline: 0;
|
.background-image-svg( 'images/watch-icon-loading.svg', 'images/watch-icon-loading.png' );
|
||||||
cursor: default;
|
.rotation( 700ms );
|
||||||
pointer-events: none;
|
/* Suppress the hilarious rotating focus outline on Firefox */
|
||||||
background-position: 50% 60%;
|
outline: 0;
|
||||||
-webkit-transform-origin: 50% 57%;
|
cursor: default;
|
||||||
transform-origin: 50% 57%;
|
pointer-events: none;
|
||||||
}
|
background-position: 50% 60%;
|
||||||
#ca-unwatch.icon a span,
|
-webkit-transform-origin: 50% 57%;
|
||||||
#ca-watch.icon a span {
|
transform-origin: 50% 57%;
|
||||||
display: none;
|
}
|
||||||
|
#ca-unwatch.icon a span,
|
||||||
|
#ca-watch.icon a span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue