Skip to content

【免登录】Minecraft Wiki:Nether(下界主题) by YLFDZ

Screenshot of 【免登录】Minecraft Wiki:Nether(下界主题)

Details

AuthorYLFDZ

LicenseCC BY-NC-SA 3.0

Categoryminecraft

Created

Updated

Size4.9 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

移植了 Minecraft Wiki 登录用户可设置的下界主题,并对部分不同语言的Wiki做了适配,实现免登录应用mcwiki主题。

Notes

Source code

/* ==UserStyle==
@name           Minecraft Wiki:Nether Theme 下界主题
@namespace      https://tieba.baidu.com/home/main?id=tb.1.d622f631.Ct_qo_bWCAtNrWdGaCSO9w
@version        1.0.0
@description    移植了 Minecraft Wiki 登录用户可设置的下界主题,以方便未登录的读者体验。
@author         珠三角风迷 <ylcdz@foxmail.com> (https://tieba.baidu.com/home/main?id=tb.1.d622f631.Ct_qo_bWCAtNrWdGaCSO9w)
@license CC BY-NC-SA 3.0
@supportURL https://tieba.baidu.com/home/main?id=tb.1.d622f631.Ct_qo_bWCAtNrWdGaCSO9w
==/UserStyle== */
@-moz-document domain("minecraft.wiki") {
	/* Nether Theme for Minecraft Wiki.
 * [[File:Mobile-header-nether.png]] [[File:Header-background-nether.png]]
 * [[File:Vector-tabs-nether.png]] [[File:Vector-tabs-first-nether.png]]
 * [[File:Header-background-nether-HiDPI.png]] [[File:Vector-tabs-nether-HiDPI.png]]
 * [[File:Vector-tabs-first-nether-HiDPI.png]]<!-- [[File:Nether-wiki-logo.png]] [[File:Nether-wiki-logo-HiDPI.png]] -->
 */
	body {
		--wiki-logo: url(/images/Wiki-logo-nether.png);
		--mobile-header-background: url(/images/Mobile-header-nether.png);
		--header-background: url(/images/Header-background-nether.png);
		--base-background: url(/images/Background-nether.png);
		--vector-tabs: url(/images/Vector-tabs-nether.png);
		--vector-tabs-first: url(/images/Vector-tabs-first-nether.png);

		--wiki-logo-hidpi: url(/images/Wiki-logo-nether-HiPDI.png);
		--header-background-hidpi: url(/images/Header-background-nether-HiDPI.png);
		--base-background-hidpi: url(/images/Background-nether-HiDPI.png);
		--vector-tabs-hidpi: url(/images/Vector-tabs-nether-HiDPI.png);
		--vector-tabs-first-hidpi: url(/images/Vector-tabs-first-nether-HiDPI.png);

		--mobile-header-background-color: #210F0F;
		--simplesearch-topright-grass-color: #BA2424;
		/*content area*/
		--content-background-color: #F4E6E6;
		--content-border-top-color: #C3B4B4;
		/*infobox-header*/
		--infobox-title-background-color: #ad4343;
		--infobox-title-top-border-color: #c77878;
		--infobox-title-border-inline-color: #9d3939;
		--infobox-title-bottom-border-color: #7a1717;

		/* Minceraft [[File:Minceraft-wiki-logo-nether.png]] [[File:Minceraft-wiki-logo-nether-HiDPI.png]] */
		--minceraft-wiki-logo: url(/images/Minceraft-wiki-logo-nether.png);
		--minceraft-wiki-logo-hidpi: url(/images/Minceraft-wiki-logo-nether-HiDPI.png);
	}

	/*
 * [[File:Dark-header-background-nether.png]]
 * [[File:Dark-vector-tabs-nether.png]] [[File:Dark-vector-tabs-first-nether.png]]
 * [[File:Dark-header-background-nether-HiDPI.png]]
 * [[File:Dark-vector-tabs-nether-HiDPI.png]] [[File:Dark-vector-tabs-first-nether-HiDPI.png]]*/
	html body.wgl-theme-dark {
		--header-background: url(/images/Dark-header-background-nether.png);
		--base-background: url(/images/Background-nether.png);
		--vector-tabs: url(/images/Dark-vector-tabs-nether.png);
		--vector-tabs-first: url(/images/Dark-vector-tabs-first-nether.png);

		--header-background-hidpi: url(/images/Dark-header-background-nether-HiDPI.png);
		--base-background-hidpi: url(/images/Background-nether-HiDPI.png);
		--vector-tabs-hidpi: url(/images/Dark-vector-tabs-nether-HiDPI.png);
		--vector-tabs-first-hidpi: url(/images/Dark-vector-tabs-first-nether-HiDPI.png);

		/*infobox-header*/
		--infobox-title-background-color: #0e6a5a;
		--infobox-title-top-border-color: #32806f;
		--infobox-title-border-inline-color: #074c50;
		--infobox-title-bottom-border-color: #08403e;
	}

	/* [[File:Nether-particles.gif]] */
	#mw-page-base:before {
		content: "";
		width: 100%;
		left: 0;
		background: url(/images/Nether-particles.gif) right 6px;
		height: 7%;
		position: absolute;
	}

	body.wgl-theme-dark #mw-page-base:before {
		filter: invert(0%) sepia(0%) saturate(1235%) hue-rotate(192deg) brightness(55%) contrast(96%);
	}

	@media (prefers-reduced-motion) {
		#mw-page-base:before {
			content: none !important;
		}
	}

	/* [[File:GrassBackground-nether.png]] [[File:Dark-GrassBackground-nether.png]], modified to adapted on ZH */
	html .fp-section-header,
	html .forum-header .forum-heading,
	.mcwiki-header-grass {
		background-color: #3E1212;
		border-top: 6px solid #BA2424;
		background-image: url(/images/GrassBackground-nether.png);
	}
	html body.wgl-theme-dark .fp-section-header,
	html body.wgl-theme-dark .forum-header .forum-heading {
		background-image: url(/images/Dark-GrassBackground-nether.png);
		border-color: #279292 !important;
	}

	/* Adaptation to Module:Documentation */
	.documentation,
	.documentation-header-top,
	.documentation-header-bottom {
		background-color: #f9f2f2 !important;
	}
	body.wgl-theme-dark .documentation,
	body.wgl-theme-dark .documentation-header-top,
	body.wgl-theme-dark .documentation-header-bottom {
		background-color: #393e3f !important;
	}
}

Reviews

No reviews yet.