旧站的内容可能已过时。您可以前往“真魂”分站查看本页面,那里的内容将会定期同步。
“MediaWiki:Common.css”的版本间的差异
来自个人维基
(注释) |
|||
第1行: | 第1行: | ||
+ | /* 字体 */ | ||
*[lang]:lang(zh), | *[lang]:lang(zh), | ||
*[lang]:lang(cmn) { | *[lang]:lang(cmn) { | ||
第13行: | 第14行: | ||
"Noto Color Emoji"; | "Noto Color Emoji"; | ||
} | } | ||
− | |||
*[lang]:not(:lang(zh)):not(:lang(cmn)) { | *[lang]:not(:lang(zh)):not(:lang(cmn)) { | ||
font-family: -apple-system, | font-family: -apple-system, | ||
第31行: | 第31行: | ||
} | } | ||
+ | pre, | ||
+ | code, | ||
+ | samp, | ||
+ | kbd, | ||
+ | textarea { | ||
+ | font-family: SFMono-Regular, | ||
+ | Menlo, | ||
+ | Monaco, | ||
+ | Consolas, | ||
+ | "Liberation Mono", | ||
+ | "Courier New", | ||
+ | monospace !important; | ||
+ | } | ||
#bodyContent { | #bodyContent { | ||
font-size: unset; | font-size: unset; | ||
第36行: | 第49行: | ||
} | } | ||
+ | /* 页头 */ | ||
#mw-page-base, | #mw-page-base, | ||
#mw-page-base-master { | #mw-page-base-master { | ||
第41行: | 第55行: | ||
} | } | ||
+ | /* 按钮 */ | ||
#searchform input[type=submit], | #searchform input[type=submit], | ||
.lnnblog-button-small { | .lnnblog-button-small { | ||
第48行: | 第63行: | ||
padding: 2px 5px; | padding: 2px 5px; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
#wpSave, | #wpSave, | ||
.lnnblog-button-blue { | .lnnblog-button-blue { | ||
第97行: | 第91行: | ||
} | } | ||
+ | /* 代码块 */ | ||
pre { | pre { | ||
overflow-x: auto; | overflow-x: auto; | ||
overflow-y: hidden; | overflow-y: hidden; | ||
+ | } | ||
+ | td>pre:first-child:last-child, | ||
+ | td>.mw-code:first-child:last-child { | ||
+ | margin: -0.2em; | ||
+ | border: none; | ||
} | } | ||
+ | /* 隐藏空元素hack */ | ||
.lnnblog-hide-empty:empty { | .lnnblog-hide-empty:empty { | ||
display: none !important; | display: none !important; | ||
} | } | ||
+ | /* 首行缩进 */ | ||
p.lnnblog-first-line-indent:before, | p.lnnblog-first-line-indent:before, | ||
.lnnblog-first-line-indent p:before { | .lnnblog-first-line-indent p:before { | ||
第111行: | 第113行: | ||
} | } | ||
− | / | + | /* Template:Info |
− | + | ||
* 引自<https://zh.moegirl.org.cn/MediaWiki:Gadget-site-styles.css >,有改动 | * 引自<https://zh.moegirl.org.cn/MediaWiki:Gadget-site-styles.css >,有改动 | ||
* CC BY-NC-SA 3.0 | * CC BY-NC-SA 3.0 |
2021年8月23日 (一) 11:28的版本
/* 字体 */ *[lang]:lang(zh), *[lang]:lang(cmn) { font-family: '思源黑体 CN', '苹方-简', '等线', 'Microsoft YaHei UI', '微软雅黑', 'Droid Sans Fallback', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; } *[lang]:not(:lang(zh)):not(:lang(cmn)) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; } pre, code, samp, kbd, textarea { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; } #bodyContent { font-size: unset; font-family: unset; } /* 页头 */ #mw-page-base, #mw-page-base-master { background: linear-gradient(#398, #f6f6f6 50%); } /* 按钮 */ #searchform input[type=submit], .lnnblog-button-small { background: linear-gradient(#f0f0f0, #e0e0e0); border-radius: 3px; border: 1px solid #c0c0c0; padding: 2px 5px; } #wpSave, .lnnblog-button-blue { display: inline-block; padding: 0.5rem 1rem; background: linear-gradient(#4060ff, #3040ff); color: white; border-radius: 3px; border: 2px solid #1c2880; } #wpPreview, #wpDiff, .lnnblog-button-white { display: inline-block; padding: 0.5rem 1rem; background: linear-gradient(#f0f0f0, #e0e0e0); color: black; border-radius: 3px; border: 2px solid #c0c0c0; } .lnnblog-button-red { display: inline-block; padding: 0.5rem 1rem; background: linear-gradient(#ff6040, #ff4030); color: white; border-radius: 3px; border: 2px solid #80281c; } /* 代码块 */ pre { overflow-x: auto; overflow-y: hidden; } td>pre:first-child:last-child, td>.mw-code:first-child:last-child { margin: -0.2em; border: none; } /* 隐藏空元素hack */ .lnnblog-hide-empty:empty { display: none !important; } /* 首行缩进 */ p.lnnblog-first-line-indent:before, .lnnblog-first-line-indent p:before { content: '\3000\3000'; } /* Template:Info * 引自<https://zh.moegirl.org.cn/MediaWiki:Gadget-site-styles.css >,有改动 * CC BY-NC-SA 3.0 */ .infoBox { margin: 0 auto; width: 80%; border-left: 10px solid; } .infoBoxTitle { margin: 3px auto; text-align: center; font-weight: bold; } .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; }