Module:Message box/ombox.css:修订间差异

删除的内容 添加的内容
TemplateStyles: Module:Message box/ombox.css 样式
 
更新 ombox.css 为 mworg 完整版(含暗色模式+响应式)
 
(未显示同一用户的2个中间版本)
第1行:
/**
/* {{ombox}} 其他页面消息框样式 */
* {{ombox}} (other pages message box) styles
.ombox {
*
* @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-enwp-boxes.css
* @revision 2021-07-15
*/
table.ombox {
margin: 4px 10%;
border-collapse: collapse;
/* Default "notice" gray */
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
border-left: 10px solid #f28500;
background-color: #fdf2d5333;
color: #202122;
margin: 0.5em 0;
padding: 3px;
width: 100%;
box-sizing: border-box;
}
 
/* An empty narrow cell */
.ombox-speedy {
.ombox td.mbox-empty-cell {
border-left-color: #b32424;
border: none;
background-color: #fee7e6;
padding: 0;
width: 1px;
}
 
/* The message body cell(s) */
.ombox th.mbox-text,
.ombox 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 */
.ombox td.mbox-image {
border: none;
text-align: center;
padding: 2px 0 2px 0.9em;
}
 
/* The right image cell */
.ombox td.mbox-imageright {
border: none;
text-align: center;
padding: 2px 0.9em 2px 0;
}
 
table.ombox-notice {
/* Gray */
border-color: #a2a9b1;
}
 
table.ombox-deletespeedy {
/* Pink */
border-left-color: #b32424;
background-color: #fee7e6;
color: #333;
}
 
table.ombox-content {speedy,
table.ombox-delete {
border-left-color: #f28500;
/* Red */
background-color: #fdf2d5;
border-color: #b32424;
border-width: 2px;
}
 
table.ombox-stylecontent {
/* Orange */
border-left-color: #fc3;
backgroundborder-color: #fef6e7f28500;
}
 
table.ombox-movestyle {
/* Yellow */
border-left-color: #9932cc;
backgroundborder-color: #f3eef7fc3;
}
 
table.ombox-protectionmove {
/* Purple */
border-left-color: #a2a9b1;
backgroundborder-color: #f8f9fa9932cc;
}
 
table.ombox-noticeprotection {
/* Gray-gold */
border-left-color: #36c;
backgroundborder-color: #eaf3ffa2a9b1;
border-width: 2px;
}
 
/**
.ombox .mbox-image {
* {{ombox|small=1}} styles
border: none;
*
padding: 2px 0 2px 0.9em;
* These ".mbox-small" classes must be placed after all other
text-align: center;
* ".ombox" classes.
width: 52px;
*/
html body.mediawiki .ombox.mbox-small {
clear: right;
float: right;
margin: 4px 0 4px 1em;
box-sizing: border-box;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
 
@media screen {
.ombox .mbox-text {
html.skin-theme-clientpref-night table.ombox {
border: none;
background-color: transparent;
padding: 0.25em 0.9em;
color: inherit;
width: 100%;
}
}
 
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os table.ombox {
background-color: transparent;
color: inherit;
}
}
 
@media screen and (max-width: 720px) {
table.ombox {
margin: 4px auto;
}
}