پرش به محتوا

پودمان:Message box/ambox.css

از سورسکال
نسخهٔ تاریخ ۴ نوامبر ۲۰۲۶، ساعت ۰۲:۲۷ توسط Shahroudi (بحث | مشارکت‌ها) (صفحه‌ای تازه حاوی «/* fa.wikisource: RTL version of Module:Message box/ambox.css from the English Wikipedia. * Every direction-dependent declaration is written for right-to-left pages and keeps its * @noflip marker, so the result is the same whether or not the stylesheet is flipped. * Changes: * - stripe moved to the right side: border-left -> border-right (7 rules) * - image cell paddings swapped * - small box: .mbox-small-left -> .mbox-small-r...» ایجاد کرد)
(تفاوت) → نسخهٔ قدیمی‌تر | نمایش نسخهٔ فعلی (تفاوت) | نسخهٔ جدیدتر ← (تفاوت)
/* fa.wikisource: RTL version of Module:Message box/ambox.css from the English Wikipedia.
 * Every direction-dependent declaration is written for right-to-left pages and keeps its
 * @noflip marker, so the result is the same whether or not the stylesheet is flipped.
 * Changes:
 *  - stripe moved to the right side: border-left -> border-right (7 rules)
 *  - image cell paddings swapped
 *  - small box: .mbox-small-left -> .mbox-small-right (matches smallClass in the configuration) */

.ambox {
	border: 1px solid #a2a9b1;
	/* @noflip */
	border-right: 10px solid #36c;  /* Default "notice" blue */
	background-color: #fbfbfb;
	box-sizing: border-box;
}

/* Single border between stacked boxes. Take into account base templatestyles,
 * user styles, and Template:Dated maintenance category.
 * remove link selector when T200206 is fixed
 */
.ambox + link + .ambox,
.ambox + link + style + .ambox,
.ambox + link + link + .ambox,
/* TODO: raise these as "is this really that necessary???". the change was Dec 2021 */
.ambox + .mw-empty-elt + link + .ambox,
.ambox + .mw-empty-elt + link + style + .ambox,
.ambox + .mw-empty-elt + link + link + .ambox {
	margin-top: -1px;
}

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

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

.ambox-delete {
	/* @noflip */
	border-right: 10px solid #b32424;    /* Red */
}

.ambox-content {
	/* @noflip */
	border-right: 10px solid #f28500;    /* Orange */
}

.ambox-style {
	/* @noflip */
	border-right: 10px solid #fc3;       /* Yellow */
}

.ambox-move {
	/* @noflip */
	border-right: 10px solid #9932cc;    /* Purple */
}

.ambox-protection {
	/* @noflip */
	border-right: 10px solid #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.5em 2px 0;
	text-align: center;
}

.ambox .mbox-imageright {
	border: none;
	/* @noflip */
	padding: 2px 0 2px 0.5em;
	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;
	}
}