打开/关闭菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Mbox/styles.css

来自骷髅女孩Wiki
/* 转自Dustloop This page was last edited on 7 July 2024, at 17:41. */
.mbox {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-top: 0.4rem;
	margin-bottom: 0.8rem;
	background-color: var( --color-surface-2 );
	border: 1px solid var( --border-color-base--darker );
	border-radius: var( --border-radius--small );
	color: var( --color-base--emphasized );
	font-weight: bold;
	font-size: 0.875rem;
}

.mbox.mbox-high {
	background-color: var( --background-color-destructive-subtle );
	border-color: var( --color-destructive );
}

.mbox.mbox-med {
	background-color: var( --background-color-warning-subtle );
	border-color: var( --color-warning );
}

.mbox.mbox-low {
	background-color: var( --color-surface-2 );
}

.mbox-title {
	display: flex;
	align-items: center;
	padding: var( --space-sm ) var( --space-md );
	font-weight: 500;
}

.mbox-icon img {
	width: 14px;
	height: auto;
	margin-right: 10px;
	opacity: 0.5;
}

.mbox-text {
	position: absolute;
	z-index: 10;
	padding: var( --space-sm ) var( --space-md );
	background-color: var( --color-surface-2 );
	border-radius: var( --border-radius--medium );
	box-shadow: var( --box-shadow-dialog );
	opacity: 0;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
	visibility: hidden;
}

.mbox:hover .mbox-text {
	opacity: 1;
	visibility: visible;
}

.mbox-high .mbox-text {
	background-color: var( --background-color-destructive-subtle );
}

.mbox-med .mbox-text {
	background-color: var( --background-color-warning-subtle );
}

.mbox-low .mbox-text {
	background-color: var( --color-surface-2 );
}

/* Dark mode */
html.skin-citizen-dark .mbox-icon img {
	filter: invert( 1 );
}