MediaWiki:Mobile.css/change
/* CSS placed here will affect users of the mobile site */ /* 这里放置的CSS将影响使用移动版网站的用户 */
/*热门评论*/ .comment-container-top>div:not(.comment-thread) {
background-color: rgba(68,135,223,0.8) !important; color: white !important; font-weight: bolder !important;
} .comment-thread.comment-popular {
background-color: rgba(68,135,223,0.1) !important;
}
/* 评论边距 */ .comment-container-top, .comment-container { margin-left: 2% !important; margin-right: 2% !important; }
img, object {
max-width: 100%; height: auto;
}
/*筛选工具样式*/ .filterable-button {
float: right; color: black; padding: 0 2px 0 0.5em; text-shadow: none; transition: all 1250ms cubic-bezier(0.19, 1, 0.22, 1); cursor: pointer;
}
.filterable-button:hover {
text-shadow: 1px 1px 2px #888;
}
.filterable-button-active {
color: black;
}
.filterable-input-group {
position: absolute; width: 200px; display: none;
}
.filterable-input-group .list-group-item input {
vertical-align: text-bottom; margin: 0 5px 0 0;
}
.filterable-input-group .dropdown-content {
padding: 0 10px;
}
.filterable-input-group .dropdown-content .list-group-item {
overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.filterable-input-group .list-group {
margin-bottom: 10px; max-height: 206px; overflow-y: auto;
}
.dropdown-menu {
padding: 7px; position: absolute; top: 100%; left: 0; z-index: 95; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 14px; text-align: left; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 0; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box;
}
.dropdown-menu.pull-right {
right: 0; left: auto;
}
.dropdown-menu .divider {
height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5;
}
.dropdown-menu>li>a {
display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333333; white-space: nowrap;
}
.dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus {
text-decoration: none; color: #262626; background-color: #f5f5f5;
}
.dropdown-menu>.active>a, .dropdown-menu>.active>a:hover, .dropdown-menu>.active>a:focus {
color: #ffffff; text-decoration: none; outline: 0; background-color: #337ab7;
}
.dropdown-menu>.disabled>a, .dropdown-menu>.disabled>a:hover, .dropdown-menu>.disabled>a:focus {
color: #777777;
}
.dropdown-menu>.disabled>a:hover, .dropdown-menu>.disabled>a:focus {
text-decoration: none; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); cursor: not-allowed;
}
.btn-group-sm {
display: inline-block;
}
.dropdown-menu {
padding: 7px;
}
.mw-collapsible-toggle {
position: relative; Z-index: 50;
}
/* 表格强制不换行,使用最小字体 */ .wikitable {
white-space: nowrap;
}
/* 表格内图片设置最小宽度*/ .wikitable img {
min-width: 24px;
}
/* 隐藏元素 */ .nomobile {
display: none !important;
}
/* plainlist & plainlinks */ .plainlist ul {
list-style: none; padding-left: 0;
}
.plainlinks a {
background: none !important; padding: 0 !important;
}
/* *** */ body.page-首页 div#block-basenav tbody {
vertical-align: top;
}
body.page-首页_sandbox div#block-basenav tbody {
vertical-align: top;
}
/** 引用自萌娘百科 https://zh.moegirl.org.cn/MediaWiki:Mobile.css .heimu, .heimu a, a .heimu, .heimu a.new {
background-color: #252525; color: #252525; text-shadow: none;
} .heimu:hover, .heimu:active {
color: white;
} .heimu:hover a, a:hover .heimu {
color: lightblue;
} .heimu:hover .new, .heimu .new:hover, .new:hover .heimu {
color: #BA0000;
}
.content h2 {
font-weight: bold;
}
.toc-mobile>div>ul>li{
font-weight: bold;
}
.toc-mobile>div>ul>li>ul>li{
font-weight: normal;
}
- /
/* 黑幕 */ .heimu, .heimu a, a .heimu, .heimu a.new {
background-color: #252525; color: #252525; text-shadow: none;
}
.heimu:hover, .heimu:active {
color: white;
}
.heimu:hover a, a:hover .heimu {
color: lightblue;
}
.heimu:hover .new, .heimu .new:hover, .new:hover .heimu {
color: #BA0000;
}
/** tl-splink **/ .tl-splink a, .tl-splink a:visited, .tl-splink a:hover {
border-bottom: dashed 1px;
}
/** pathnav2 **/ .pathnav2-center a, .pathnav2-center a:visited {
color: white;
}
/** 隐藏登录后的首页欢迎语 **/ .page-Main_Page.is-authenticated .pre-content {
display: none !important;
}
/* 使行宽占满表格 */ th.fullline, td.fullline { width: 850px; }
/* 侧栏调整 */ .navigation-enabled #mw-mf-viewport {
overflow: hidden; min-height: 100%; height: 100% !important;
}
nav#mw-mf-page-left {
height: 100%
}
nav#mw-mf-page-left>.menu.view-border-box {
overflow-x: hidden; overflow-y: scroll; height: 100%; position: relative;
}
nav ul li a:hover {
box-shadow: inset 5px 0 0 0 #2196F3; text-decoration: none;
}
nav .mw-parser-output ul li a {
font-weight: bold; line-height: 1.857; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
nav .mw-parser-output ul li a>i {
margin-right: 0.76em; font-size: 1.4em; vertical-align: middle; width: 24px; text-align: center;
}
/* 顶栏颜色 */ .header-container {
background-color: #2196F3 !important;
}
.branding-box>h1:nth-child(1)>span:nth-child(1) {
color: #FFFFFF;
}
.overlay-header .overlay-title {
color: #FFFFFF;
}
/* 通知样式 */ .mw-echo-ui-notificationsInboxWidget-toolbarWrapper {
background: transparent !important;
}
.overlay-header h2>* {
color: #333 !important;
}
.notification-count {
background: transparent !important;
}
/* 首页背景调整 */ .page-首页>#mw-mf-viewport>#mw-mf-page-center>#content, .page-首页_sandbox>#mw-mf-viewport>#mw-mf-page-center>#content {
background-color: #f8f8f8;
}
/* 隐藏首页和sandbox顶部内容 */ .page-首页 .pre-content, .page-首页_sandbox .pre-content { display: none; }
/* 隐藏首页和sandbox的编辑按钮 */ .page-首页 .edit-page, .page-首页_sandbox .edit-page { display: none; }
/* 隐藏首页和sandbox目录 */ .page-首页 .toc-mobile, .page-首页_sandbox .toc-mobile { display: none; }
/* 隐藏首页和sandbox讨论按钮 */ .page-首页 #page-secondary-actions, .page-首页_sandbox #page-secondary-actions { display: none; }
/* 隐藏首页和sandbox最后编辑栏 */ .page-首页 .last-modified-bar, .page-首页_sandbox .last-modified-bar { display: none; }
/* 缩小显示表格 */ table.scaletable { transform: scale(0.5); transform-origin: top left; width: 200% !important; }
/* Infobox */ infobox {
position: relative; border: 1px solid #eaecf0; margin-bottom: 2em; background-color: #f8f9fa; display: flex; flex: 1 1 100%; flex-flow: column nowrap;
} .infobox td, .infobox th {
vertical-align: top;
} .infobox th { background-color: #eaecf0; } .infobox caption {
font-size: larger;
} .infobox.bordered {
border-collapse: collapse;
} .infobox.bordered td, .infobox.bordered th {
border: 1px solid #a2a9b1;
} .infobox.bordered .borderless td, .infobox.bordered .borderless th {
border: 0;
}
/* 临时修正section问题 */ section { display: none; }
/*手机端*/ @media screen and (max-width: 640px) {
body { font-size: small; } .wikitable, .infobox { font-size: x-small }
}
/* 2.0序幕事件 */ body.page-首页 {
height: 100%; width: 100%; overflow: hidden;
}
body.page-首页 #mw-navigation {
display: none;
}
body.page-首页 .comment-replybox {
display: none;
}
.mp-error-background {
display: block; background-color: #b72012; position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 998;
}
.mp-error-main {
display: block; position: fixed; top: 5%; left: 50%; text-align: center; transform: translateX(-50%); z-index: 999; animation-name: fadeIn; animation-duration: 1s; animation-iteration-count: 1;
}
.mp-error-main img { height: 38vh !important; width: auto !important; max-width: none; }
.mp-error-text {
display: block; position: fixed; top: 55%; left: 50%; width: 100%; transform: translateX(-50%); z-index: 999; color: white; font-size: 16px; text-align: center; font-family: "宋体", "SimSun", serif; font-weight: bolder; animation-name: fadeIn; animation-duration: 1s; animation-iteration-count: 1;
}
.mp-error-trytitle {
opacity: 0; animation-name: fadeIn, alwaysShow, fadeOut; animation-duration: 1s, 9s, 1s; animation-iteration-count: 1, 1, 1; animation-delay: 0s, 1s, 10s;
}
.mp-error-trystatus {
opacity: 0; animation-name: fadeInOut; animation-duration: 2s; animation-iteration-count: 5;
}
.mp-error-success {
position: fixed; top: 70%; left: 50%; width: 100%; transform: translateX(-50%); z-index: 1000; color: white; font-size: 16px; text-align: center; font-family: "宋体", "SimSun", serif; font-weight: bolder; animation-name: alwaysHide, fadeIn; animation-duration: 10.5s, 0.5s; animation-iteration-count: 1, 1; animation-delay: 0s, 10.5s;
}
.mp-error-success a, .mp-error-success a:hover, .mp-error-success a:visited, .mp-error-success a:focus { color: white; text-decoration: none; border-bottom: 1px dashed white; font-family: "微软雅黑","黑体", sans-serif; }
.mp-error-block { position: fixed; top: 0; left: 0; z-index: 1001; width: 0; height: 0; animation-name: alwaysBlock; animation-duration: 10s; animation-iteration-count: 1; }
.mp-error-fufurun {
position: fixed; right: 10px; bottom: 10px; z-index: 1002; width: 40px; height: 40px; animation-name: alwaysHide, fadeIn; animation-duration: 2s, 1s; animation-iteration-count: 1, 1; animation-delay: 0s, 2s;
}
.mp-error-fufurun img {
position: absolute; right: 0; bottom: 0; width: 40px !important; height: auto !important;
}
.mp-error-fufurun-1 {
animation-name: fufurun; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: 0s;
}
.mp-error-fufurun-2 {
animation-name: fufurun; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: 0.5s;
}
.mp-error-fufurun-3 {
animation-name: fufurun; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: 1s;
}
.mp-error-fufurun-4 {
animation-name: fufurun; animation-duration: 2s; animation-iteration-count: infinite; animation-delay: 1.5s;
}
@keyframes fufurun {
0% { opacity: 0; }
1% { opacity: 1; }
25% { opacity: 1; }
26% { opacity: 0; }
100% { opacity: 0; }
}
@keyframes alwaysBlock { from { width: 100%; height: 100%; } to { width: 100%; height: 100%; } }
@keyframes alwaysShow {
from { opacity: 1; }
to { opacity: 1; }
}
@keyframes alwaysHide {
from { opacity: 0; }
to { opacity: 0; }
}
@keyframes fadeInOut {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}