MediaWiki:Mobile.css:修订间差异
无编辑摘要 |
无编辑摘要 |
||
第125行: | 第125行: | ||
src: url('https://cdn.jsdelivr.net/gh/Honoka55/Xdi8Fonts/Fira Xdi8 Variable.ttf') format('truetype') | src: url('https://cdn.jsdelivr.net/gh/Honoka55/Xdi8Fonts/Fira Xdi8 Variable.ttf') format('truetype') | ||
} | } | ||
@font-face { | |||
font-family: 'XEGOEPUAall'; | |||
src: url('/w/resources/assets/XEGOEPUAall Regular.ttf') format('truetype'); | |||
} | |||
@font-face { | @font-face { | ||
font-family: "Xegoe UI"; | font-family: "Xegoe UI"; | ||
第139行: | 第145行: | ||
font-family: "Xegoe UI", "Fira Xdi8 Variable", "Fira Xdi8"; | font-family: "Xegoe UI", "Fira Xdi8 Variable", "Fira Xdi8"; | ||
margin-left: -.844em; /* m 字符实际宽度 */ | margin-left: -.844em; /* m 字符实际宽度 */ | ||
} | |||
span.xdi8-pua-text { | |||
margin-left: -.844em; | |||
font-family: XEGOEPUAall; | |||
} | } | ||
2021年8月23日 (一) 10:05的版本
/* 这里放置的CSS将影响使用移动版网站的用户 */
body {
font-variant-ligatures: discretionary-ligatures;
}
.xdi8-porthole {
float: right;
background: #F6F5F0;
text-align: center;
padding: .25em .5em;
}
/* 以下内容来自 MCBBS Wiki 并以 CC BY-NC-SA 4.0 国际授权 */
/* info类模板 */
.infoBox {
margin: 0 auto;
}
.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 {
border: 1px solid #ddd;
border-left-width: 0;
background: #fbfbfb;
}
.infoBoxBelow {
margin: 0 auto;
padding: 0;
text-align: center;
}
/* 页面底部导航框(2011年8月16日引自中文维基)(所谓大家族模板) */
table.navbox {
border: 1px solid #aaa;
clear: both;
margin: auto;
padding: 1px;
text-align: center;
width: 100%;
}
table.navbox+table.navbox {
margin-top: -1px;
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
padding-left: 1em;
padding-right: 1em;
text-align: center;
}
.navbox-group {
font-weight: 700;
padding-left: 1em;
padding-right: 1em;
white-space: nowrap;
}
.navbox,
.navbox-subgroup {
background: none repeat scroll 0 0 #fdfdfd;
}
.navbox-list {
border-color: #fdfdfd;
}
.navbox-title,
table.navbox th {
background: none repeat scroll 0 0 #a5e4a5;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background: none repeat scroll 0 0 #c0ecc0;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background: none repeat scroll 0 0 #e6f6e6;
}
.navbox-even {
background: none repeat scroll 0 0 #FDF6E6;
}
.navbox-odd {
background: none repeat scroll 0 0 transparent;
}
.collapseButton {
float: right;
font-weight: 400;
text-align: right;
width: auto;
}
.navbox .collapseButton {
width: 6em;
}
/* Fix by case : Rev 1327309 ([[Special:Permalink/1327309]])
Address alignment issue of nested tabs in Navbox */
.navbox .TabLabel {
text-align: left;
}
/* 以上内容来自 MCBBS Wiki 并以 CC BY-NC-SA 4.0 国际授权 */
.xd-textwidth {
width: 100%;
height: auto;
}
@font-face {
font-family: "Fira Xdi8";
src: url('https://cdn.jsdelivr.net/gh/Honoka55/Xdi8Fonts/Fira Xdi8 Variable.ttf') format('truetype')
}
@font-face {
font-family: 'XEGOEPUAall';
src: url('/w/resources/assets/XEGOEPUAall Regular.ttf') format('truetype');
}
@font-face {
font-family: "Xegoe UI";
src: url('/w/resources/assets/Xegoe UI Regular.ttf') format('truetype')
}
@font-face {
font-family: "Noto Emoji";
src: url('/w/resources/assets/NotoEmoji-Regular.ttf') format('truetype')
}
span.xdi8-text {
font-family: "Xegoe UI", "Fira Xdi8 Variable", "Fira Xdi8";
margin-left: -.844em; /* m 字符实际宽度 */
}
span.xdi8-pua-text {
margin-left: -.844em;
font-family: XEGOEPUAall;
}
.disambiguation {
background-color: #FED;
}
.head-warning {
background-color: #FEE;
}
.disambiguation, .head-warning {
color: #555;
font-size: .8em;
padding: 5px;
}
/* 正文字重为 400, 强调字重为 600 */
body, #firstHeading, button, input, select, textarea {
font-family: -apple-system, BlinkMacSystemFont,
'Helvetica Neue', Helvetica, Arial, sans-serif,
'Noto Emoji';
}
a {
font-weight: normal;
}
strong, b {
font-weight: 600;
}
body:lang(zh-CN), #firstHeading:lang(zh-CN), button:lang(zh-CN),
input:lang(zh-CN), select:lang(zh-CN), textarea:lang(zh-CN) {
font-family: 'PingFang SC', 'Lantinghei SC',
'Microsoft Yahei', 'Hiragino Sans GB', 'Microsoft Sans Serif',
'WenQuanYi Micro Hei', sans-serif, 'Noto Emoji';
}