Module:Message box/sandbox/tmbox.css

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
/* {{pp|small=y}} */
.tmbox {
	margin: 4px 0;
	border-collapse: collapse;
	border: 2px solid #ca3;    /* Default "notice" gray-brown */
	background-color: var(--background-color-warning-subtle, #fdf2d5);
	box-sizing: border-box;
	border-inline-start-width: 8px;
}

/* For the "small=yes" option. */
.tmbox.mbox-small {
	font-size: 88%;
	line-height: 1.25em;
}

.tmbox-speedy {
	border: 2px solid var(--border-color-error, #f54739);    /* Red */
	background-color: var(--background-color-error-subtle, #ffe9e5);    /* Pink */
	border-inline-start-width: 8px;
}

.tmbox-delete {
	border: 2px solid var(--border-color-error, #f54739);    /* Red */
	border-inline-start-width: 8px;
}

.tmbox-content {
	border: 2px solid #f28500;    /* Orange */
	border-inline-start-width: 8px;
}

.tmbox-style {
	border: 2px solid #f4c430;       /* Yellow */
	border-inline-start-width: 8px;
}

.tmbox-move {
	border: 2px solid #93c;    /* Purple */
	border-inline-start-width: 8px;
}

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

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

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

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

.tmbox .mbox-invalid-type {
	text-align: center;
}

@media (min-width: 720px) {
	.tmbox {
		margin: 4px 10%;
	}
	
	.tmbox.mbox-small {
		/* @noflip */
		clear: right;
		/* @noflip */
		float: right;
		/* @noflip */
		margin: 4px 0 4px 1em;
		width: 238px;
	}
}

/** T367463 */
body.skin--responsive table.tmbox img {
	max-width: none !important;
}