مندرجات کا رخ کریں

"ماڈیول:Message box/ambox.css" کے نسخوں کے درمیان فرق

From ورلڈپیڈیا, the free encyclopedia
optimize for one sheet version of .mbox-text and etc.
م 20 revisions imported
ٹیگ: موبائل ترمیم موبائل ویب ترمیم
 
(2 صارفین 15 کے درمیانی نسخے نہیں دکھائے گئے)
سطر 1: سطر 1:
/* Article message box styles */
/* {{pp|small=y}} */
.ambox {
.ambox {
margin: 0 10%;                  /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
/* @noflip */
/* @noflip */
سطر 9: سطر 8:
}
}


/* Single border between stacked boxes. */
/* 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 + .ambox,
.ambox + link + style + .ambox,
.ambox + link + link + .ambox,
.ambox + link + link + .ambox,
.ambox + link + style + .ambox,
/* TODO: raise these as "is this really that necessary???". the change was Dec 2021 */
/* TODO: raise as "is this really that necessary???" */
.ambox + .mw-empty-elt + link + .ambox,
.ambox + .mw-empty-elt + link + .ambox,
.ambox + .mw-empty-elt + link + link + .ambox,
.ambox + .mw-empty-elt + link + style + .ambox,
.ambox + .mw-empty-elt + link + style + .ambox {
.ambox + .mw-empty-elt + link + link + .ambox {
margin-top: -1px;
margin-top: -1px;
}
}


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


سطر 54: سطر 63:
/* @noflip */
/* @noflip */
border-left: 10px solid #a2a9b1;    /* Gray-gold */
border-left: 10px solid #a2a9b1;    /* Gray-gold */
}
/* High specificity due to .ambox + .ambox above */
html body.mediawiki .ambox.mbox-small {  /* For the "small=yes" option. */
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 4px 0 4px 1em;
box-sizing: border-box;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
html body.mediawiki .ambox.mbox-small-left {  /* For the "small=left" option. */
/* @noflip */
margin: 4px 1em 4px 0;
box-sizing: border-box;
overflow: hidden;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}
}


سطر 88: سطر 72:
}
}


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


.ambox .mbox-imageright {           /* The right image cell */
.ambox .mbox-imageright {
border: none;
border: none;
/* @noflip */
/* @noflip */
padding: 2px 0.5em 2px 0; /* 0px left, 0.9em right */
padding: 2px 0.5em 2px 0;
text-align: center;
text-align: center;
}
}


.ambox .mbox-empty-cell {           /* An empty narrow cell */
/* An empty narrow cell */
.ambox .mbox-empty-cell {
border: none;
border: none;
padding: 0;
padding: 0;
width: 1px;
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;
}
}
}

حالیہ نسخہ بمطابق 02:39، 13 مارچ 2025ء

/* {{pp|small=y}} */
.ambox {
	border: 1px solid #a2a9b1;
	/* @noflip */
	border-left: 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=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: 10px solid #b32424;    /* Red */
	background-color: #fee7e6;          /* Pink */
}

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

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

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

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

.ambox-protection {
	/* @noflip */
	border-left: 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 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;
	}
}