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

From the Audiovisual Identity Database, the motion graphics museum
Content deleted Content added
Compooper (talk | contribs)
No edit summary
Compooper (talk | contribs)
m Text replacement - "border-left: 25px solid #ffffff" to "border-left: 25px solid #f8f9fa"
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* {{pp|small=y}} */
/* Article message box styles */
table.ambox {
.ambox {
margin: 0 10%; /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
/* @noflip */
/* @noflip */
border-left: 10px solid #36c; /* Default "notice" blue */
border-left: 25px solid #0c62da; /* Default "notice" blue */
background-color: #fbfbfb;
background-color: #fbfbfb;
border-radius: 5px;
box-sizing: border-box;
box-sizing: border-box;
}
}

/* 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: separate !important;
font-size: 88%;
line-height: 1.25em;
}
}

.ambox td.mbox-imageright { /* The right image cell */
.ambox-speedy {
/* @noflip */
/* @noflip */
padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */
border-left: 25px solid #f8f9fa; /* Red */
background-color: #da0c3f; /* Pink */
}
}


table.ambox-notice {
.ambox-delete {
/* @noflip */
/* @noflip */
border-left: 10px solid #36c; /* Blue */
border-left: 25px solid #da0c3f; /* Red */
}
}

table.ambox-speedy {
.ambox-content {
/* @noflip */
/* @noflip */
border-left: 10px solid #b32424; /* Red */
border-left: 25px solid #ffa800; /* Orange */
background-color: #fee7e6; /* Pink */
}
}

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

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

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

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. */
border: none;
/* Hide the images */
/* @noflip */
.compact-ambox table .mbox-image,
padding: 2px 0.5em 2px 0;
.compact-ambox table .mbox-imageright,
text-align: center;
.compact-ambox table .mbox-empty-cell {
display: none;
}
}

/* Remove borders, backgrounds, padding, etc. */
/* An empty narrow cell */
.compact-ambox table.ambox {
.ambox .mbox-empty-cell {
border: none;
border: none;
padding: 0;
border-collapse: collapse;
width: 1px;
background-color: transparent;
margin: 0 0 0 1.6em !important;
padding: 0 !important;
width: auto;
display: block;
}
}

.compact-ambox table.mbox-small-left.mbox-small-left {
.ambox .mbox-image-div {
font-size: 100%;
width: auto;
width: 52px;
margin: 0;
}
}

/* Style the text cell as a list item and remove its padding */
/* Hack around MobileFrontend being opinionated */
.compact-ambox table .mbox-text {
html.client-js body.skin-minerva .mbox-text-span {
padding: 0 !important;
margin: 0 !important;
margin-left: 23px !important;
}
}

.compact-ambox table .mbox-text-span {
@media (min-width: 720px) {
display: list-item;
.ambox {
line-height: 1.5em;
margin: 0 10%; /* 10% = Will not overlap with other elements */
list-style-type: square;
}
/*list-style-image: url(/w/skins/MonoBook/resources/images/bullet.gif);*/
}
}

.skin-vector .compact-ambox table .mbox-text-span {
/* AVID CSS icon fix */
list-style-type: disc;

/*list-style-image: url(/w/skins/Vector/images/bullet-icon.svg);*/
img {
}
max-width: inherit;
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
display: none;
}
}

Latest revision as of 11:53, 25 November 2023

/* {{pp|small=y}} */
.ambox {
	border: 1px solid #a2a9b1;
	/* @noflip */
	border-left: 25px solid #0c62da;  /* Default "notice" blue */
	background-color: #fbfbfb;
	border-radius: 5px;
	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: separate !important;
	font-size: 88%;
	line-height: 1.25em;
}

.ambox-speedy {
	/* @noflip */
	border-left: 25px solid #f8f9fa;    /* Red */
	background-color: #da0c3f;          /* Pink */
}

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

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

.ambox-style {
	/* @noflip */
	border-left: 25px solid #ffa800;       /* 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;
}

/* Hack around MobileFrontend being opinionated */
html.client-js body.skin-minerva .mbox-text-span {
	margin-left: 23px !important;
}

@media (min-width: 720px) {
	.ambox {
		margin: 0 10%;                  /* 10% = Will not overlap with other elements */
	}
}

/* AVID CSS icon fix */

img {
	max-width: inherit;
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.