Template:Poslanje/styles.css

Iz Medžuviki, svobodnoj enciklopedije
Jump to navigation Jump to search
/* [[Template:Poslanje]] styles */
.mbox {
	background: #f8f9fa;
	border-left: 4px solid #a2a9b1;
	font-size: 0.9em;
	line-height: 1.4;
	margin: 0 auto 0.25em;
	padding: 0.5em;
}

@media (min-width: 720px) {
	.mbox {
		border-radius: 2px;
		font-size: 1em;
		line-height: inherit;
		margin-top: 0.5em;
		max-width: 65em;
	}
	
	.mbox.is-full-width {
		max-width: none;
	}
}

.mbox > * {
	display: table-cell;
	vertical-align: middle;
}

/* Image */
.mbox-image {
	padding-right: 0.5em;
	vertical-align: top;
}

@media (max-width: 719px) {
	.mbox-image > img {
		height: auto;
		width: 24px;
	}
}

@media (min-width: 720px) {
	.mbox-image {
		vertical-align: middle;
	}
}

.mbox > .mbox-image {
	filter: invert(72%) sepia(11%) saturate(212%) hue-rotate(172deg) brightness(92%) contrast(90%);
}

/* Constructive (green) */
.mbox.is-constructive {
	background: #d5fdf4;
	border-color: #00af89;
}

.mbox.is-constructive > .mbox-image {
	filter: invert(48%) sepia(36%) saturate(6810%) hue-rotate(142deg) brightness(100%) contrast(101%);
}

/* Progressive (blue) */
.mbox.is-progressive {
	background: #eaf3ff;
	border-color: #36c;
}

.mbox.is-progressive > .mbox-image {
	filter: invert(33%) sepia(95%) saturate(1014%) hue-rotate(198deg) brightness(88%) contrast(90%);
}

/* Informative (orange) */
.mbox.is-informative {
	background: #fef6e7;
	border-color: #fc3;
}

.mbox.is-informative > .mbox-image {
	filter: invert(81%) sepia(80%) saturate(962%) hue-rotate(327deg) brightness(101%) contrast(101%);
}

/* Destructive (red) */
.mbox.is-destructive {
	background: #fee7e6;
	border-color: #d33;
}

.mbox.is-destructive > .mbox-image {
	filter: invert(34%) sepia(82%) saturate(1592%) hue-rotate(335deg) brightness(83%) contrast(110%);
}

/* Text styles */
.mbox-text :first-child {
	margin-top: 0;
}

.mbox-text :last-child {
	margin-bottom: 0;
}

/* Text title */
@media (min-width: 720px) {
	.mbox-title {
		font-weight: bold;
		line-height: 1.4;
	}
}

/* Text description */
.mbox-description {
	color: #54595d;
}

@media (min-width: 720px) {
	.mbox-description {
		color: inherit;
		font-size: 0.9em;
	}
}