VirtualCast Header Improvement

Reduces the page header height and unfixed.

当前为 2020-11-23 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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