欢迎来到奇葩栖息地!欢迎加入Discord服务器:XfrfHCzfbW。请先至特殊:参数设置验证邮箱后再进行编辑。在特殊:参数设置挑选自己想要使用的小工具!不会编辑?请至这里学习Wikitext语法。
MediaWiki:Common.css:修订间差异
来自奇葩栖息地
添加的内容 删除的内容
SkyEye FAST(讨论 | 贡献) (建立内容为“→这里放置的CSS将应用于所有皮肤: .mw-wiki-logo, .mw-wiki-logo.fallback { display: block; background-size: 100%; } #p-logo a { background-si…”的新页面) |
SkyEye FAST(讨论 | 贡献) (回退到SkyEye FAST在2022-03-27 06:35:45时制作的修订版本2612,通过popups) 标签:手工回退 |
||
(未显示2个用户的17个中间版本) | |||
第1行: | 第1行: | ||
/* |
|||
/* 这里放置的CSS将应用于所有皮肤 */ |
|||
* 这里放置的CSS将应用于所有皮肤,仅对桌面版视图生效 |
|||
* 仅用于移动版视图请放置于[[MediaWiki:Mobile.css]]内 |
|||
* 同时用于桌面版和移动版请放置于[[MediaWiki:Gadget-site-styles.css]]内 |
|||
*/ |
|||
.mw-wiki-logo, .mw-wiki-logo.fallback { |
.mw-wiki-logo, .mw-wiki-logo.fallback { |
||
display: block; |
display: block; |
||
第6行: | 第11行: | ||
#p-logo a { |
#p-logo a { |
||
background-size: 100%; |
|||
} |
} |
||
第27行: | 第32行: | ||
.mw-body:lang(zh-hans) h6, |
.mw-body:lang(zh-hans) h6, |
||
.mw-body:lang(zh-hans) dt { |
.mw-body:lang(zh-hans) dt { |
||
font-family: 'Linux Libertine', 'Times New Roman', 'Liberation Serif', 'Nimbus Roman', 'Noto Serif SC', 'Times', serif; |
font-family: 'Linux Libertine', 'Times New Roman', 'Liberation Serif', 'Nimbus Roman', '思源宋体', 'Noto Serif CJK SC', 'Source Han Serif SC', 'Noto Serif SC', 'Noto Serif', 'Times', serif; |
||
} |
} |
||
第39行: | 第44行: | ||
.mw-body:lang(zh-hant) h6, |
.mw-body:lang(zh-hant) h6, |
||
.mw-body:lang(zh-hant) dt { |
.mw-body:lang(zh-hant) dt { |
||
font-family: 'Linux Libertine', 'Times New Roman', 'Liberation Serif', 'Nimbus Roman', 'Noto Serif TC', 'Times', serif; |
font-family: 'Linux Libertine', 'Times New Roman', 'Liberation Serif', 'Nimbus Roman', 'Noto Serif CJK TC', 'Source Han Serif TC', 'Noto Serif TC', 'Times', serif; |
||
} |
} |
||
#siteSub:lang(ja), |
|||
#p-logo-text:lang(ja) a, |
|||
.mw-body:lang( |
.mw-body:lang(ja) h1, |
||
.mw-body:lang(ja) h2, |
|||
font-family: 'Segoe UI','Segoe UI Emoji','Segoe UI Symbol','Lato','Liberation Sans','Noto Sans','Helvetica Neue','Helvetica',sans-serif; |
|||
.mw-body:lang(ja) h3, |
|||
.mw-body:lang(ja) h4, |
|||
.mw-body:lang(ja) h5, |
|||
.mw-body:lang(ja) h6, |
|||
.mw-body:lang(ja) dt { |
|||
font-family: 'Linux Libertine', 'Times New Roman', 'Liberation Serif', 'Nimbus Roman', 'Noto Serif CJK', 'Source Han Serif', 'Noto Serif JP', 'Times', serif; |
|||
} |
} |
||
/* Reset italic styling set by user agent */ |
|||
/* Element animator */ |
|||
cite, dfn { |
|||
#siteNotice .animated > *:not(.animated-active), |
|||
font-style: inherit; |
|||
#bodyContent .animated > *:not(.animated-active), |
|||
#bodyContent .animated > .animated-subframe > *:not(.animated-active) { |
|||
display: none; |
|||
} |
} |
||
#bodyContent span.animated, |
|||
/* Straight quote marks for <q> */ |
|||
#bodyContent span.animated.animated-visible > *, |
|||
q { |
|||
#bodyContent span.animated.animated-visible > .animated-subframe > * { |
|||
quotes: '"' '"' "'" "'"; |
|||
display: inline-block; |
|||
} |
} |
||
#bodyContent div.animated.animated-visible > *, |
|||
/* Style the sitenotice, avoid content jumping */ |
|||
#bodyContent div.animated.animated-visible > .animated-subframe > * { |
|||
#siteNotice { |
|||
display: block; |
|||
margin-bottom: 2px; |
|||
text-align: center; |
|||
} |
} |
||
/* prevent sitenotice show/hide toggle from moving page contents down after pageload */ |
|||
/* From wjghj.cn under CC BY-NC-SA 4.0 */ |
|||
.globalNotice .globalNoticeDismiss { |
|||
float: right; |
|||
} |
|||
#siteNotice #localNotice, #siteNotice .globalNotice { |
|||
.siteNoticeScroll { |
|||
background-color: transparent; |
|||
width: 100%; |
|||
border: none; |
|||
height: 25px; |
|||
line-height: 25px; |
|||
overflow: hidden |
|||
} |
} |
||
#localNotice .globalNoticeDismiss { |
|||
.siteNoticeScroll li { |
|||
display: none; |
|||
height: 25px; |
|||
list-style: none; |
|||
text-align: center |
|||
} |
} |
||
第168行: | 第178行: | ||
} |
} |
||
/* [[Template: |
/* [[Template:Hatnote]] */ |
||
.dablink { |
.dablink { |
||
padding-left: 2em; |
padding-left: 2em; |
||
第246行: | 第256行: | ||
body.page-Main_Page.action-submit #siteSub { |
body.page-Main_Page.action-submit #siteSub { |
||
display: none; |
display: none; |
||
} |
|||
/* [[Template:Tabs]] */ |
|||
.tabtable-nav { |
|||
display: inline-block; |
|||
} |
|||
.tabtable-tab { |
|||
display: inline-block; |
|||
cursor: pointer; |
|||
} |
|||
.tabtable-tab.active { |
|||
background: #fff; |
|||
border-bottom-color: #fff; |
|||
} |
|||
.tabtable-tab span { |
|||
border: 2px solid transparent; |
|||
border-top-left-radius: .25rem; |
|||
border-top-right-radius: .25rem; |
|||
padding: 0.5rem 1rem; |
|||
display: block; |
|||
} |
|||
.tabtable-tab.active span { |
|||
color: #495057; |
|||
background-color: #fff; |
|||
border-color: #666 #666 #fff; |
|||
} |
|||
.tabtable-cell { |
|||
padding: 5px; |
|||
border: 2px solid #666; |
|||
margin-top: -2px; |
|||
display: none; |
|||
background: #fff; |
|||
} |
|||
.tabtable-cell.active { |
|||
display: inline-block; |
|||
} |
} |
||
第303行: | 第272行: | ||
.jslink:active { |
.jslink:active { |
||
color: #FAA700; |
color: #FAA700; |
||
} |
|||
/* Mark internal links as plain */ |
|||
#content a.external[href^="https://mh.wdf.ink/wiki/"], { |
|||
background: none; |
|||
padding-right: 0; |
|||
} |
} |
2023年9月30日 (六) 15:41的最新版本
/*
* 这里放置的CSS将应用于所有皮肤,仅对桌面版视图生效
* 仅用于移动版视图请放置于[[MediaWiki:Mobile.css]]内
* 同时用于桌面版和移动版请放置于[[MediaWiki:Gadget-site-styles.css]]内
*/
.mw-wiki-logo, .mw-wiki-logo.fallback {
display: block;
background-size: 100%;
}
#p-logo a {
background-size: 100%;
}
#siteSub:lang(zh),
#p-logo-text:lang(zh) a,
.mw-body:lang(zh) h1,
.mw-body:lang(zh) h2,
.mw-body:lang(zh) h3,
.mw-body:lang(zh) h4,
.mw-body:lang(zh) h5,
.mw-body:lang(zh) h6,
.mw-body:lang(zh) dt,
#siteSub:lang(zh-hans),
#p-logo-text:lang(zh-hans) a,
.mw-body:lang(zh-hans) h1,
.mw-body:lang(zh-hans) h2,
.mw-body:lang(zh-hans) h3,
.mw-body:lang(zh-hans) h4,
.mw-body:lang(zh-hans) h5,
.mw-body:lang(zh-hans) h6,
.mw-body:lang(zh-hans) dt {
font-family: 'Linux Libertine', 'Times New Roman', 'Liberation Serif', 'Nimbus Roman', '思源宋体', 'Noto Serif CJK SC', 'Source Han Serif SC', 'Noto Serif SC', 'Noto Serif', 'Times', serif;
}
#siteSub:lang(zh-hant),
#p-logo-text:lang(zh-hant) a,
.mw-body:lang(zh-hant) h1,
.mw-body:lang(zh-hant) h2,
.mw-body:lang(zh-hant) h3,
.mw-body:lang(zh-hant) h4,
.mw-body:lang(zh-hant) h5,
.mw-body:lang(zh-hant) h6,
.mw-body:lang(zh-hant) dt {
font-family: 'Linux Libertine', 'Times New Roman', 'Liberation Serif', 'Nimbus Roman', 'Noto Serif CJK TC', 'Source Han Serif TC', 'Noto Serif TC', 'Times', serif;
}
#siteSub:lang(ja),
#p-logo-text:lang(ja) a,
.mw-body:lang(ja) h1,
.mw-body:lang(ja) h2,
.mw-body:lang(ja) h3,
.mw-body:lang(ja) h4,
.mw-body:lang(ja) h5,
.mw-body:lang(ja) h6,
.mw-body:lang(ja) dt {
font-family: 'Linux Libertine', 'Times New Roman', 'Liberation Serif', 'Nimbus Roman', 'Noto Serif CJK', 'Source Han Serif', 'Noto Serif JP', 'Times', serif;
}
/* Reset italic styling set by user agent */
cite, dfn {
font-style: inherit;
}
/* Straight quote marks for <q> */
q {
quotes: '"' '"' "'" "'";
}
/* Style the sitenotice, avoid content jumping */
#siteNotice {
margin-bottom: 2px;
text-align: center;
}
/* prevent sitenotice show/hide toggle from moving page contents down after pageload */
.globalNotice .globalNoticeDismiss {
float: right;
}
#siteNotice #localNotice, #siteNotice .globalNotice {
background-color: transparent;
border: none;
}
#localNotice .globalNoticeDismiss {
display: none;
}
/** Template stylings **/
/* [[Template:SimpleNavbox]] */
.navbox {
background: #FFF;
border: 1px solid #CCC;
margin: 1em auto 0;
width: 100%;
}
.navbox table {
background: #FFF;
margin-left: -4px;
margin-right: -2px;
}
.navbox table:first-child {
margin-top: -2px;
}
.navbox table:last-child {
margin-bottom: -2px;
}
.navbox .navbox-top {
white-space: nowrap;
background-color: #CCC;
padding: 0 3px;
text-align: center;
}
.navbox .navbox-middle {
white-space: nowrap;
background-color: #DDD;
padding: 0 3px;
text-align: center;
}
.navbox .navbox-thru {
white-space: nowrap;
background-color: #EEE;
padding: 0 3px;
text-align: center;
}
.navbox-navbar,
.navbox-navbar-mini {
float: left;
font-size: 80%;
}
.navbox-title {
padding: 0 10px;
font-size: 110%;
}
.navbox th {
background-color: #EEE;
padding: 0 10px;
white-space: nowrap;
text-align: right;
}
.navbox td {
width: 100%;
padding: 0 0 0 2px;
}
/* [[Template:LoadBox]] with navbox */
.loadbox-navbox {
padding: 2px !important;
margin: 1em 0 0 !important;
clear: both;
}
#content .loadbox-navbox > p {
background-color: #CCC;
text-align: center;
margin: 0;
padding: 0 3px;
}
.loadbox-navbox > p > b {
font-size: 110%;
}
.loadbox-navbox .navbox {
margin: 0 -2px -2px;
border: 0;
}
.loadbox-navbox > .load-page-content > .mw-parser-output > .navbox > tbody > tr:first-child {
display: none;
}
/* [[Template:Hatnote]] */
.dablink {
padding-left: 2em;
}
/* Turn a list into a tree view style (See [[.minecraft]]) */
.treeview {
margin-top: 0.3em;
}
.treeview .treeview-header {
padding-left: 3px;
font-weight: bold;
}
.treeview .treeview-header:last-child {
border-color: #636363 !important;
border-left-style: dotted;
}
.treeview .treeview-header:not(:last-child)::before {
content: none;
}
.treeview .treeview-header:last-child::before {
border-bottom: 0;
}
.treeview ul,
.treeview li {
margin: 0;
padding: 0;
list-style-type: none;
list-style-image: none;
}
.treeview li li {
position: relative;
padding-left: 13px;
margin-left: 7px;
border-left: 1px solid #636363;
}
.treeview li li::before {
content: "";
position: absolute;
top: 0;
left: -1px;
width: 11px;
height: 11px;
border-bottom: 1px solid #636363;
}
.treeview li li:last-child:not(.treeview-continue) {
border-color: transparent;
}
.treeview li li:last-child:not(.treeview-continue)::before {
border-left: 1px solid #636363;
width: 10px;
}
.nbttree-inherited {
background-color: #E6E6FA;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
/* Fix for hieroglyphs specificity issue in infoboxes ([[phab:T43869]]) */
table.mw-hiero-table td {
vertical-align: middle;
}
#siteSub {
display: block; font-weight: normal; font-size: normal;
}
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-submit #siteSub {
display: none;
}
/* Simulate link styling for JS only links */
.jslink {
color: #0645AD;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.jslink:hover {
text-decoration: underline;
cursor: pointer;
}
.jslink:active {
color: #FAA700;
}
/* Mark internal links as plain */
#content a.external[href^="https://mh.wdf.ink/wiki/"], {
background: none;
padding-right: 0;
}