Widget:背景图片:修订间差异
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
| 第1行: | 第1行: | ||
<noinclude>给{{tl|背景图片}}提供更好的体验效果</noinclude><includeonly><!--{if !isset($wgSideBarPic) || !$wgSideBarPic}--><!--{assign var="wgSideBarPic" value=true scope="global"}--><style> | <noinclude>给{{tl|背景图片}}提供更好的体验效果</noinclude><includeonly><!--{if !isset($wgSideBarPic) || !$wgSideBarPic}--><!--{assign var="wgSideBarPic" value=true scope="global"}--><script> | ||
window.RLQ = window.RLQ || []; | |||
window.RLQ.push(function() { | |||
$(function() { | |||
var sidebarCharacter = $(".sidebar-character").slice(0, 3); | |||
if (!sidebarCharacter.length) return; | |||
$("body").addClass("sideBarPic"); | |||
sidebarCharacter.addClass('active').each(function() { | |||
var self = $(this); | |||
self.appendTo("#mw-navigation").fadeIn().addClass(this.dataset.align === 'top' ? 'top' : 'bottom'); | |||
self.find('img').removeAttr('width').removeAttr('height'); | |||
}); | |||
$(window).on('resize', function() { | |||
sidebarCharacter.each(function() { | |||
var self = $(this); | |||
self.find('img').width(self.width()); | |||
}); | |||
}).resize(); | |||
if (sidebarCharacter.is('[data-displaylogo="yes"]')) $('body').addClass('show-logo'); | |||
}); | |||
});</script><style> | |||
@media screen and (max-width: 600px) { | |||
/* 低像素设备隐藏 */ | /* 低像素设备隐藏 */ | ||
.sidebar-character { | .sidebar-character { | ||
display: none!important; | display: none!important; | ||
} | } | ||
} | } | ||
deBarPic:not(.DeceasedPerson) #footer { | deBarPic:not(.DeceasedPerson) #footer { | ||
| 第32行: | 第46行: | ||
div#mw-head div#p-personal ul { | div#mw-head div#p-personal ul { | ||
padding-left: 0; | padding-left: 0; | ||
} | } | ||
.goog-te-gadget { | .goog-te-gadget { | ||