MediaWiki:Common.css
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* 这里放置的CSS将应用于所有皮肤 */
/*图片自适应*/
.img-kk {max-width:100%;height:auto;}
.img-icon {
border-radius:5px
}
img{max-width:100%;height:auto;margin:0 auto;text-align:center;}
/* 防止某些情况下导航栏异常变宽(限制宽度) */
#mw-navigation {
max-width: 100%;
}
/* 调整主内容宽度 */
.flex-fill.container {
width: 92%;
}
/* 设置全局半透明 */
.container {
opacity: 0.84;
background-color: rgb(255,255,255);
}
.mb-2.mt-4.container-fluid {
background-color: rgb(233,236,239);
}
.modheader-shadow-root-host-el-id {
background-color: rgb(233,236,239);
}
/* WIKI背景图 */
body {
background:url("https://www.ifanwiki.top/w/images/7/79/MCZYZ-BG1.jpg") no-repeat fixed 50% 0;
background-size:cover;
}
/* 模板CSS */
.BILIBILI-BOX {width:100%;margin-bottom:20px;}
.BOX-title-1 {width:100%;font-size:14px;padding:7px 10px;font-weight: bold;background:#404040;color:#fff;}
.BOX-title-2 {padding: 10px 0px 5px 0px;font-size: 14px;font-weight: bold;border-bottom: 1px solid #384348;}
.BOX-N {width:100%;padding:0px;}
.BOX-GD {color:#f7f7f7;border: 1px solid #f7f7f7;padding: 0px 5px;border-radius: 50%;}
.BOX-AN-50 {width:50%}
.BOX-AN-25 {width:25%}
.BOX-AN-20 {width:20%}
.BOX-AN2 {width:100%;display: inline-block;height:30px;line-height:30px;padding-left:35px;padding-right:5px;color:#404040;}
.BOX-AN2:hover {background:#000;color:#f7f7f7;}
@media only screen and (max-width:759px){
.BOX-AN-25 {width:50%}
.BOX-AN-20 {width:50%}
}
.update-log .log-title {display: none;}
.update-log .bili-list-group {padding: 0px 0px;}
.update-log .read-more {display: none;}
.carousel.big-carousel .carousel-indicators li, .carousel.big-carousel .carousel-indicators li.active {width: 8px;height: 8px;}
.carousel.big-carousel .carousel-indicators {bottom: -2.4em;margin-left: -30%;margin-bottom: 45px;}
.carousel.big-carousel {margin-bottom: 15px;}
.BOX-1 .BOX-title-2 {padding: 10px 0px 5px 0px;}
.BOX-1 {background:#f7f7f7;border:1px solid #404040;}
.BOX-1 .BOX-N {padding:5px 10px;}
.BOX-2 .BOX-title-1 {border-radius: 8px;}
.BOX-2 {border:1px solid #404040;border-radius: 4px;padding:2px}
.BOX-2 .BOX-2-1 {background:#f7f7f7;border:1px solid #404040;border-radius: 8px;padding:10px;}
.BOX-3 .BOX-title-1 {border-radius: 8px;}
.BOX-3 {background:#f7f7f7;border-radius: 8px;padding:10px}
.BOX-4 .BOX-title-1 {border-radius: 8px 8px 0px 0px;}
.BOX-4 {background:#f7f7f7;border-radius: 8px;padding:0px;}
.BOX-4 .BOX-N {padding:5px 10px;}
.BOX-5 .BOX-title-1 {border-radius: 8px 8px 0px 0px;background:#262626;color:#f7f7f7;}
.BOX-5 .BOX-title-2 {padding: 10px 0px 5px 0px;border-bottom: 1px solid #262626;}
.BOX-5 {background:#404040;border-radius: 8px;padding:0px;}
.BOX-5 .BOX-N {padding:5px 10px;border:2px solid #262626;border-top:0px solid ;box-shadow: inset 0 0 1px 2px #000;color:#f7f7f7;border-radius: 0px 0px 8px 8px;}
.BOX-5 .bili-section-normal,.BOX-5 .bili-section-primary {color: #f7f7f7;background: #626262;border: 1px solid rgb(0, 0, 0);}
.BOX-5 .bili-section-normal:hover {color: #fff;background: #000;border: 1px solid rgba(0, 0, 0, 0.1);cursor: pointer;}
.BOX-5 .BOX-zt {color:#f7f7f7}
.BOX-5 .update-log a {color: #f7f7f7 !important;}
.BOX-5 .BOX-AN2 {width:100%;display: inline-block;height:30px;line-height:30px;padding-left:35px;padding-right:5px;color: #f7f7f7;background: #626262;}
.BOX-5 .BOX-AN2:hover {color: #fff;background: #000;}
/* 搬运BWIKI */
/*表格*/
table.wikitable > tr > th, table.wikitable > * > tr > th {
background:#e9edf2;
height:40px;
opacity:0.6;
border-right: 1px solid rgba(0, 0, 0, .1);
}
table.wikitable > tr > td, table.wikitable > * > tr > td{
background-color: #fff;
height:40px;
border-right: 1px solid rgba(0, 0, 0, .1)
}
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
border: 1px #ccc solid;padding:0.3em 1em;
}
table.wikitable{border: 1px solid rgba(0,0,0,0.10);;margin: 10px 0;font-family: SourceHanSansCN;}
/* == 模板 == */
/* - [[模板:黑幕]] - */
.heimu {
background-color: #252525;
color: #252525;
transition: color 0.5s;
}
.heimu:hover {
color: #ffffff;
}
/* - [[模板:模板文档]] - */
.dsp-doc {
margin-top: 1em;
clear: both;
border: 2px dotted #666666;
padding: 0.6em;
background-color: #f5f5f5;
}
.dsp-doc-heading {
padding-bottom: 3px;
border-bottom: 1px solid #aaaaaa;
margin-bottom: 1ex;
}
/* 模板:资料卡片 */
.information {margin:0px 10px 10px 0px;width:300px;overflow: hidden;}
@media only screen and (max-width:759px){
.information {width:100%;margin:0px;}
}
/*摘要样式*/
.mw-summary-preset {
display: inline;
margin: 0;
padding: 0;
}
.mw-summary-preset-item {
border-left: 1px solid #a2a9b1;
display: inline-block;
line-height: 1.25em;
margin: 0.125em 0;
padding: 0 0.5em;
}
.mw-summary-preset-item:first-child {
border-left: medium none;
padding-left: 0.25em;
}
.mw-summary-preset-item:last-child {
padding-right: 0.25em;
}
/*修正过多的缩进*/
.mw-parser-output ol {
margin: 0.3em 0 0 2em;
}
/*修正更新日志*/
.client-js .mw-changeslist ul, .client-js .mw-changeslist table.mw-enhanced-rc {margin:0px;}
.mw-changeslist-line-inner-comment .comment{word-break:break-all}
.mw-changeslist-line-inner-comment .comment .autocomment {word-break:break-all}
/*首页tab修正*/
ul.tabbernav li {
padding-top: 0!important;
}
.wenzi1 {
font-size: 15px;
color: #000;
letter-spacing:0.08em;
line-height:1.8em;
margin-bottom: 15px;
}