MediaWiki:Gadget-site-styles.css:修订间差异
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
| 第97行: | 第97行: | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* 顶部公告 */ | |||
/* From wjghj.cn under CC BY-NC-SA 4.0*/ | |||
function siteNoticeScroll(obj,interval) { | |||
$(obj).animate({ | |||
height: 'show', | |||
paddingTop: 'show', | |||
marginTop: 'show', | |||
paddingBottom: 'show', | |||
marginBottom: 'show', | |||
}); | |||
setInterval(function() { | |||
$(obj).find('ul:first').animate({ | |||
marginTop: '-25px' | |||
}, | |||
300, | |||
function() { | |||
$(this).css({ | |||
marginTop: '0px', | |||
}).find('li:first').appendTo(this); | |||
}); | |||
}, | |||
interval); | |||
} | |||
siteNoticeScroll('.siteNoticeScroll',5000); | |||
/* 通知样式 */ | /* 通知样式 */ | ||
.mw-echo-ui-notificationsInboxWidget-toolbarWrapper { | .mw-echo-ui-notificationsInboxWidget-toolbarWrapper { | ||