MediaWiki:Minerva.css
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
/* Fix style of widgets icon */
.mw-ui-icon-portletlink-t-shorturl:before {
background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cg%20fill%3D%22%2354595d%22%3E%3Cpath%20d%3D%22M4.83%2015h2.91a4.88%204.88%200%2001-1.55-2H5a3%203%200%20110-6h3a3%203%200%20012.82%204h2.1a4.82%204.82%200%2000.08-.83v-.34A4.83%204.83%200%20008.17%205H4.83A4.83%204.83%200%20000%209.83v.34A4.83%204.83%200%20004.83%2015z%22%2F%3E%3Cpath%20d%3D%22M15.17%205h-2.91a4.88%204.88%200%20011.55%202H15a3%203%200%20110%206h-3a3%203%200%2001-2.82-4h-2.1a4.82%204.82%200%2000-.08.83v.34A4.83%204.83%200%200011.83%2015h3.34A4.83%204.83%200%200020%2010.17v-.34A4.83%204.83%200%200015.17%205z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E);
}
/* Mediawiki:Mobile.css */
/* Fix style of mw-highlight */
div.mw-highlight {
background-color: #f8f8f8;
}
.mw-highlight pre {
position: unset;
}
/* Fix style of dd scroll bar */
dl dd {
overflow: unset;
}
/* Fix style of contributions list */
ul.mw-contributions-list .comment, ul.special .comment {
word-break: break-word;
}
/* Hide the images */
.geo-nondefault, .geo-multi-punct,
/* Hide stuff meant for accounts with special permissions. Made visible again in
[[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-accountcreator.css]] and
[[MediaWiki:Group-autoconfirmed.css]]. */
.accountcreator-show,
.autoconfirmed-show,
.extendedconfirmed-show,
.patroller-show,
.sysop-show,
.templateeditor-show,
/* Copied from Common.css - allow for hiding text in compact form e.g. clean up templates */
.hide-when-compact,
/* portal pages are badly formatted. Until this changes these should be hidden. (see https://phabricator.wikimedia.org/T86495) */
.noprint.portal {
display: none;
}
/* For linked citation numbers and document IDs, where
the number need not be shown on a screen or a handheld,
but should be included in the printed version
TODO: Move to Citation template when templates have stylesheets
See https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates
*/
@media screen, handheld {
.citation *.printonly {
display: none;
}
}
/* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box
*/
.citation {
word-wrap: break-word;
}
/* Style for horizontal lists (separator following item).
@source mediawiki.org/wiki/Snippets/Horizontal_lists
@revision 4.2 (2013-11-20)
@author: [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
}
/* Generate interpuncts */
.mw-parser-output .hlist dt:after {
content: ": ";
}
.mw-parser-output .hlist dd:after,
.mw-parser-output .hlist li:after {
content: " · ";
font-weight: bold;
}
.mw-parser-output .hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after {
content: ") ";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.mw-parser-output .hlist ol {
counter-reset: list-item;
}
.mw-parser-output .hlist ol > li {
counter-increment: list-item;
}
.mw-parser-output .hlist ol > li:before {
content: " " counter(list-item) " ";
}
.mw-parser-output .hlist dd ol > li:first-child:before,
.mw-parser-output .hlist dt ol > li:first-child:before,
.mw-parser-output .hlist li ol > li:first-child:before {
content: " (" counter(list-item) " ";
}
/* Unbulleted lists e.g. Barack Obama page */
.plainlist ul {
list-style: none;
padding-left: 0;
}
.plainlist ul li {
margin-bottom: 0;
}
/* Geographical coordinates defaults. See [[Template:Coord/link]]
for how these are used. The classes "geo", "longitude", and
"latitude" are used by the [[Geo microformat]]. */
.geo-default, .geo-dms, .geo-dec { display: inline; }
.longitude, .latitude { white-space: nowrap; }
/* Prevent line breaks in silly places:
1) Where desired
2) Links when we don't want them to
3) Bold "links" to the page itself
4) Ref tags with group names <ref group="Note"> --> "[Note 1]"
Please document here what pages use this
*/
.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
sup.reference a {
white-space: nowrap;
}
/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
white-space: normal;
}
.client-js .content_block.coordinates {
display: none;
text-align: right;
margin-bottom: 0.5em;
font-size: smaller;
}
.client-js .content_block.coordinates .latitude {
display:none;
padding-left: 20px;
background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Edge-firefox.png/50px-Edge-firefox.png);
background-repeat: no-repeat;
-webkit-background-size: auto 15px;
background-size: auto 15px;
}
/* Until Geohack is mobile optimised and/or there is a nice alternative e.g. map namespace */
.alpha #li-coordinates {
display: list-item;
}
.client-js .beta .content_block.coordinates {
display: block;
}
.client-js .beta .content_block.coordinates .latitude {
display:inline;
}
/* hidden sortkey for tablesorter */
td .sortkey,
th .sortkey {
display: none;
speak: none;
}
/* For the new main page design */
#mainpage .floatleft,
#mainpage .floatright,
#mp-2012-body .floatleft,
#mp-2012-body .floatright {
text-align: center;
}
/* HACK to workaround VE and badly written CGroups */
.noteTA {
display: none;
}
.mw-newarticletext {
padding: 0 2.5em;
border: solid 1px #a2a9b1;
}
.mw-newarticletext .title {
margin: 1em 0;
padding: 0;
color: #d33;
font-size: 1.5em;
border: none;
text-align: center;
}
.mw-newarticletext li {
margin: 0.4em 0;
}
.mw-newarticletext .buttons {
margin: 1.5em 0;
text-align: center;
}
.mw-newarticletext .buttons a {
margin: 0.25em;
display: inline-block;
}
.mw-newarticletext .note {
color: #72777d;
font-size: 87.5%;
}
/* Change logo wordmark for zh-hans variants */
header.header-container div.branding-box img:lang(zh-hans),
header.header-container div.branding-box img:lang(zh-cn),
header.header-container div.branding-box img:lang(zh-my),
header.header-container div.branding-box img:lang(zh-sg) {
content: url(/static/images/mobile/copyright/wikipedia-wordmark-zh-hans.svg);
}
footer.mw-footer div.footer-content h2 img:lang(zh-hans),
footer.mw-footer div.footer-content h2 img:lang(zh-cn),
footer.mw-footer div.footer-content h2 img:lang(zh-my),
footer.mw-footer div.footer-content h2 img:lang(zh-sg) {
content: url(/static/images/mobile/copyright/wikipedia-wordmark-zh-hans.svg);
}
/* 配合MediaWiki:Noarticletext */
#noarticletext {
padding: 7px;
}
#noarticletext #sisterproject {
background: #ffffff;
display: block;
float: right;
font-size: 90%;
padding: 0.5em;
width: 20em;
}
#noarticletext #sisterproject td {
vertical-align: middle;
}
/* 隱藏「編輯已選擇修訂的標籤」按鈕,參閱[[Special:日志/tag]]幾乎全是破壞,一堆使用者不懂該功能亂按,並造成**無法復原**的後果 */
.mw-history-editchangetags-button {
display: none;
}
.mw-log-editchangetags-button {
display: none;
}
/* 代码中间不换行 */
pre, .mw-code, .mw-highlight {
line-break: anywhere;
white-space: pre-wrap;
word-break: break-all;
}
/*
.infobox
DO NOT style infobox's here. That should be taken care of in the associated templates via template styles. Styles here will lead to flash of unstyled content on mobile.
*/
/* removed inline from module as we work toward Tstyles support
* Use three classes to match specificity of MobileFrontend/Minerva selectors */
.content .mw-parser-output .infobox-header,
.content .mw-parser-output .infobox-subheader,
.content .mw-parser-output .infobox-above,
.content .mw-parser-output .infobox-title,
.content .mw-parser-output .infobox-image,
.content .mw-parser-output .infobox-full-data,
.content .mw-parser-output .infobox-below {
text-align: center;
}
/* One of the not TemplateStyles things */
/* https://phabricator.wikimedia.org/T180396#5317728 */
@media print {
.navbox,
.ambox {
display: none !important;
}
}
/* [[Template:沙盒/TemplateStyles/Dabao qian/darkmodefix-mobile.css]] */
@media screen {
html.skin-theme-clientpref-night .navbox a:not(.new):not(.mw-selflink):link,
html.skin-theme-clientpref-night .infobox a:not(.new):not(.mw-selflink):link {
color: var( --color-progressive ) !important;
}
/* T370074 */
html.skin-theme-clientpref-night .mw-parser-output section > figure img,
html.skin-theme-clientpref-night .mw-parser-output section > div > figure img,
html.skin-theme-clientpref-night .mw-parser-output > figure img {
background: var( --background-color-disabled-fixed, #C8CCD1 );
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .navbox a:not(.new):not(.mw-selflink):link,
html.skin-theme-clientpref-os .infobox a:not(.new):not(.mw-selflink):link {
color: var( --color-progressive ) !important;
}
/* T370074 */
html.skin-theme-clientpref-os .mw-parser-output section > figure img,
html.skin-theme-clientpref-os .mw-parser-output section > div > figure img,
html.skin-theme-clientpref-os .mw-parser-output > figure img {
background: var( --background-color-disabled-fixed, #C8CCD1 );
}
}