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

Aus skandinavien-wiki.net
(Import {{Cmbox}} styles from mw:MediaWiki:Gadget-enwp-boxes.css)
(code style conventions)
Zeile 20: Zeile 20:
border-collapse: collapse;
border-collapse: collapse;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
background-color: #dfe8ff;    /* Default "notice" blue */
/* Default "notice" blue */
background-color: #dfe8ff;
box-sizing: border-box;
box-sizing: border-box;
}
}


table.cmbox-notice {
table.cmbox-notice {
background-color: #d8e8ff;   /* Blue */
/* Blue */
background-color: #d8e8ff;
}
}
table.cmbox-speedy {
table.cmbox-speedy {
margin-top: 4px;
margin-top: 4px;
margin-bottom: 4px;
margin-bottom: 4px;
border: 4px solid #b32424;    /* Red */
/* Red */
background-color: #ffdbdb;   /* Pink */
border: 4px solid #b32424;
}
}
table.cmbox-delete {
 
background-color: #ffdbdb;   /* Pink */
table.cmbox-delete,
table.cmbox-speedy {
/* Pink */
background-color: #ffdbdb;
}
}
table.cmbox-content {
table.cmbox-content {
background-color: #ffe7ce;   /* Orange */
/* Orange */
background-color: #ffe7ce;
}
}
table.cmbox-style {
table.cmbox-style {
background-color: #fff9db;   /* Yellow */
/* Yellow */
background-color: #fff9db;
}
}
table.cmbox-move {
table.cmbox-move {
background-color: #e4d8ff;   /* Purple */
/* Purple */
background-color: #e4d8ff;
}
}
table.cmbox-protection {
table.cmbox-protection {
background-color: #efefe1;   /* Gray-gold */
/* Gray-gold */
background-color: #efefe1;
}
}

Version vom 15. Juli 2021, 19:16 Uhr

/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text {   /* The message body cell(s) */
	padding: 0.25em 0.9em;     /* 0.9em left/right */
}
td.mbox-image {                /* The left image cell */
	padding: 2px 0 2px 0.9em;  /* 0.9em left, 0px right */
}
td.mbox-imageright {           /* The right image cell */
	padding: 2px 0.9em 2px 0;  /* 0px left, 0.9em right */
}

/**
 * {{cmbox}} (category message box) styles
 *
 * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-enwp-boxes.css
 * @revision 2021-07-15
 */
table.cmbox {
	margin: 3px 10%;
	border-collapse: collapse;
	border: 1px solid #a2a9b1;
	/* Default "notice" blue */
	background-color: #dfe8ff;
	box-sizing: border-box;
}

table.cmbox-notice {
	/* Blue */
	background-color: #d8e8ff;
}

table.cmbox-speedy {
	margin-top: 4px;
	margin-bottom: 4px;
	/* Red */
	border: 4px solid #b32424;
}

table.cmbox-delete,
table.cmbox-speedy {
	/* Pink */
	background-color: #ffdbdb;
}

table.cmbox-content {
	/* Orange */
	background-color: #ffe7ce;
}

table.cmbox-style {
	/* Yellow */
	background-color: #fff9db;
}

table.cmbox-move {
	/* Purple */
	background-color: #e4d8ff;
}

table.cmbox-protection {
	/* Gray-gold */
	background-color: #efefe1;
}