Module:Message box/ambox.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Compooper
No edit summary
imported>Compooper
No edit summary
Line 1: Line 1:
/* {{pp|small=y}} */
/* Article message box styles */
.ambox {
table.ambox {
border: 0px solid #a2a9b1;
margin: 0 10%;                  /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
/* @noflip */
/* @noflip */
border-left: 25px  solid #0c62da;  /* Standard AVID blue */
border-left: 10px solid #36c;  /* Default "notice" blue */
background-color: #fcfcfc;
background-color: #fbfbfb;
box-sizing: border-box;
box-sizing: border-box;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
}
 
/* Take into account templatestyles between two amboxes */
/* 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,
/* For the "small=left" option. */
.ambox td.mbox-text {            /* The message body cell(s) */
/* must override .ambox + .ambox styles above */
padding: 0.25em 0.5em;      /* 0.5em left/right */
html body.mediawiki .ambox.mbox-small-left {
}
.ambox td.mbox-image {          /* The left image cell */
/* @noflip */
/* @noflip */
margin: 4px 1em 4px 0;
padding: 2px 0 2px 0.5em;   /* 0.5em left, 0px right */
overflow: hidden;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}
}
 
.ambox td.mbox-imageright {     /* The right image cell */
.ambox-speedy {
/* @noflip */
/* @noflip */
border-left: 25px solid #ffffff;    /* White */
padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
background-color: #da0c3f;          /* AVID red */
}
}


.ambox-delete {
table.ambox-notice {
/* @noflip */
/* @noflip */
border-left: 25px solid #da0c3f;   /* AVID red */
border-left: 10px solid #36c;       /* Blue */
}
}
 
table.ambox-speedy {
.ambox-content {
/* @noflip */
/* @noflip */
border-left: 25px solid #ffa800;    /* AVID yellow */
border-left: 10px solid #b32424;    /* Red */
background-color: #fee7e6;          /* Pink */
}
}
 
table.ambox-delete {
.ambox-style {
/* @noflip */
/* @noflip */
border-left: 25px solid #ffa800;    /* AVID yellow */
border-left: 10px solid #b32424;    /* Red */
}
}
 
table.ambox-content {
.ambox-move {
/* @noflip */
/* @noflip */
border-left: 25px solid #9932cc;    /* Purple */
border-left: 10px solid #f28500;    /* Orange */
}
}
 
table.ambox-style {
.ambox-protection {
/* @noflip */
/* @noflip */
border-left: 25px solid #a2a9b1;   /* Gray-gold */
border-left: 10px solid #fc3;       /* Yellow */
}
}
 
table.ambox-move {
.ambox .mbox-text {
border: none;
/* @noflip */
/* @noflip */
padding: 0.25em 0.5em;
border-left: 10px solid #9932cc;   /* Purple */
width: 100%;
}
}
 
table.ambox-protection {
.ambox .mbox-image {
border: none;
/* @noflip */
/* @noflip */
padding: 2px 0 2px 0.5em;
border-left: 10px solid #a2a9b1;   /* Gray-gold */
text-align: center;
}
}


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

Navigation menu