mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
Merge "Fix last modified bar icon change and search unStar-progressive"
This commit is contained in:
commit
ccf468ee1b
|
@ -21,7 +21,7 @@
|
|||
},
|
||||
{
|
||||
"resourceModule": "skins.minerva.icons.wikimedia",
|
||||
"maxSize": "0.8KB"
|
||||
"maxSize": "1.0KB"
|
||||
},
|
||||
{
|
||||
"resourceModule": "skins.minerva.mainMenu.icons",
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
* framework or upstreamed from MobileFrotend to core) should be and moved into ./setup.js
|
||||
* @todo anything left should be moved to MobileFrontend extension and removed from here.
|
||||
*/
|
||||
var HISTORY_ICON_CLASS = 'mw-ui-icon-wikimedia-history-base20';
|
||||
var HISTORY_ARROW_CLASS = 'mw-ui-icon-mf-expand-gray';
|
||||
module.exports = function () {
|
||||
var
|
||||
// eslint-disable-next-line no-restricted-properties
|
||||
|
@ -181,8 +183,12 @@ module.exports = function () {
|
|||
if ( time.isRecent( delta ) ) {
|
||||
$bar = $lastModifiedLink.closest( '.last-modified-bar' );
|
||||
$bar.addClass( 'active' );
|
||||
$bar.find( '.mw-ui-icon-wikimedia-history-base20' ).addClass( 'mw-ui-icon-wikimedia-history-invert' );
|
||||
$bar.find( '.mw-ui-icon-mf-expand-gray' ).addClass( 'mw-ui-icon-mf-expand-invert' );
|
||||
$bar.find( '.' + HISTORY_ICON_CLASS )
|
||||
.addClass( HISTORY_ICON_CLASS.replace( '-base20', '-invert' ) )
|
||||
.removeClass( HISTORY_ICON_CLASS );
|
||||
$bar.find( '.' + HISTORY_ARROW_CLASS )
|
||||
.addClass( HISTORY_ARROW_CLASS.replace( '-gray', '-invert' ) )
|
||||
.removeClass( HISTORY_ARROW_CLASS );
|
||||
}
|
||||
|
||||
$msg = $( '<span>' )
|
||||
|
|
Loading…
Reference in a new issue