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

T200206
م 20 revisions imported
ٹیگ: موبائل ترمیم موبائل ویب ترمیم
 
(2 صارفین 18 کے درمیانی نسخے نہیں دکھائے گئے)
سطر 1: سطر 1:
/* Article message box styles */
/* {{pp|small=y}} */
table.ambox {
.ambox {
margin: 0 10%;                  /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
/* @noflip */
/* @noflip */
سطر 8: سطر 7:
box-sizing: border-box;
box-sizing: border-box;
}
}
/* Take into account templatestyles between two amboxes */
 
/* remove link version when T200206 is fixed */
/* Single border between stacked boxes. Take into account base templatestyles,
table.ambox + link + link + table.ambox,
* user styles, and Template:Dated maintenance category.
table.ambox + table.ambox {      /* Single border between stacked boxes. */
* 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;
margin-top: -1px;
}
}
.ambox th.mbox-text,
 
.ambox td.mbox-text {            /* The message body cell(s) */
/* For the "small=left" option. */
padding: 0.25em 0.5em;      /* 0.5em left/right */
/* must override .ambox + .ambox styles above */
}
html body.mediawiki .ambox.mbox-small-left {
.ambox td.mbox-image {           /* The left image cell */
/* @noflip */
/* @noflip */
padding: 2px 0 2px 0.5em;   /* 0.5em left, 0px right */
margin: 4px 1em 4px 0;
}
overflow: hidden;
.ambox td.mbox-imageright {      /* The right image cell */
width: 238px;
/* @noflip */
border-collapse: collapse;
padding: 2px 0.5em 2px 0;   /* 0px left, 0.5em right */
font-size: 88%;
line-height: 1.25em;
}
}


table.ambox-notice {
.ambox-speedy {
/* @noflip */
border-left: 10px solid #36c;      /* Blue */
}
table.ambox-speedy {
/* @noflip */
/* @noflip */
border-left: 10px solid #b32424;    /* Red */
border-left: 10px solid #b32424;    /* Red */
background-color: #fee7e6;          /* Pink */
background-color: #fee7e6;          /* Pink */
}
}
table.ambox-delete {
 
.ambox-delete {
/* @noflip */
/* @noflip */
border-left: 10px solid #b32424;    /* Red */
border-left: 10px solid #b32424;    /* Red */
}
}
table.ambox-content {
 
.ambox-content {
/* @noflip */
/* @noflip */
border-left: 10px solid #f28500;    /* Orange */
border-left: 10px solid #f28500;    /* Orange */
}
}
table.ambox-style {
 
.ambox-style {
/* @noflip */
/* @noflip */
border-left: 10px solid #fc3;      /* Yellow */
border-left: 10px solid #fc3;      /* Yellow */
}
}
table.ambox-move {
 
.ambox-move {
/* @noflip */
/* @noflip */
border-left: 10px solid #9932cc;    /* Purple */
border-left: 10px solid #9932cc;    /* Purple */
}
}
table.ambox-protection {
 
.ambox-protection {
/* @noflip */
/* @noflip */
border-left: 10px solid #a2a9b1;    /* Gray-gold */
border-left: 10px solid #a2a9b1;    /* Gray-gold */
}
}


/* Style for compact ambox, as used inside multiple issues etc. */
.ambox .mbox-text {
/* Hide the images */
border: none;
.compact-ambox table .mbox-image,
/* @noflip */
.compact-ambox table .mbox-imageright,
padding: 0.25em 0.5em;
.compact-ambox table .mbox-empty-cell {
width: 100%;
display: none;
}
}
/* Remove borders, backgrounds, padding, etc. */
 
.compact-ambox table.ambox {
.ambox .mbox-image {
border: none;
border: none;
border-collapse: collapse;
/* @noflip */
background-color: transparent;
padding: 2px 0 2px 0.5em;
margin: 0 0 0 1.6em !important;
text-align: center;
padding: 0 !important;
width: auto;
display: block;
}
}
.compact-ambox table.mbox-small-left.mbox-small-left {
 
font-size: 100%;
.ambox .mbox-imageright {
width: auto;
border: none;
margin: 0;
/* @noflip */
padding: 2px 0.5em 2px 0;
text-align: center;
}
}
/* Style the text cell as a list item and remove its padding */
 
.compact-ambox table .mbox-text {
/* An empty narrow cell */
padding: 0 !important;
.ambox .mbox-empty-cell {
margin: 0 !important;
border: none;
padding: 0;
width: 1px;
}
}
.compact-ambox table .mbox-text-span {
 
display: list-item;
.ambox .mbox-image-div {
line-height: 1.5em;
width: 52px;
list-style-type: square;
/*list-style-image: url(/w/skins/MonoBook/resources/images/bullet.gif);*/
}
}
.skin-vector .compact-ambox table .mbox-text-span {
 
list-style-type: disc;
@media (min-width: 720px) {
/*list-style-image: url(/w/skins/Vector/images/bullet-icon.svg);*/
.ambox {
margin: 0 10%;                 /* 10% = Will not overlap with other elements */
}
}
}
/* Allow for hiding text in compact form */
 
.compact-ambox .hide-when-compact {
@media print {
display: none;
body.ns-0 .ambox {
display: none !important;
}
}
}