用户:GuoPC/common.css

来自萌娘文库
< 用户:GuoPC
GuoPC讨论 | 贡献2024年11月3日 (日) 09:33的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
/* Specific font for certain characters:
   - Em Dash (2014)
   - Single Quotation Marks (2018, 2019)
   - Double Quotation Marks (201C, 201D)
   - Horizontal Ellipsis (2026) */
@font-face {
	font-family: "SHSans Full-Width Punctuation";
	src: local("Source Han Sans SC");
	unicode-range: U+2014, U+2018, U+2019, U+201C, U+201D, U+2026;
}

/* Customized fonts */
body {font-family: "SHSans Full-Width Punctuation", "IBM Plex Sans", Inter, sans-serif !important;}
span[lang="ja"] {font-family: YakuHanJP, "Kozuka Gothic Pro", sans-serif;}
sup[class^="markrights"], sup.detailedBlockInfo {font-family: "LXGW WenKai", sans-serif;}
.diff-context div, .diff-addedline div, .diff-deletedline div, .diffchange, .mw-charinsert-item {font-family: monospace;}

/* Colored special links and more */
/* There are 3 situations as follows:
   1. Basic links only ([[Link]]); 
   2. Links are under heimus ({{Heimu|[[Link]]}});
   3. Links contain heimus ([[Link|{{Heimu}}]]) */

/* - Preparation: Common styles for marks */
a.mw-redirect::after,
a.mw-disambig::after,
a.mw-redirect.mw-disambig::after,
a.extiw::after,
a.stub::after,
a.stub.mw-disambig.mw-disambig::after {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	margin: 0 -12px -10px 0;
	transform: scale(50%);
	transform-origin: top left;
}

/* - Preparation: Hide marks for certain links */
.mw-changeslist-date::after,
.mw-changeslist-diff::after,
.mw-changeslist-history::after,
.mw-history-histlinks a::after,
.mw-unwatch-link::after,
.mw-watch-link::after {display: none !important;}

/* - Preparation: Keep visually hidden under heimus */
span.heimu a.mw-redirect, span.heimu a.mw-redirect:visited,
span.heimu a.mw-disambig, span.heimu a.mw-disambig:visited,
span.heimu a.extiw, span.heimu a.extiw:visited,
span.heimu a.stub, span.heimu a.stub:visited,
span.heimu a.stub.mw-disambig, span.heimu a.stub.mw-disambig:visited {
	transition: color .13s linear;
	color: #252525;
	text-shadow: none;
}

