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

删除的内容 添加的内容
追加 .mbox-small 右浮动窄框样式
更新 ombox.css 为 mworg 完整版(含暗色模式+响应式)
 
(未显示同一用户的1个中间版本)
第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-delete {
.ombox th.mbox-text,
border-left-color: #b32424;
.ombox td.mbox-text {
background-color: #fee7e6;
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-content {
.ombox td.mbox-image {
border-left-color: #f28500;
border: none;
background-color: #fdf2d5;
text-align: center;
padding: 2px 0 2px 0.9em;
}
 
/* The right image cell */
.ombox-style {
.ombox td.mbox-imageright {
border-left-color: #fc3;
border: none;
background-color: #fef6e7;
text-align: center;
padding: 2px 0.9em 2px 0;
}
 
table.ombox-movenotice {
/* Gray */
border-left-color: #9932cc;
backgroundborder-color: #f3eef7a2a9b1;
}
 
table.ombox-protectionspeedy {
/* Pink */
border-left-color: #a2a9b1;
background-color: #f8f9fafee7e6;
color: #333;
}
 
table.ombox-notice {speedy,
table.ombox-delete {
border-left-color: #36c;
/* Red */
background-color: #eaf3ff;
border-color: #b32424;
border-width: 2px;
}
 
table.ombox .mbox-imagecontent {
/* Orange */
border: none;
border-color: #f28500;
padding: 2px 0 2px 0.9em;
text-align: center;
width: 52px;
}
 
table.ombox .mbox-textstyle {
/* Yellow */
border: none;
border-color: #fc3;
padding: 0.25em 0.9em;
}
width: 100%;
 
table.ombox-move {
/* Purple */
border-color: #9932cc;
}
 
table.ombox-protection {
/* Gray-gold */
border-color: #a2a9b1;
border-width: 2px;
}
 
/**
/* 小型消息框(如 Lua 通知,右浮动窄框) */
. * {{ombox.mbox-|small=1}} {styles
*
* These ".mbox-small" classes must be placed after all other
* ".ombox" classes.
*/
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 {
html.skin-theme-clientpref-night table.ombox {
background-color: transparent;
color: inherit;
}
}
 
@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;
}
}