2023年政策修订增补工作正在进行中,欢迎参与!
  • Moegirl.ICU:萌娘百科流亡社群 581077156(QQ),欢迎对萌娘百科运营感到失望的编辑者加入
  • Moegirl.ICU:账号认领正在试运行,有意者请参照账号认领流程

Template:彩虹社/styles.css

萌娘百科,万物皆可萌的百科全书!转载请标注来源页面的网页链接,并声明引自萌娘百科。内容不可商用。
跳转到导航 跳转到搜索
/* 此页面已不再使用,但为保持历史版本显示正常,请勿修改/删除本页面。 */

	/* 大家族整体样式 */
.NijiNav .navbox-title, .NijiNav .navbox-subgroup, .NijiNav .navbox-group, .NijiNav .navbox-list, .NijiNav .navbox-abovebelow {background:transparent;}
.NijiNav .navbox-group {vertical-align:top !important;}
.NijiNav .navbox-group>div {
	margin:9px 0;
	border-radius:20px;
	padding:0 1em;
	line-height:28px;
	color:white;
	font-weight:bold;
}
.NijiNav #JPlist .navbox-group>div {background:#0068AF;}
.NijiNav #VRlist .navbox-group>div {background:#1EC4EE;}
.NijiNav #IDlist .navbox-group>div {background:#009B52;}
.NijiNav #INlist .navbox-group>div {background:#FA7820;}
.NijiNav #KRlist .navbox-group>div {background:#E80132;}
.NijiNav #ENlist .navbox-group>div {background:#673B8E;}
.NijiNav #其他list .navbox-group>div {background:#2A4B71;}
.NijiNav .navbox-list a:not(.new) {color:#222;}
.NijiNav .navbox-list .in-page-edit-article-link-group {display:none;}

	/* 切换显示开关样式 */
.NijiNav .textToggleDisplayButtonLabel {
	display:block;
	width:0;
	margin:0;
	padding:0;
	font-size:12px;
	color:white;
	border:none;
	box-shadow:none;
	background:none;
	white-space:nowrap;
	cursor:pointer;
	overflow:hidden;
	transition:all .1s linear, width .2s ease-out, font-size 0s;
}
@media screen and (min-width:640px) { .NijiNav:hover .textToggleDisplayButtonLabel {width:26px;} }
@media screen and (max-width:720px) { .NijiNav #grouptab .before-on, .NijiNav #grouptab .after-on {width:26px;} }
.NijiNav .textToggleDisplayButtonInput {
	display:none;
}
.NijiNav #grouptab .textToggleDisplayButtonLabel:hover>.off {
	text-decoration:underline;
}
.NijiNav #grouptab .textToggleDisplayButtonLabel.on {
	position:relative;
	width:160px;
	font-size:16px;
	line-height:24px;
	cursor:default;
}
.NijiNav #namebutton .textToggleDisplayButtonLabel {
	box-sizing:border-box;
	width:40px;
	border:2px solid white;
	border-radius:15px;
	padding:2px;
	line-height:16px;
	direction:rtl;
	overflow:hidden;
}
	/* 顶栏背景切换 */
.NijiNav #abovebg {
	left:0;
	opacity:1;
	transition:opacity .2s .3s,left .3s;
}
.NijiNav #JP.textToggleDisplay-on~#abovebg {left:0;}
.NijiNav #VR.textToggleDisplay-on~#abovebg {left:-100%;}
.NijiNav #ID.textToggleDisplay-on~#abovebg {left:-200%;}
.NijiNav #IN.textToggleDisplay-on~#abovebg {left:-400%;}
.NijiNav #KR.textToggleDisplay-on~#abovebg {left:-500%;}
.NijiNav #EN.textToggleDisplay-on~#abovebg {left:-600%;}
.NijiNav #其他.textToggleDisplay-on~#abovebg {opacity:0; transition:opacity .2s,left .3s .2s;}
	/* 不兼容提示 */
.NijiNav #grouptab, .NijiNav #namebutton, .NijiNav .textToggleDisplay-on~#Nijitip {display:none;}
.NijiNav .textToggleDisplay-on~#grouptab, .NijiNav .textToggleDisplay-on~#namebutton, .NijiNav #Nijitip {display:inline-block; position:relative;}

	/* liverbox样式 */
.liverbox {
	display:inline-block;
	padding:8px 4px;
}
.liverbox>:first-child>div {
	display:inline-block;
	width:30px;
	height:30px;
	margin:0 4px;
	vertical-align:-10px;
}
.liverbox>:first-child>div>div {
	position:absolute;/* 转让基线 */
	width:30px;
	height:30px;
	border-radius:15px;
	overflow:hidden;
}
.liverbox>:first-child>div>div>div {
	width:30px;
	height:30px;
	transform-origin:-8px 13.333px;
	overflow:hidden;
}
.liverbox>:first-child>div>div>div:empty {background:no-repeat scroll url(https://img.moegirl.org.cn/common/c/cf/Nav-nijisanji-v20fix.png) 0 0/390px;}
.liverbox .textToggleDisplay:not(.hidden)+span {display:none;}
.liverbox span {font-family:inherit;}
.liverbox span[lang=ja][style] {font-family:JapaneseItalic, sans-serif;}
.liverbox+div {display:inline-block;}
	/* liverbox hover */
@media screen and (min-width:720px) {
	.liverbox>:first-child>div>div:after {
		content:"";
		position:absolute;
		top:-5px;
		bottom:-5px;
		left:-5px;
		right:-5px;
		background:radial-gradient(circle,transparent 20px,#fdfdfd 50px);
	}
	.liverbox, .liverbox div, .liverbox+div {
		transition:all .15s .15s ease-out;
	}
	.NijiNav:not(.NoMagni) .liverbox:hover>:first-child>div {width:99px;}
	.NijiNav:not(.NoMagni) .liverbox:hover>:first-child>div>div {width:99px; height:38px; margin-top:-4px; border-radius:0;}
	.NijiNav:not(.NoMagni) .liverbox:hover>:first-child>div>div>div {transform:scale(2.5);}
	.NijiNav:not(.NoMagni) .liverbox {margin-right:69px;}
	.NijiNav:not(.NoMagni) .liverbox+div {margin-right:-69px;}
	.NijiNav:not(.NoMagni) .liverbox:hover, .NijiNav:not(.NoMagni) .liverbox:hover+div {margin-right:0;}
}
/* [[Category:在模板名字空间下的CSS页面]] */