Template:Mbox/styles.css

Template page
< Template:Mbox
Revision as of 14:45, 7 June 2023 by Feelingkoi (talk | contribs) (Created page with ".mbox { position: relative; display: flex; flex-direction: column; font-size: 0.875rem; } .mbox.mbox-high { background-color: rgba( 221, 51, 51, 0.1 ); } .mbox.mbox-med { →‎FIXME: Update back to Citzen CSS var when patched: background-color: rgba( 255, 204, 51, 0.1 ); } .mbox-title { display: flex; align-items: center; font-weight: 500; } .mbox-icon img { width: 14px; height: auto; opacity: 0.5; } .mbox-text { position: absolute; top: 100%; z-inde...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.mbox {
	position: relative;
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
}

.mbox.mbox-high {
	background-color: rgba( 221, 51, 51, 0.1 );
}

.mbox.mbox-med {
	/* FIXME: Update back to Citzen CSS var when patched */
	background-color: rgba( 255, 204, 51, 0.1 );
}

.mbox-title {
	display: flex;
	align-items: center;
	font-weight: 500;
}

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

.mbox-text {
	position: absolute;
	top: 100%;
	z-index: 10;
	width: 100%;
    box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
}

.mbox:hover {
	/* Merge with popup */
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

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

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