Modul:Message box/ambox.css: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
Zeile 1: Zeile 1:
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
/**
td.mbox-image {                /* The left image cell */
* {{ambox}} (article message box) styles
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */
*
* @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-enwp-boxes.css
* @revision 2021-07-15
*/
table.ambox {
border-left: 10px solid #36c;  /* Default "notice" blue */
border-right: 1px solid #a2a9b1; /* required for RTL */
}
 
/* Single border between stacked boxes. */
table.ambox + table.ambox,
table.ambox + link + table.ambox {
margin-top: -1px;
}
}
td.mbox-imageright {           /* The right image cell */
 
padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */
/* An empty narrow cell */
.ambox td.mbox-empty-cell {
border: none;
padding: 0;
width: 1px;
}
}


/* Article message box styles */
/* The message body cell(s) */
table.ambox {
.ambox th.mbox-text,
border-left: 10px solid #36c; /* Default "notice" blue */
.ambox td.mbox-text {
border-right: 1px solid #a2a9b1; /* required for RTL */
border: none;
/* 0.5em left/right */
padding: 0.25em 0.5em;
/* Make all mboxes the same width regardless of text length */
width: 100%;
}
}
.ambox td.mbox-image {           /* The left image cell */
 
padding: 2px 0 2px 0.5em;   /* 0.5em left, 0px right */
/* The left image cell */
.ambox td.mbox-image {
/* 0.5em left, 0px right */
padding: 2px 0 2px 0.5em;
}
}
.ambox td.mbox-imageright {     /* The right image cell */
 
padding: 2px 0.5em 2px 0;   /* 0px left, 0.5em right */
/* The right image cell */
.ambox td.mbox-imageright {
/* 0px left, 0.5em right */
padding: 2px 0.5em 2px 0;
}
}


table.ambox-notice {
table.ambox-notice {
border-left: 10px solid #36c;       /* Blue */
/* Blue */
border-left-color: #36c;
}
}
table.ambox-speedy {
table.ambox-speedy {
border-left: 10px solid #b32424;    /* Red */
/* Pink */
background-color: #fee7e6;         /* Pink */
background-color: #fee7e6;
}
}
table.ambox-delete {
 
border-left: 10px solid #b32424;   /* Red */
table.ambox-delete,
table.ambox-speedy {
/* Red */
border-left-color: #b32424;
}
}
table.ambox-content {
table.ambox-content {
border-left: 10px solid #f28500;   /* Orange */
/* Orange */
border-left-color: #f28500;
}
}
table.ambox-style {
table.ambox-style {
border-left: 10px solid #fc3;       /* Yellow */
/* Yellow */
border-left-color: #fc3;
}
}
table.ambox-move {
table.ambox-move {
border-left: 10px solid #9932cc;   /* Purple */
/* Purple */
border-left-color: #9932cc;
}
}
table.ambox-protection {
table.ambox-protection {
border-left: 10px solid #a2a9b1;   /* Gray-gold */
/* Gray-gold */
border-left-color: #a2a9b1;
}
 
/**
* {{ambox|small=1}} styles
*
* These ".mbox-small" classes must be placed after all other
* ".ambox" classes. "html body.mediawiki .ambox"
* is so they override both "table.ambox + table.ambox"
* and "table.ambox + link + table.ambox" above.
*
* @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-enwp-boxes.css
* @revision 2021-07-15
*/
 
/* For the "small=yes" option. */
html body.mediawiki .ambox.mbox-small {
clear: right;
float: right;
margin: 4px 0 4px 1em;
box-sizing: border-box;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
 
/* For the "small=left" option. */
html body.mediawiki .ambox.mbox-small-left {
margin: 4px 1em 4px 0;
box-sizing: border-box;
overflow: hidden;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}
}

Version vom 15. Juli 2021, 20:36 Uhr

/**
 * {{ambox}} (article message box) styles
 *
 * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-enwp-boxes.css
 * @revision 2021-07-15
 */
table.ambox {
	border-left: 10px solid #36c;  /* Default "notice" blue */
	border-right: 1px solid #a2a9b1; /* required for RTL */
}

/* Single border between stacked boxes. */
table.ambox + table.ambox,
table.ambox + link + table.ambox {
	margin-top: -1px;
}

/* An empty narrow cell */
.ambox td.mbox-empty-cell {
	border: none;
	padding: 0;
	width: 1px;
}

/* The message body cell(s) */
.ambox th.mbox-text,
.ambox td.mbox-text {
	border: none;
	/* 0.5em left/right */
	padding: 0.25em 0.5em;
	/* Make all mboxes the same width regardless of text length */
	width: 100%;
}

/* The left image cell */
.ambox td.mbox-image {
	/* 0.5em left, 0px right */
	padding: 2px 0 2px 0.5em;
}

/* The right image cell */
.ambox td.mbox-imageright {
	/* 0px left, 0.5em right */
	padding: 2px 0.5em 2px 0;
}

table.ambox-notice {
	/* Blue */
	border-left-color: #36c;
}

table.ambox-speedy {
	/* Pink */
	background-color: #fee7e6;
}

table.ambox-delete,
table.ambox-speedy {
	/* Red */
	border-left-color: #b32424;
}

table.ambox-content {
	/* Orange */
	border-left-color: #f28500;
}

table.ambox-style {
	/* Yellow */
	border-left-color: #fc3;
}

table.ambox-move {
	/* Purple */
	border-left-color: #9932cc;
}

table.ambox-protection {
	/* Gray-gold */
	border-left-color: #a2a9b1;
}

/**
 * {{ambox|small=1}} styles
 *
 * These ".mbox-small" classes must be placed after all other
 * ".ambox" classes. "html body.mediawiki .ambox"
 * is so they override both "table.ambox + table.ambox"
 * and "table.ambox + link + table.ambox" above.
 *
 * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-enwp-boxes.css
 * @revision 2021-07-15
 */

/* For the "small=yes" option. */
html body.mediawiki .ambox.mbox-small {
	clear: right;
	float: right;
	margin: 4px 0 4px 1em;
	box-sizing: border-box;
	width: 238px;
	font-size: 88%;
	line-height: 1.25em;
}

/* For the "small=left" option. */
html body.mediawiki .ambox.mbox-small-left {
	margin: 4px 1em 4px 0;
	box-sizing: border-box;
	overflow: hidden;
	width: 238px;
	border-collapse: collapse;
	font-size: 88%;
	line-height: 1.25em;
}