VirtualCast Header Improvement

Reduces the page header height and unfixed.

Versione datata 23/11/2020. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

/* ==UserStyle==
@name           VirtualCast Header Improvement
@name:ja        VirtualCast ヘッダを改善
@description    Reduces the page header height and unfixed.
@description:ja ページヘッダの高さを小さくし、固定を解除します。
@namespace      https://greasyfork.org/users/137
@version        1.0.0
@license        MPL-2.0
@contributionURL https://www.amazon.co.jp/registry/wishlist/E7PJ5C3K7AM2
@compatible     Edge (Blink版のみ / Blink version only)
@compatible     Firefox 推奨 (Recommended)
@compatible     Opera
@compatible     Chrome
@author         100の人
@homepageURL    https://greasyfork.org/users/137
==/UserStyle== */

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix("https://virtualcast.jp/") {
	body {
		--header-height: 3em;
	}

	header {
		position: absolute;
	}

	header > .menu_toggle_button  {
		top: unset;
	}

	header .header_wrap {
		height: var(--header-height);
	}
	
	header .header_wrap .vi .logo,
	header .header_wrap .vi .logo a {
		height: unset;
	}
	
	header .header_wrap .vi::after {
		content: unset;
	}
	
	header .header_wrap .logo a {
		background-size: contain;
	}

	.logo_tso {
		height: calc(var(--header-height) * 0.8);
	}

	main {
		margin-top: var(--header-height);
	}
}

@-moz-document url-prefix("https://virtualcast.jp/broadcast/") {
	header .header_wrap .vi,
	header .header_wrap .vi .logo,
	header .header_wrap .vi .logo a {
		height: 100%;
	}
}

@-moz-document url-prefix("https://virtualcast.jp/wiki/") {
	#dokuwiki__header .headings,
	#dokuwiki__header .tools {
		display: none;
	}

	#dokuwiki__header .breadcrumbs {
		margin-top: unset;
	}
}