MediaWiki:Mobile.css:修订间差异
跳到导航
跳到搜索
imported>=海豚= (???) |
imported>=海豚= 无编辑摘要 |
||
(未显示同一用户的9个中间版本) | |||
第1行: | 第1行: | ||
/* 放置于这里的CSS将影响使用移动版网站的用户 */ | /* 放置于这里的CSS将影响使用移动版网站的用户 */ | ||
/* | /* 链接样式 */ | ||
a:hover { | |||
text-decoration: none; | |||
color: #2a4b8d; | |||
} | } | ||
a, a:visited { | |||
text-decoration: none; | |||
color: #3366cc; | |||
} | |||
.mw-body a.external:visited { | |||
color: #3366cc; | |||
} | } | ||
/* 导航菜单样式 */ | /* 导航菜单样式 */ | ||
第33行: | 第36行: | ||
} | } | ||
/* 黑幕 */ | /* 黑幕 */ | ||
.heimu, .heimu a, a .heimu, .heimu a.new { | .heimu, | ||
.heimu a, | |||
a .heimu, | |||
.heimu a.new { | |||
background-color: #252525; | background-color: #252525; | ||
color: #252525; | color: #252525; | ||
text-shadow: none; | text-shadow: none; | ||
} | } | ||
.heimu:hover, .heimu:active, | .heimu:hover, | ||
.heimu:hover .heimu, .heimu:active .heimu { | .heimu:active, | ||
.heimu:hover .heimu, | |||
.heimu:active .heimu { | |||
color: white !important; | color: white !important; | ||
} | } | ||
.heimu:hover a, a:hover .heimu, | .heimu:hover a, | ||
.heimu:active a, a:active .heimu { | a:hover .heimu, | ||
.heimu:active a, | |||
a:active .heimu { | |||
color: lightblue !important; | color: lightblue !important; | ||
} | } | ||
.heimu:hover .new, .heimu .new:hover, .new:hover .heimu, | .heimu:hover .new, | ||
.heimu:active .new, .heimu .new:active, .new:active .heimu { | .heimu .new:hover, | ||
.new:hover .heimu, | |||
.heimu:active .new, | |||
.heimu .new:active, | |||
.new:active .heimu { | |||
color: #BA0000 !important; | color: #BA0000 !important; | ||
} | } | ||
第77行: | 第91行: | ||
#commonBoxList.open > .commonBoxButton.current { | #commonBoxList.open > .commonBoxButton.current { | ||
opacity: 1; | opacity: 1; | ||
} | |||
.common-box { | |||
padding: .2em .4em; | |||
border: 0.7px solid #ddd; | |||
-moz-border-radius: 10px; | |||
-webkit-border-radius: 10px; | |||
-khtml-border-radius: 10px; | |||
-o-border-radius: 10px; | |||
border-radius: 10px; | |||
background: rgba(250,250,250,0.65)!important; | |||
} | |||
/* 修复子页面列表和common-box宽度不足 */ | |||
.mw-prefixindex-list-table, | |||
.common-box { | |||
width: 100% !important; | |||
} | } | ||
/* info类模板 */ | /* info类模板 */ | ||
第156行: | 第185行: | ||
.notification-count { | .notification-count { | ||
background: transparent !important; | background: transparent !important; | ||
} | } | ||
/* 界面底部样式 */ | /* 界面底部样式 */ | ||
第172行: | 第197行: | ||
} | } | ||
.comment-thread.comment-popular { | .comment-thread.comment-popular { | ||
background-color: # | background-color: #FEF6E0 !important; | ||
} | } | ||
/* 评论边距 */ | /* 评论边距 */ | ||
第179行: | 第204行: | ||
margin-left: 2% !important; | margin-left: 2% !important; | ||
margin-right: 2% !important; | margin-right: 2% !important; | ||
} | |||
/* 最近更改页面 */ | |||
.mw-changeslist-legend { | |||
display: none!important; | |||
} | } | ||
/* 编辑区样式 */ | /* 编辑区样式 */ | ||
第346行: | 第375行: | ||
} | } | ||
/* 来个高优先级的 */ | /* 来个高优先级的 */ | ||
.navbox .content table { | .navbox .content table { | ||
width: 100% !important; | width: 100% !important; | ||
第358行: | 第384行: | ||
text-align: center; | text-align: center; | ||
width: 100%; | width: 100%; | ||
display: contents!important; | |||
} | } | ||
.navbox-group { | .navbox-group { | ||
第458行: | 第485行: | ||
vertical-align: top; | vertical-align: top; | ||
padding: 0.438em 0.625em; | padding: 0.438em 0.625em; | ||
} | |||
/* 扩展mediawiki.legacy.commonPrint,shared定义的样式 */ | |||
/* success and error messages */ | |||
.error, | |||
.warning, | |||
.success { | |||
font-size: larger; | |||
} | |||
.error { | |||
color: #d33; | |||
} | |||
.warning { | |||
color: #705000; | |||
} | |||
.success { | |||
color: #009000; | |||
} | |||
.errorbox, | |||
.warningbox, | |||
.successbox { | |||
border: 1px solid; | |||
padding: 0.5em 1em; | |||
margin-bottom: 1em; | |||
display: inline-block; | |||
zoom: 1; | |||
} | |||
.errorbox h2, | |||
.warningbox h2, | |||
.successbox h2 { | |||
font-size: 1em; | |||
color: inherit; | |||
font-weight: bold; | |||
display: inline; | |||
margin: 0 0.5em 0 0; | |||
border: 0; | |||
} | |||
.errorbox { | |||
color: #d33; | |||
border-color: #fac5c5; | |||
background-color: #fae3e3; | |||
} | |||
.warningbox { | |||
color: #705000; | |||
border-color: #fde29b; | |||
background-color: #fdf1d1; | |||
} | |||
.successbox { | |||
color: #008000; | |||
border-color: #b7fdb5; | |||
background-color: #e1fddf; | |||
} | } |
2020年6月20日 (六) 10:58的版本
/* 放置于这里的CSS将影响使用移动版网站的用户 */
/* 链接样式 */
a:hover {
text-decoration: none;
color: #2a4b8d;
}
a, a:visited {
text-decoration: none;
color: #3366cc;
}
.mw-body a.external:visited {
color: #3366cc;
}
/* 导航菜单样式 */
nav ul li a {
box-shadow: inset 0 0 0 #F4C430;
transition: all 0.1s ease-in !important;
}
nav ul li a:hover {
box-shadow: inset 7px 0 0 #F4C430;
}
nav .mw-parser-output ul li a {
font-weight: bold;
line-height: 1.857;
}
nav .mw-parser-output ul li a > i {
margin-right: 0.76em;
font-size: 1.4em;
vertical-align: middle;
width: 24px;
text-align: center;
}
/* 隐藏登录后的首页欢迎语 */
body.page-Main_Page.is-authenticated .pre-content {
display: none !important;
}
/* 黑幕 */
.heimu,
.heimu a,
a .heimu,
.heimu a.new {
background-color: #252525;
color: #252525;
text-shadow: none;
}
.heimu:hover,
.heimu:active,
.heimu:hover .heimu,
.heimu:active .heimu {
color: white !important;
}
.heimu:hover a,
a:hover .heimu,
.heimu:active a,
a:active .heimu {
color: lightblue !important;
}
.heimu:hover .new,
.heimu .new:hover,
.new:hover .heimu,
.heimu:active .new,
.heimu .new:active,
.new:active .heimu {
color: #BA0000 !important;
}
/* 目录样式 */
.client-js .toc-mobile {
background-color: #F5F5F5 !important;
border: solid 0px transparent !important;
border-left: 4px solid #f4c430 !important;
}
/* 页顶提示模板相关 */
#commonBoxInfo {
color: #f00;
font-weight: bold;
text-align: center;
}
#commonBoxList > .commonBoxButton {
display: inline-block;
border-bottom: 3px solid #000;
width: 40px;
height: 40px;
background: #fff 50% 50% no-repeat;
background-size: contain;
cursor: pointer;
transition: opacity .5s;
}
#commonBoxList.open > .commonBoxButton {
opacity: .1;
}
#commonBoxList.open > .commonBoxButton.current {
opacity: 1;
}
.common-box {
padding: .2em .4em;
border: 0.7px solid #ddd;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
-o-border-radius: 10px;
border-radius: 10px;
background: rgba(250,250,250,0.65)!important;
}
/* 修复子页面列表和common-box宽度不足 */
.mw-prefixindex-list-table,
.common-box {
width: 100% !important;
}
/* info类模板 */
.infobox {
margin:0 auto;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.10);
border-radius: 5px;
overflow: hidden;
border: 0.5px solid #ddd;
}
.infobox2 {
padding: 0.2em;
float: middle;
clear: middle;
border-radius: 4px;
background: rgba(251,251,251);
}
.infoBoxTitle {
margin: 3px auto;
padding: 0;
text-align: center;
font-weight: 700;
}
.infoBoxIcon {
display: table-cell;
padding: 2px 0 2px .5em;
vertical-align: middle;
}
.infoBoxText {
display: table-cell;
padding: .25em .5em .25em 1.3em;
width: 100%;
vertical-align: middle;
}
.infoBoxContent {
padding: 0.6em;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
border-radius: 5px;
overflow: hidden;
border: 1px solid #ddd;
background: rgba(251,251,251);
}
.infoBoxBelow {
margin: 0 auto;
padding: 0;
text-align: center;
}
.infoBoxYellow {
padding: 0.5em;
background: rgba(255,255,245);
}
.infoBoxRed {
padding: 0.5em;
background: rgba(258,240,245);
}
.infoBoxBlue {
padding: 0.4em;
background: rgba(240,248,255);
}
.infoBoxPurple {
padding: 0.4em;
background: rgba(248,248,255);
}
.infoBoxGreen {
padding: 0.5em;
background: rgba(245,255,250);
}
.infoBoxOrange {
padding: 0.5em;
background: rgba(250,240,230);
}
/* 通知样式 */
.mw-echo-ui-notificationsInboxWidget-toolbarWrapper {
background: transparent !important;
}
.overlay-header h2 > * {
color:#333 !important;
}
.notification-count {
background: transparent !important;
}
/* 界面底部样式 */
.minerva-footer {
background-image: linear-gradient(-45deg,#f4c430 10px,transparent 11px);
}
/*热门评论*/
.comment-container-top>div:not(.comment-thread) {
background-color: #f4c430 !important;
color: white !important;
font-weight: bolder !important;
}
.comment-thread.comment-popular {
background-color: #FEF6E0 !important;
}
/* 评论边距 */
.comment-container-top,
.comment-container {
margin-left: 2% !important;
margin-right: 2% !important;
}
/* 最近更改页面 */
.mw-changeslist-legend {
display: none!important;
}
/* 编辑区样式 */
.my-buttons {
padding: .5em;
}
.my-buttons a {
text-decoration: none;
border: 1px #069 outset;
padding: .1em;
}
.my-buttons a:hover,
.my-buttons a:active {
border-style: inset;
}
/* 表格MD化 */
table.wikitable {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
border-radius: 4px;
background-color: rgba(251,251,251,0.8) !important;
overflow: hidden;
}
/* 表格使用最小字体 */
table.wraptable {
white-space: normal;
}
/* 修复单元格莫名空行 */
td {
vertical-align: middle;
}
/* 修复子页面列表和common-box宽度不足 */
.mw-prefixindex-list-table,
.common-box {
width: 100%!important;
}
/* 侧边栏和替换logo图片隐藏 */
#sidebar-character,
#wglogo {
display: none;
}
/* 导航条 */
#breadcrumb {
font: bold 18px Arial, Helvetica, sans-serif;
color: black;
border: solid 1px rgb(204, 204, 204);
width: 100%;
overflow: hidden;
margin: 0;
padding: 0 0 .5em 0;
}
#breadcrumb span {
list-style-type: none;
float: left;
padding-left: 10px;
}
#breadcrumb span:after {
content: "·"
}
#breadcrumb span:last-child:after {
content: "";
}
#breadcrumb a {
text-align: center;
vertical-align: middle;
display: inline-block;
padding-right: 15px;
text-decoration: none;
color: #454545!important;
}
.home {
border: none;
margin: 8px 0;
}
.header-container {
background-color: #f4c430 !important;
}
nav ul li a:hover {
box-shadow: inset 5px 0 0 0 #f4c430;
text-decoration: none;
}
/* 注释文字 */
sup.mobileref {
display:none;
}
sup.mobileref:after {
content: " (" attr(title) ")";
display: inline;
}
/* code 内边距修复 */
code {
padding: 3px
}
/* Tabs */
.tab .TabLabelText {
border-top: 3px solid transparent;
padding: 1px;
background: #fff;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
cursor: pointer;
flex: none;
}
.tab .TabLabel {
z-index: 2;
position: sticky;
top: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
display: flex;
flex-wrap: wrap;
background-color: white;
}
.tab .TabLabelText.selected {
border-top: 3px solid green;
padding: 1px;
background: white;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
}
.tab .TabContent {
background: white;
padding: 20px 30px;
position: relative;
z-index: 1;
border: 1px solid #aaa;
}
.tab .TabContentText {
display: none;
}
.tab .TabContentText.selected {
display: block;
}
.Tabs .Tab {
border-bottom: 1px solid #aaa;
}
.Tabs .Tab:first-child {
border-top: 1px solid #aaa;
}
.Tabs .Tab .TabLabelText {
padding: 7px;
}
.Tabs .Tab .TabContentText {
padding: 3px;
}
/* wikitable green */
table.wikitable-green {
background: #c9f6e1
}
.wikitable-green th {
background: #13ec93
}
.wikitable-green td {
background: #f3f3f3
}
/* wikitable border */
#content.content table.wikitable {
border: none;
}
/* 大家族模板 */
.navbox th, .navbox-group {
background: #a5e4a5;
}
/* 来个高优先级的 */
.navbox .content table {
width: 100% !important;
}
.navbox {
border: 1px solid #aaa;
clear: both;
padding: 1px;
text-align: center;
width: 100%;
display: contents!important;
}
.navbox-group {
white-space: nowrap;
}
.navbox table {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
padding: 1px;
text-align: center;
width: 100% !important;
margin: 0 !important;
}
.navbox-subgroup .navbox-group {
background: #e6f6e6;
}
.navbox-title > div:first-of-type {
display: none;
}
/* Fix by case : Rev 1327309 ([[Special:Permalink/1327309]])
Address alignment issue of nested tabs in Navbox */
.navbox .TabLabel {
text-align: left;
}
@media screen and (max-width: 640px) {
.navbox-group {
display: block;
}
.navbox-group + * {
display: block;
width: 100%;
border-left: 1em solid #a5e4a5 !important;
padding-left: 3px !important;
padding-top: 3px !important;
box-sizing: border-box;
}
.navbox-subgroup .navbox-group + * {
border-left: 1em solid #e6f6e6 !important;
}
}
.GUP_Item_Title_Cell {
width: 5em;
background-color: #FFCCCC;
white-space: nowrap;
padding: 0.438em 0.625em;
vertical-align: top;
text-align: left;
}
.Infobox_GUP tr {
border: 1px solid #a2a9b1;
}
.Infobox_GUP td {
vertical-align: top;
padding: 0.438em 0.625em;
}
/* 修复用户页欢迎辞覆盖编辑框的bug */
.overlay.visible {
z-index: 999;
}
/* Fix by case: Tracklist doesn't display on mobile devices due to inappropriate margin configuration */
.tracklist {
margin:0 !important;
}
/*{{Infobox Ooarai team}、{{GUP人物信息}}移动版CSS。*/
.Infobox_GUP {
text-align: left;
font-size: small;
line-height: 1.5em;
border: 1px solid #a2a9b1;
background-color: #FFFFFF;
float: right;
}
.GUP_Title_Cell {
text-align: center;
padding: 0.25em 0.33em 0.33em;
line-height: 1.2em;
font-size: 1.25em;
background-color: #FF9999;
color: #FFFFFF;
}
.GUP_Subtitle_Cell {
text-align: center;
background-color: #FF9999;
color: #FFFFFF;
font-size: 100%;
padding: 0.438em 0.625em;
}
.GUP_Item_Title_Cell {
width: 5em;
background-color: #FFCCCC;
white-space: nowrap;
padding: 0.438em 0.625em;
vertical-align: top;
text-align: left;
}
.Infobox_GUP tr {
border: 1px solid #a2a9b1;
}
.Infobox_GUP td {
vertical-align: top;
padding: 0.438em 0.625em;
}
/* 扩展mediawiki.legacy.commonPrint,shared定义的样式 */
/* success and error messages */
.error,
.warning,
.success {
font-size: larger;
}
.error {
color: #d33;
}
.warning {
color: #705000;
}
.success {
color: #009000;
}
.errorbox,
.warningbox,
.successbox {
border: 1px solid;
padding: 0.5em 1em;
margin-bottom: 1em;
display: inline-block;
zoom: 1;
}
.errorbox h2,
.warningbox h2,
.successbox h2 {
font-size: 1em;
color: inherit;
font-weight: bold;
display: inline;
margin: 0 0.5em 0 0;
border: 0;
}
.errorbox {
color: #d33;
border-color: #fac5c5;
background-color: #fae3e3;
}
.warningbox {
color: #705000;
border-color: #fde29b;
background-color: #fdf1d1;
}
.successbox {
color: #008000;
border-color: #b7fdb5;
background-color: #e1fddf;
}