mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-18 21:15:50 +00:00
9cf7901ec9
* page-fade: Remove redundant 'background-image' PNG fallback for IE6-8 in '#mw-page-base' because the vertical-gradient() already creates a solid fallback color which seems good enough for IE6-8. Remove the 'background-color' rule which was only there to fill the gap above the the IE6-8 PNG image fallback, which in turn overrode the background-color rule from vertical-gradient. The background-repeat rule is also redundant with background-image gone. * watch-icon-loading: This is only used when the JS code is active and the user clicks the watch star. It does not need a PNG fallback, as it is only needed in Grade A browsers where the JS executes, which are expected to support SVG. Also removed the embedding as the rendering of article text on page load should not be delayed by an icon that might be used if and when the user clicks on the watchstar (and irrelevant to logged-out users). Bug: T121730 Change-Id: Ief4b80432fbe2ce7ebddf429f02c161048ed61d1
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
@import 'mediawiki.mixins.rotation';
|
|
|
|
/* Watch/Unwatch Icon Styling */
|
|
/* 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 {
|
|
margin: 0;
|
|
padding: 0;
|
|
display: block;
|
|
width: 28px;
|
|
/* This hides the text but shows the background image */
|
|
/* Must not exceed parent's height, otherwise the background disappears on Chrome (T196610) */
|
|
padding-top: 2.5em / 0.8125;
|
|
height: 0;
|
|
overflow: hidden;
|
|
background-position: 5px 60%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
#ca-unwatch.icon a {
|
|
.background-image-svg( 'images/unwatch-icon.svg', 'images/unwatch-icon.png' );
|
|
}
|
|
|
|
#ca-watch.icon a {
|
|
.background-image-svg( 'images/watch-icon.svg', 'images/watch-icon.png' );
|
|
}
|
|
|
|
#ca-unwatch.icon a:hover,
|
|
#ca-unwatch.icon a:focus {
|
|
.background-image-svg( 'images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png' );
|
|
}
|
|
|
|
#ca-watch.icon a:hover,
|
|
#ca-watch.icon a:focus {
|
|
.background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' );
|
|
}
|
|
|
|
#ca-unwatch.icon a.loading,
|
|
#ca-watch.icon a.loading {
|
|
background-image: url( images/watch-icon-loading.svg );
|
|
.rotation( 700ms );
|
|
/* Suppress the hilarious rotating focus outline on Firefox */
|
|
outline: 0;
|
|
cursor: default;
|
|
pointer-events: none;
|
|
background-position: 50% 60%;
|
|
-webkit-transform-origin: 50% 57%;
|
|
transform-origin: 50% 57%;
|
|
}
|
|
|
|
#ca-unwatch.icon a span,
|
|
#ca-watch.icon a span {
|
|
display: none;
|
|
}
|
|
}
|