“Widget:萌百条目”与“Widget:首页”:页面之间的差异

H萌娘,万物皆可H的百科全书!
(页面间差异)
跳到导航 跳到搜索
imported>=海豚=
无编辑摘要
 
imported>=海豚=
无编辑摘要
 
第1行: 第1行:
<noinclude> 可在引用萌百的条目中加入 </noinclude>
<noinclude><nowiki>=。=</nowiki></noinclude><includeonly><!--{if !isset($wgMainpage) || !$wgMainpage}--><!--{assign var="wgMainpage" value=true scope="global"}--><style type="text/css">
<includeonly>
<div class="nomobile" style="display:inline-block">
<style>
@media (min-width: 1680px) {
/* <pre> */
   .mainpage {
body {background-image:url(https://www.hmoegirl.com/images/e/ef/%E7%AE%B1%E5%AD%90%E9%87%8C%E7%9A%84%E8%90%8C%E7%99%BE%E5%A8%98_.png);background-size:650px;}
     width: 1404px;
#moe a {color: #00AF89;}
     margin: 0 auto;
#moe a.new {color: #BA0000!important;}
   }
#moe a.external {color: #36b!important;}
   .mainpage-container,
#moe a.mw-collapsible-text {color: #3366cc!important;}
   .mainpage-column {
#moe .heimu a, a .heimu {color: #00AF89!important;}
     display: flex;
#moe .colormu {background-color: rgba(37,37,37,0.1)!important;}
     flex-wrap: nowrap;
.skin-vector #moe table {box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);border-radius: 4px;overflow: hidden;}
     justify-content: space-around;
#moe .infotemplatebox {box-shadow: none!important;}
     align-content: stretch;
.mw-editmoegirl {display:block!important;}
     align-items: stretch;
#ca-ve-edit,#ca-editTopSection .mw-editsection {display: none !important;}
   }
#moe .bilibili-toggle {display: none !important;}
   .mainpage-column {
#moe .bilibili-title {padding: .2em 2em .2em 1em !important;}
     flex-direction: column;
#moe li.gallerybox {display: inline-block;width: 100%; height: auto;}
   }
#moe .reference> a {color: #36b!important;}
}
#moe .mw-cite-backlink> a {color: #36b!important;}
@media (min-width: 1840px) {
#moe pre {display: none!important;}
   .mainpage {
/* </pre> */
     width: 1680px;
   }
}
@media (max-width: 1680px) {
   .mainpage,
   .mainpage-column-left,
   .mainpage-column-right {
     max-width: 1360px;
   }
}
.mainpage,
.mainpage * {
   box-sizing: border-box;
   transition: all .37s;
}
.mainpage {
   /*background: url(./zhMoegirl15.2.png) no-repeat center center;*/
   background-size: contain;
}
.mainpage-order-one {
   order: 1;
}
.mainpage-order-two {
   order: 2;
}
.mainpage-order-three {
   order: 3;
}
.mainpage-order-four {
   order: 4;
}
.mainpage-order-five {
   order: 5;
}
.mainpage-order-six {
   order: 6;
}
.mainpage-order-seven {
   order: 7;
}
.mainpage-order-eight {
   order: 8;
}
.mainpage-order-nine {
   order: 9;
}
.mainpage-flex-one {
   flex: 1;
}
.mainpage-flex-two {
   flex: 2;
}
.mainpage-flex-three {
   flex: 3;
}
.mainpage-flex-four {
   flex: 4;
}
.mainpage-flex-five {
   flex: 5;
}
.mainpage-flex-six {
   flex: 6;
}
.mainpage-flex-seven {
   flex: 7;
}
.mainpage-flex-eight {
   flex: 8;
}
.mainpage-flex-nine {
   flex: 9;
}
.mainpage-text-align-center {
   text-align: center;
}
.mainpage-headtitle,
.mainpage-column>* {
   margin: .5em;
   padding: .5em;
   box-shadow: 1px 1px 1px 1px #ededde;
}
.mainpage-headtitle:hover, .mainpage-column>*:hover {
   box-shadow: 1px 1px 6px 3px #ededde;
   margin: .5em .4em;
}
.mainpage-column>*:hover {
   background-color: #FFF;
}
.mainpage-headtitle {
   font-size: 1.8em;
   text-align: center;
}
.mainpage .mainpage-column h2 {
   margin-top: 0;
   border-width: 0;
   padding-left: .5em;
   color: #8b8b22;
   font-family: EasonPro, "黑体", serif;
   font-size-adjust: .43;
   font-weight: 400;
   border-left: 1em #ededde solid;
}
.mainpage .mainpage-column h3 {
   padding-left: .5em;
}
.mainpage .mw-headline-number {
   display: none;
}
.mainpage .mainpage-column p {
   padding-left: .5em;
}
.mainpage .mainpage-column p {
   text-indent: 2em;
}
.mainpage-banner-page,
.mainpage-page {
   position: relative;
}
.mainpage-banner-page .mainpage-page-img {
   height: 200px;
   width: auto;
}
.mainpage-banner {
   position: relative;
   overflow: hidden;
}
.mainpage-banner-control {
   position: absolute;
   bottom: 1em;
   right: 1em;
   z-index: 7;
}
.mainpage-banner-control-triggle {
   width: 18px;
   height: 18px;
   border-radius: 18px;
   background-color: white;
   display: inline-block;
   cursor: pointer;
   border: 3px rgba(139, 139, 34, .5) solid;
   margin-left: 8px;
}
.mainpage-banner-control-triggle.on {
   border-color: white;
   background-color: rgba(139, 139, 34, .5);
}
.mainpage-banner-page {
   text-align: center;
   float: left;
}
.mainpage-counter {
   background: url(https://www.hmoegirl.com/images/thumb/a/a4/Megumi_jacket_on_shoulders.jpg/205px-Megumi_jacket_on_shoulders.jpg) top right;
   background-repeat: no-repeat;
   background-size: 205px 240px;
   min-height: 250px;
   padding: 0!important;
   display: flex;
}
.mainpage-counter-container {
   background: rgba(255, 255, 255, .73);
   padding: .5em;
   flex: 1;
}
.mainpage-ads {
   height: 250px;
}
.mainpage-page-img {
   width: 100%;
}
.mainpage-page-intro {
   position: absolute;
   bottom: 0;
   left: 0;
   margin: 0!important;
   padding: .5em;
   background-color: rgba(255, 255, 255, 0.73);
   width: 100%;
}
.mainpage-flex {
   display: flex;
   flex-wrap: nowrap;
   justify-content: space-around;
   align-content: stretch;
}
.mainpage-flex-no {
   flex: none;
}
.mainpage-mgsisters {
   color: #777;
   font-size: 115%;
}
.mainpage-mgsisters-container {
   margin: 1em 0;
}
.mainpage-mgsisters-img {
   width: 50px;
}
.mainpage-mgsisters-img img {
   height: 50px;
   width: auto;
}
.mainpage-mgsisters-text {
   font-size: 85%;
}
</style>
</style>
<script>
<script>
var div = document.getElementById('moe');
window.RLQ.push(function() {
div.innerHTML = div.innerHTML
   window.RLQ = window.RLQ || [];
.replace(/并查找相关资料。萌娘百科祝您在本站度过愉快的时光。/g,' 并查找相关资料。<br>H萌娘祝您在本站度过愉快的时光!')
   $(function() {
.replace(/ 提示:本页面/g,' 各位绅士淑女注意:本条目')
     $(window).on('resize', function() {
.replace(/ 不适 未满15岁 读者/g,' 不够色情')
       $('.mainpage-banner-page').width($('.mainpage-banner').width());
.replace(/ 页面可能包含/g,' 页面只包含')
     }).resize();
.replace(/阅读时有可能产生轻微不适感/g,' 阅读时没让人产生不适感')
     var marginLeft = $('.mainpage').offset().left - $('.mainpage').parent().offset().left;
.replace(/ 请确信自己已满当地法律许可年龄且心智成熟后再来阅览/g,' 最好陪同自己的孩子一起来阅览');
     /* $('.mainpage').css('margin-left', marginLeft - (marginLeft - (($(window).width() - $('.mainpage').width()) / 2 - $('.mainpage').parent().offset().left)) / 2 + 'px'); // 计算 偏差,其中【($(window).width() - $('.mainpage').width()) / 2】用以计算主体居中时的实际offsetLeft值,减去父元素offset即是主体margin-left值,再用【marginLeft - (marginLeft - 主体margin-left值 / 2】来计算缓和后的margin-left值 */
document.querySelector("#ca-edit a").textContent=' 添加本地化差异';
     var length = $('.mainpage-banner-page').length;
window.setTimeout(function() {
     if (!length) return;
document.querySelector("#ca-edit.collapsible a").textContent=' 添加本地化差异';
     $('.mainpage-banner-container').width(length + '00%');
},350);
     while (length--) $('.mainpage-banner-control').append('<span class="mainpage-banner-control-triggle"></span>');
</script>
     var bannerCount = 25;
</includeonly>
     $('.mainpage-banner-control-triggle').on('click', function() {
       bannerCount = 25;
       $(this).addClass('on').siblings().removeClass('on');
       var index = $(this).parent().children().index(this);
       var target = $('.mainpage-banner-page').eq(index);
       var left = target.prevAll().length || 0;
       if (left) $('.mainpage-banner-container').css('margin-left', '-' + left + '00%');
       else $('.mainpage-banner-container').css('margin-left', '0');
     }).first().click();
     setInterval(function() {
       if (bannerCount-- > 0) return;
       var next = $('.mainpage-banner-control-triggle.on').next();
       if (!next.length) next = $('.mainpage-banner-control-triggle:first');
       next.click();
     }, 200);
   });
});
</div>
</script><!--{/if}--></includeonly>

2020年3月20日 (五) 14:55的版本

=。=