MDN: Content first (Header to Footer)

Moves main content to the top, so the header with dropdown menus lands above footer.

2020-08-19 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

/* ==UserStyle==
@name           MDN: Content first (Header to Footer)
@description    Moves main content to the top, so the header with dropdown menus lands above footer.
@namespace      myfonj
@version        1.0.1
@license        CC0 - Public Domain
==/UserStyle== */

@-moz-document domain("developer.mozilla.org") {
	/*
		https://greasyfork.org/en/scripts/409087/versions/new

		body
			div#react-container[data-component-name="SPA"]
				..
				ul#nav-access
				header
				main[role="main"]
				footer
	*/
	body > #react-container {
		display: flex;
		flex-direction: column;
	}
	body > #react-container > main {
		order: -1;
	}
	body > #react-container > header {
		border-top: 2px solid #3d7e9a
	}
	/*
		compact Edit button
		<div class="titlebar">
			<h1 class="title">..</h1>
			<a class="button neutral" href="https://wiki.developer.mozilla.org/.." rel="nofollow">
				<svg class="icon icon-pencil" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 26" aria-hidden="true">
					<path d="..">
					</path>
				</svg>
				Edit in wiki
			</a>
		</div>	
	*/
	h1.title + .button {
		min-height: auto;
		padding: 0.5rem
	}
	h1.title + .button > svg {
		float: right;
		margin-left: 0.5rem;
	}
	h1.title + .button:not(:hover):not(:focus) {
		color: transparent;
		background-color: transparent;
		border-color: transparent;
	}
	h1.title + .button:not(:hover):not(:focus) > svg {
		color: black;
		margin-left: 0.0rem;
	}
}