Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Mbox/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
position: relative;
position: relative;
display: flex;
display: flex;
flex-direction: column;
align-items: center;
margin-block: var(--space-md);
margin-block: var(--space-md);
background-color: var(--color-surface-1);
background-color: var(--color-surface-1);
border: var(--border-base);
border: var(--border-base);
border-radius: var(--border-radius-medium);
border-left: 5px solid var(--color-progressive);
border-radius: var(--tg-border-radius-small);
font-size: var(--font-size-small);
font-size: var(--font-size-small);
line-height: var(--line-height-xx-small);
line-height: var(--line-height-xx-small);
Line 19: Line 20:
.mbox.mbox-med {
.mbox.mbox-med {
background-color: var(--background-color-warning-subtle);
background-color: var(--background-color-warning-subtle);
}
.mbox-content {
display: flex;
flex-direction: column;
}
}


Line 27: Line 33:


.mbox-title {
.mbox-title {
display: flex;
font-weight: var(--font-weight-semi-bold);
align-items: center;
font-size: var(--font-size-medium);
}
}


.mbox-icon img {
.mbox-icon img {
display: block;
display: block;
width: var(--font-size-small);
width: auto;
height: auto;
height: var(--font-size-x-large);
margin-right: var(--space-xs);
margin-right: var(--space-xs);
opacity: var(--opacity-icon-base);
filter: var(--filter-invert);
}
}


.mbox-text {
.mbox-text {
border-top: var(--border-base);
padding-top: 0;
}
}

Latest revision as of 13:47, 2 November 2025

/* Based on https://starcitizen.tools/Module:Mbox/styles.css */

.mbox {
	position: relative;
	display: flex;
	align-items: center;
	margin-block: var(--space-md);
	background-color: var(--color-surface-1);
	border: var(--border-base);
	border-left: 5px solid var(--color-progressive);
	border-radius: var(--tg-border-radius-small);
	font-size: var(--font-size-small);
	line-height: var(--line-height-xx-small);
}

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

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

.mbox-content {
	display: flex;
	flex-direction: column;
}

.mbox-title,
.mbox-text {
	padding: var(--space-sm) var(--space-md);
}

.mbox-title {
	font-weight: var(--font-weight-semi-bold);
	font-size: var(--font-size-medium);
}

.mbox-icon img {
	display: block;
	width: auto;
	height: var(--font-size-x-large);
	margin-right: var(--space-xs);
}

.mbox-text {
	padding-top: 0;
}