VirtualCast Header Improvement

Reduces the page header height and unfixed.

Fra og med 23.11.2020. Se den nyeste version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

/* ==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;
	}
}