Template:Msgbox/styles.css: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
mNo edit summary
Tag: Reverted
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 12: Line 12:
}
}


.msgbox:last-of-type {
.msgbox:not(.msgbox-mini):last-of-type {
margin-bottom: 0.5em;
margin-bottom: 0.5em;
}
}
Line 27: Line 27:
max-width: max-content;
max-width: max-content;
clear: none;
clear: none;
margin-bottom: 0.5em;
}
}


Line 39: Line 40:
background-color: #f8f9fa;
background-color: #f8f9fa;
border-color: #36e;
border-color: #36e;
}

.msgbox-warning {
text-align: center;
}
}


Line 59: Line 56:
.msgbox-text p {
.msgbox-text p {
margin: 0;
margin: 0;
text-align: center;
}
}

Latest revision as of 10:34, 15 June 2024

.msgbox {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6em;
	align-items: center;
	max-width: 90%;
	margin: 0 auto;
	padding: 0.3em 0.6em;
	border-top: 8px solid #36e;
	background-color: #f8f9fa;
	clear: both;
}

.msgbox:not(.msgbox-mini):last-of-type {
	margin-bottom: 0.5em;
}

.msgbox.msgbox-image {
	grid-template-columns: max-content 1fr;
}

.msgbox.msgbox-mini {
	gap: 0.3em;
	margin-left: 0;
	margin-right: 0;
	padding: 0 0.3em;
	max-width: max-content;
	clear: none;
	margin-bottom: 0.5em;
}

@media screen and (max-width: 720px) {
	.msgbox {
		max-width: 100%;
	}
}

.msgbox.msgbox-default,
.msgbox.msgbox-notice {
	background-color: #f8f9fa;
	border-color: #36e;
}

.msgbox.msgbox-red,
.msgbox.msgbox-warning {
	background-color: #fcc;
	border-color: #e44;
}

.msgbox.msgbox-green,
.msgbox.msgbox-status {
    background-color: #cfc;
    border-color: #5d5;
}

.msgbox-text p {
	margin: 0;
}