Module:Message box/cmbox.css:修订间差异
外观
删除的内容 添加的内容
TemplateStyles: Module:Message box/cmbox.css 样式 |
替换为 mworg 版 cmbox.css |
||
| 第1行: | 第1行: | ||
/** |
|||
/* {{cmbox}} 分类消息框样式 */ |
|||
* {{cmbox}} (category message box) styles |
|||
| ⚫ | |||
* |
|||
| ⚫ | |||
* @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-enwp-boxes.css |
|||
border-left: 10px solid #36c; |
|||
* @revision 2021-07-15 |
|||
background-color: #f8f9fa; |
|||
*/ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
margin: 3px 10%; |
|||
border-collapse: collapse; |
|||
| ⚫ | |||
border: 1px solid var(--border-color-base, #a2a9b1); |
|||
/* Default "notice" light blue */ |
|||
background-color: var(--background-color-progressive-subtle--hover, #d9e2ff); |
|||
| ⚫ | |||
box-sizing: border-box; |
box-sizing: border-box; |
||
} |
} |
||
/* An empty narrow cell */ |
|||
| ⚫ | |||
.cmbox td.mbox-empty-cell { |
|||
border-left-color: #b32424; |
|||
| ⚫ | |||
| ⚫ | |||
width: 1px; |
|||
} |
} |
||
/* The message body cell(s) */ |
|||
| ⚫ | |||
.cmbox th.mbox-text, |
|||
border-left-color: #b32424; |
|||
| ⚫ | |||
| ⚫ | |||
/* 0.9em left/right */ |
|||
| ⚫ | |||
/* Make all mboxes the same width regardless of text length */ |
|||
| ⚫ | |||
} |
} |
||
/* The left image cell */ |
|||
.cmbox-content { |
|||
.cmbox td.mbox-image { |
|||
border-left-color: #f28500; |
|||
/* 0.9em left, 0px right */ |
|||
/* @noflip */ |
|||
padding: 2px 0 2px 0.9em; |
|||
} |
} |
||
/* The right image cell */ |
|||
| ⚫ | |||
.cmbox td.mbox-imageright { |
|||
border-left-color: #fc3; |
|||
/* 0px left, 0.9em right */ |
|||
/* @noflip */ |
|||
padding: 2px 0.9em 2px 0; |
|||
} |
} |
||
.cmbox- |
table.cmbox-notice { |
||
/* Light blue */ |
|||
border-left-color: #9932cc; |
|||
background-color: var(--background-color-progressive-subtle--hover, #d9e2ff); |
|||
} |
} |
||
.cmbox- |
table.cmbox-speedy { |
||
margin-top: 4px; |
|||
| ⚫ | |||
margin-bottom: 4px; |
|||
/* Red */ |
|||
| ⚫ | |||
} |
} |
||
.cmbox- |
table.cmbox-delete, |
||
| ⚫ | |||
border-left-color: #36c; |
|||
/* Pink */ |
|||
background-color: var(--background-color-error-subtle--active, #ffc8bd); |
|||
} |
} |
||
.cmbox |
table.cmbox-content { |
||
/* Orange */ |
|||
| ⚫ | |||
background-color: var(--background-color-error-subtle--hover, #ffdad3); |
|||
| ⚫ | |||
text-align: center; |
|||
| ⚫ | |||
} |
} |
||
.cmbox |
table.cmbox-style { |
||
/* Yellow */ |
|||
| ⚫ | |||
background-color: var(--background-color-warning-subtle, #fdf2d5); |
|||
| ⚫ | |||
} |
|||
width: 100%; |
|||
| ⚫ | |||
/* Blue */ |
|||
background-color: var(--background-color-progressive-subtle--active, #b6d4fb); |
|||
} |
|||
table.cmbox-protection { |
|||
/* Gold */ |
|||
background-color: var(--background-color-content-removed, #ffe49c); |
|||
} |
|||
@media screen and (max-width: 720px) { |
|||
table.cmbox { |
|||
| ⚫ | |||
} |
|||
} |
} |
||
2026年6月21日 (日) 16:46的最新版本
/**
* {{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 var(--border-color-base, #a2a9b1);
/* Default "notice" light blue */
background-color: var(--background-color-progressive-subtle--hover, #d9e2ff);
color: var(--color-base, #202122);
box-sizing: border-box;
}
/* An empty narrow cell */
.cmbox td.mbox-empty-cell {
border: none;
padding: 0;
width: 1px;
}
/* The message body cell(s) */
.cmbox th.mbox-text,
.cmbox td.mbox-text {
border: none;
/* 0.9em left/right */
padding: 0.25em 0.9em;
/* Make all mboxes the same width regardless of text length */
width: 100%;
}
/* The left image cell */
.cmbox td.mbox-image {
/* 0.9em left, 0px right */
/* @noflip */
padding: 2px 0 2px 0.9em;
}
/* The right image cell */
.cmbox td.mbox-imageright {
/* 0px left, 0.9em right */
/* @noflip */
padding: 2px 0.9em 2px 0;
}
table.cmbox-notice {
/* Light blue */
background-color: var(--background-color-progressive-subtle--hover, #d9e2ff);
}
table.cmbox-speedy {
margin-top: 4px;
margin-bottom: 4px;
/* Red */
border: 4px solid #b32424;
}
table.cmbox-delete,
table.cmbox-speedy {
/* Pink */
background-color: var(--background-color-error-subtle--active, #ffc8bd);
}
table.cmbox-content {
/* Orange */
background-color: var(--background-color-error-subtle--hover, #ffdad3);
}
table.cmbox-style {
/* Yellow */
background-color: var(--background-color-warning-subtle, #fdf2d5);
}
table.cmbox-move {
/* Blue */
background-color: var(--background-color-progressive-subtle--active, #b6d4fb);
}
table.cmbox-protection {
/* Gold */
background-color: var(--background-color-content-removed, #ffe49c);
}
@media screen and (max-width: 720px) {
table.cmbox {
margin: 3px auto;
}
}