跳转到内容

Template:Message box/styles.css

/* [[Category:模板样式]] */
/* [[Template:Message box]] */
.msgbox {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6em;
	align-items: center;
	max-width: 80%;
	margin: 0.5em auto;
	padding: 0.3em 0.6em;
	border-left: 8px solid #36e;
	background-color: #f8f9fa;
}

.msgbox.has-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;
}

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

/* TemplateStyles 会向页面中的第一个 Msgbox 前插入 <style> 元素,其他 Msgbox 前插入 <link> 元素。 */
.msgbox + link + .msgbox {
	margin-top: -0.5em;
	border-top: 1px solid #bbc2c6;
}

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

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

.msgbox.msgbox-orange,
.msgbox.msgbox-content {
	background-color: #fdb;
	border-left-color: #f90;
}

.msgbox.msgbox-yellow,
.msgbox.msgbox-style {
	background-color: #ffc;
	border-left-color: #fc3;
}

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

.msgbox.msgbox-cyan,
.msgbox.msgbox-version {
    background-color: #cef;
    border-left-color: #9df;
}

.msgbox.msgbox-magenta {
    background-color: #fdf;
    border-left-color: #f9f;
}

.msgbox.msgbox-purple,
.msgbox.msgbox-move {
    background-color: #ecf;
    border-left-color: #96c;
}

.msgbox.msgbox-grey,
.msgbox.msgbox-protection {
    background-color: #d2d2d2;
    border-left-color: #bbc2c6;
}

.msgbox-body.align-left {
	text-align: left;
}

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

.msgbox-body.align-right {
	text-align: right;
}

.msgbox-text p {
	margin: 0;
}
Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。