Jump to content

Module:Message box/sandbox/ambox.css

From Wikipedia, the free encyclopedia
.ambox {
	border: 1px solid var(--border-color-base, #a2a9b1);
	/* @noflip */
	border-left: 10px solid #36c; /* Default "notice" blue */
	background-color: var(--background-color-neutral-subtle, #f8f9fa);
	box-sizing: border-box;
}

/* Single border between stacked boxes.
 * category and TemplateStyles are wrapped in an "empty" span [[phab:T378906]]
 * [[phab:T200206]] may be relevant at a later date
 */
.ambox + .mw-empty-elt + .ambox,
.ambox + .mw-empty-elt + .mw-empty-elt + .ambox,
/*
 * and Template:Dated maintenance category. we can probably remove this flavor
 * when T200206 is fixed
 */
.ambox + .mw-empty-elt + .mw-empty-elt + .mw-empty-elt + .ambox {
	margin-top: -1px;
}

/* For the "small=left" option. */
/* must override .ambox + .ambox styles above */
html body.mediawiki .ambox.mbox-small-left {
	/* @noflip */
	margin: 4px 1em 4px 0;
	overflow: hidden;
	width: 238px;
	border-collapse: collapse;
	font-size: 88%;
	line-height: 1.25em;
}

.ambox-speedy {
	/* @noflip */
	border-left-color: #b32424; /* Red */
	background-color: #fee7e6; /* Pink */
}

.ambox-delete {
	/* @noflip */
	border-left-color: #b32424; /* Red */
}

.ambox-content {
	/* @noflip */
	border-left-color: #f28500; /* Orange */
}

.ambox-style {
	/* @noflip */
	border-left-color: #fc3; /* Yellow */
}

.ambox-move {
	/* @noflip */
	border-left-color: #9932cc; /* Purple */
}

.ambox-protection {
	/* @noflip */
	border-left-color: #a2a9b1; /* Gray-gold */
}

.ambox .mbox-text {
	border: none;
	/* @noflip */
	padding: 0.25em 0.5em;
	width: 100%;
}

.ambox .mbox-image {
	border: none;
	/* @noflip */
	padding: 2px 0 2px 0.5em;
	text-align: center;
}

.ambox .mbox-imageright {
	border: none;
	/* @noflip */
	padding: 2px 0.5em 2px 0;
	text-align: center;
}

/* An empty narrow cell */
.ambox .mbox-empty-cell {
	border: none;
	padding: 0;
	width: 1px;
}

.ambox .mbox-image-div {
	width: 52px;
}

@media (min-width: 720px) {
	.ambox {
		margin: 0 10%; /* 10% = Will not overlap with other elements */
	}
}

@media print {
	body.ns-0 .ambox {
		display: none !important;
	}
}

@media screen {
	html.skin-theme-clientpref-night .ambox-speedy {
		background-color: #310402;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .ambox-speedy {
		background-color: #310402;
	}
}