/* - Redirections */
a.mw-redirect,
span.heimu:hover a.mw-redirect,
a.mw-redirect:hover span.heimu {color: #B0D;}

/* - Redirections - visited */
a.mw-redirect:visited,
span.heimu:hover a.mw-redirect:visited,
a.mw-redirect:visited:hover span.heimu {color: #9A00B6;}

/* - Redirections - mark: A FLAG */
a.mw-redirect::after {
	background: #B0D;
	clip-path: path('M3 3H12.382C12.7607 3 13.107 3.214 13.2764 3.55279L14 5H20C20.5523 5 21 5.44772 21 6V17C21 17.5523 20.5523 18 20 18H13.618C13.2393 18 12.893 17.786 12.7236 17.4472L12 16H5V22H3V3Z');
}

/* - Disambiguations */
a.mw-disambig,
span.heimu:hover a.mw-disambig,
a.mw-disambig:hover span.heimu {color: #D27138;}

/* - Disambiguations - visited */
a.mw-disambig:visited,
span.heimu:hover a.mw-disambig:visited,
a.mw-disambig:visited:hover span.heimu {color: #AF5A28;}

/* - Disambiguations - mark: A GUIDE */
a.mw-disambig::after {
	background: #FF8921;
	clip-path: path('M13 8V16C13 17.6569 11.6569 19 10 19H7.82929C7.41746 20.1652 6.30622 21 5 21C3.34315 21 2 19.6569 2 18C2 16.3431 3.34315 15 5 15C6.30622 15 7.41746 15.8348 7.82929 17H10C10.5523 17 11 16.5523 11 16V8C11 6.34315 12.3431 5 14 5H17V2L22 6L17 10V7H14C13.4477 7 13 7.44772 13 8Z');
}

/* - For links are both redirections and disambiguations, I call them "REDIR-DISAM links" - A ROUTE */
a.mw-redirect.mw-disambig::after {
	background: #FF6421;
	clip-path: path('M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4Z');
}

/* - Interwiki links, not Moegirl ones - visited */
a.extiw:not([href*=".moegirl.org.cn"]):visited,
span.heimu:hover a.extiw:not([href*=".moegirl.org.cn"]):visited,
a.extiw:not([href*=".moegirl.org.cn"]):visited:hover span.heimu {color: #00886A;}

/* - Interwiki links - mark: A GLOBE */
a.extiw:not([href*=".moegirl.org.cn"])::after {
	background: #00AF89;
	clip-path: path('M13.0003 20.9998H18.0003V22.9998H6.00032V20.9998H11.0003V19.9505C7.70689 19.6235 4.88351 17.6986 3.31641 14.9621L5.05319 13.9696C6.43208 16.3775 9.02674 17.9998 12.0003 17.9998C16.4186 17.9998 20.0003 14.4181 20.0003 9.99983C20.0003 7.02625 18.378 4.43159 15.9701 3.0527L16.9626 1.31592C19.9724 3.03953 22.0003 6.28285 22.0003 9.99983C22.0003 15.1852 18.0536 19.4487 13.0003 19.9505V20.9998ZM12.0003 16.9998C8.13433 16.9998 5.00032 13.8658 5.00032 9.99983C5.00032 6.13384 8.13433 2.99983 12.0003 2.99983C15.8663 2.99983 19.0003 6.13384 19.0003 9.99983C19.0003 13.8658 15.8663 16.9998 12.0003 16.9998Z');
}

/* - Moegirl links */
a.extiw[href*=".moegirl.org.cn"],
span.heimu:hover a.extiw[href*=".moegirl.org.cn"],
a.extiw[href*=".moegirl.org.cn"]:hover span.heimu {color: #E7BB5E;}

/* - Moegirl links - visited */
a.extiw[href*=".moegirl.org.cn"]:visited,
span.heimu:hover a.extiw[href*=".moegirl.org.cn"]:visited,
a.extiw[href*=".moegirl.org.cn"]:visited:hover span.heimu {color: #D79C20;}

/* - Moegirl links - mark: A HEART */
a.extiw[href*=".moegirl.org.cn"]::after {
	background: #E7BB5E;
	clip-path: path('M20.2426 4.75736C22.5053 7.02472 22.583 10.637 20.4786 12.993L11.9999 21.485L3.52138 12.993C1.41705 10.637 1.49571 7.01901 3.75736 4.75736C5.51545 2.99926 8.09315 2.56029 10.2605 3.44044L6.34315 7.35843L7.75736 8.77264L12 4.53L11.9872 4.51617C11.9918 4.52028 11.9964 4.5244 12.001 4.52853C14.35 2.42 17.98 2.49 20.2426 4.75736Z');
}

/* - Stubs */
a.stub,
span.heimu:hover a.stub,
a.stub:hover span.heimu {color: #2293CE;}

/* - Stubs - visited */
a.stub:visited,
span.heimu:hover a.stub:visited,
a.stub:visited:hover span.heimu {color: #1A73A2;}

/* - Stubs - mark: A LEAF */
a.stub::after {
	background: #2293CE;
	clip-path: path('M20.998 3V5C20.998 14.6274 15.6255 19 8.99805 19L7.0964 18.9999C7.3079 15.9876 8.24541 14.1648 10.6939 11.9989C11.8979 10.9338 11.7965 10.3189 11.2029 10.6721C7.1193 13.1016 5.09114 16.3862 5.00119 21.6302L4.99805 22H2.99805C2.99805 20.6373 3.11376 19.3997 3.34381 18.2682C3.1133 16.9741 2.99805 15.2176 2.99805 13C2.99805 7.47715 7.4752 3 12.998 3C14.998 3 16.998 4 20.998 3Z');
}

/* - For links are both stubs and disambiguations, I call them "STUB-DISAM links" */
a.stub.mw-disambig.mw-disambig,
span.heimu:hover a.stub.mw-disambig.mw-disambig,
a.stub.mw-disambig.mw-disambig:hover span.heimu {color: #EE4A3F;}

/* - STUB-DISAM links - visited */
a.stub.mw-disambig.mw-disambig:visited,
span.heimu:hover a.stub.mw-disambig.mw-disambig:visited,
a.stub.mw-disambig.mw-disambig:visited:hover span.heimu {color: #CF2823;}

/* - STUB-DISAM links - mark: A SEEDLING */
a.stub.mw-disambig::after {
	background: #EE4A3F;
	clip-path: path('M21.998 7V9.5C21.998 13.0899 19.0879 16 15.498 16H12.998V21H10.998V14L11.0169 13.0007C11.2719 9.64413 14.0762 7 17.498 7H21.998ZM5.99805 3C9.0904 3 11.7144 5.00519 12.6408 7.78626C11.1417 9.06119 10.1516 10.9143 10.0144 13.0004L8.99805 13C5.13205 13 1.99805 9.86599 1.99805 6V3H5.99805Z');
}

/* Customized edit abbrs */
.newpage {color: green;}
.minoredit {color: gray;}
.botedit, .minoredit, .newpage, .unpatrolled {
	display: inline-block;
	transform: scaleX(60%);
}
.mw-enhanced-rc abbr {margin-right: -7px;}

/* Colored selections */
::selection {
	background: #0174F9;
	color: #FFF;
}
.diff-context ::selection {
	background: #6C7A96;
	color: #FFF;
}
.diff-deletedline ::selection {
	background: #FFBF13;
	color: #FFF;
}
.diff-addedline ::selection {
	background: #0688FF;
	color: #FFF;
}

/* Become rounded */
code, fieldset, pre, 
.mw-body, .mw-warning-with-logexcerpt, .navbox, .navpopup, .template-documentation, 
#catlinks, #mw-changeslist-legend, #toc {border-radius: 2px;}
#bottomRightCorner div {border-radius: 2px 0 0 2px;}
.editOptions {border-radius: 0 0 2px 2px;}

/* Customized usergroups */
.markrights-extendedconfirmed {color: #8D8DAA !important;}
.markrights-file-maintainer {color: #895737 !important;}
.markrights-ipblock-exempt {color: #6885D7 !important;}
.markrights-manually-confirmed {color: #A598A7 !important;}
.markrights-checkuser::after {content: "核" !important;}
.markrights-flood::after {content: "洪" !important;}
.markrights-scripteditor::after {content: "稿" !important;}

/* Other */
h4 {font-size: 1.1em !important;}
.common-box, .CtxtMenu_Menu, .mw-notification, .navpopup {box-shadow: 0 0 .5rem #0002 !important;}
.diff-addedline, .diff-deletedline, .diff-context {vertical-align: middle;}
.oo-ui-labelElement-label, .mw-editTools {font-size: 0.9em;}
.infoBoxContent {
	background: #FBFBFBBB;
	border: none;
}