MediaWiki:Common.css

来自互联网一战博物馆

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

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* 这里放置的CSS将应用于所有皮肤 */
@import url(https://cyberwari.wikioasis.org/wiki/MediaWiki:Comment.css?action=raw&ctype=text/css);
:root {
	--page-background-color--secondary: #ffffff;
	--border-color: #c0c0c0;
}

.only-mobile {
	display:none;
}
@media screen and (max-width: 719px) {
	.only-desktop {
		display:none;
	}
	.only-mobile {
		display:block;
	}
}
/*字体导入*/
@font-face {
	font-family: 'glitch_black';
	src: url('https://static.wikia.nocookie.net/backrooms/images/f/f6/%E7%80%9E%E4%B9%8B%E6%95%85%E9%9A%9C%E9%BB%91%E4%BD%93H2.woff2/revision/latest?cb=20230327183805&format=original&path-prefix=zh') format('woff2');
}

@font-face {
	font-family: "Genshin55W";
	font-style: normal;
	font-weight: normal;
	src: url("https://static.wikia.nocookie.net/gensin-impact/images/a/a9/Genshin_Impact_Font_55W.woff/revision/latest") format("truetype");
}
@font-face {
	font-family: "Genshin75W";
	font-style: normal;
	font-weight: normal;
	src: url("https://static.wikia.nocookie.net/gensin-impact/images/f/f3/Genshin_Impact_Font_75W.woff/revision/latest") format("truetype");
}
@font-face {
	font-family: 'CangerW02'; 
	font-style: normal; 
	font-weight: 400;
	font-display: swap;
	src: url('https://fastly.jsdelivr.net/gh/Etinjat/FONT@Tsanger/仓耳与墨W02.woff2') format('woff2');
}
/* 首页 */
.mainpage-banner,
.mainpage-block {
    background-color: var(--page-background-color--secondary);
    border-color: var(--border-color);
    border-style: solid;
    border-width: 0.6px;
    box-shadow: 0 0 5px 0.5px grey;
    margin: 10px 5px;
    padding: 15px 0;
}
.mainpage-banner {
    border-radius: 30px 0;
    text-align: center;
}
.mainpage-banner-content {
    margin: 0 2.5%;
}
.mainpage-banner-header {
    background-color: var(--border-color);
    font-size: 175%;
    font-weight: bold;
    margin: 12px;
}
.mainpage-block {
    border-radius: 9px;
}
.mainpage-block-content {
    margin: 0 10px;
}
.mainpage-block-header {
    background-color: var(--border-color);
    font-size: 150%;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 0 30px;
}
.mainpage-contact img {
    filter: sepia(0.5) invert(0.9);
}
.theme-cosmos-dark .mainpage-contact img {
    filter: none;
}
/* 黑幕 */
.heimu,
.heimu rt,
.heimu sub,
.heimu sup {
	background-color: #252525;
}
span.heimu,
span.heimu a,
span.heimu a.new,
span.heimu a.external,
span.heimu a.extiw,
span.heimu a.mw-disambig,
span.heimu a.mw-redirect,
a span.heimu{
	transition: color .13s linear;
	color: #252525;
	text-shadow: none;
}
span.heimu:hover,
span.heimu:active {
	color: white;
}
span.heimu:hover a,
span.heimu:hover a.extiw,
span.heimu:hover a.external,
span.heimu:hover a.mw-disambig,
span.heimu:hover a.mw-redirect,
a:hover span.heimu,
a.extiw:hover span.heimu,
a.external:hover span.heimu,
a.mw-disambig:hover span.heimu,
a.mw-redirect:hover span.heimu {
	color: #c85b5b;
}
span.heimu:hover a:visited,
span.heimu:hover a.extiw:visited,
span.heimu:hover a.external:visited,
span.heimu:hover a.mw-disambig:visited,
span.heimu:hover a.mw-redirect:visited,
a:visited:hover span.heimu,
a.extiw:visited:hover span.heimu,
a.external:visited:hover span.heimu,
a.mw-disambig:visited:hover span.heimu,
a.mw-redirect:visited:hover span.heimu {
	color: grey;
}
span.heimu:hover a.new,
a.new:hover span.heimu,
span.heimu a.new:visited:hover,
a.new:visited:hover span.heimu {
	color: #e91e1e;
}