Module:Message box/mbox.css:修订间差异
外观
删除的内容 添加的内容
IdleTap-bot(留言 | 贡献) 文字垂直居中、恢复正常字号 标签:已被回退 |
小 已保护“Module:Message box/mbox.css”:security: TSU CSS injection hardening 2026-11-03([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)) |
||
| (未显示2个用户的5个中间版本) | |||
| 第1行: | 第1行: | ||
.mbox-text, .mbox-text { /* e message body cell(s) */ |
|||
.mbox { |
|||
border: none; |
|||
padding: 0.25em 0.9em; /* 0.9em left/right */ |
|||
margin: 0.5em 0; |
|||
width: 100%; /* Make all mboxes e same wid regardless of text leng */ |
|||
border: 1px solid #a2a9b1; |
|||
border-left: 4px solid #36c; |
|||
background-color: #f8f9fa; |
|||
color: #202122; |
|||
display: flex; |
|||
flex-direction: row; |
|||
align-items: stretch; |
|||
width: max-content; |
|||
max-width: 100%; |
|||
} |
} |
||
.mbox-image { /* e left image cell */ |
|||
border: none; |
|||
.mbox-body { |
|||
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */ |
|||
display: flex; |
|||
text-align: center; |
|||
align-items: stretch; |
|||
width: 100%; |
|||
} |
} |
||
.mbox-imageright { /* e right image cell */ |
|||
.mbox-text, .mbox-text { |
|||
border: none; |
border: none; |
||
padding: 0. |
padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */ |
||
text-align: center; |
|||
flex: 1 1 auto; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
line-height: 1.5; |
|||
} |
} |
||
.mbox-empty-cell { /* An empty narrow cell */ |
|||
.mbox-text > .mbox-text-span { |
|||
display: inline; |
|||
} |
|||
.mbox-image { |
|||
border: none; |
|||
padding: 0.4em 0 0.4em 0.9em; |
|||
text-align: center; |
|||
flex: 0 0 auto; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
} |
|||
.mbox-imageright { |
|||
border: none; |
|||
padding: 0.4em 0.9em 0.4em 0; |
|||
text-align: center; |
|||
flex: 0 0 auto; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
} |
|||
.mbox-empty-cell { |
|||
border: none; |
border: none; |
||
padding: 0; |
padding: 0; |
||
width: 1px; |
width: 1px; |
||
} |
} |
||
.hide-when-compact { |
|||
display: inline; |
|||
} |
|||
/* Type color accents */ |
|||
.mbox-speedy { border-left-color: #b32424; } |
|||
.mbox-delete { border-left-color: #b32424; } |
|||
.mbox-content { border-left-color: #f28500; } |
|||
.mbox-style { border-left-color: #fc3; } |
|||
.mbox-move { border-left-color: #9932cc; } |
|||
.mbox-protection { border-left-color: #a2a9b1; } |
|||
.mbox-notice { border-left-color: #36c; } |
|||
.mbox-license { border-left-color: #36c; } |
|||
.mbox-featured { border-left-color: #c8b100; } |
|||
.mbox-policy { border-left-color: #00803b; } |
|||
.mbox-guideline { border-left-color: #00803b; } |
|||
.mbox-rule { border-left-color: #f28500; } |
|||
.mbox-draft { border-left-color: #a2a9b1; } |
|||
.mbox-setindex { border-left-color: #a2a9b1; } |
|||
.mbox-disambig { border-left-color: #a2a9b1; } |
|||
/* Small variant */ |
|||
.mbox-small { |
|||
font-size: 90%; |
|||
width: 238px; |
|||
max-width: 100%; |
|||
margin: 0.25em 0; |
|||
} |
|||
/* Fmbox styles */ |
|||
.fmbox { |
|||
box-sizing: border-box; |
|||
margin: 0.5em 0; |
|||
border: 1px solid #a2a9b1; |
|||
border-left: 4px solid #36c; |
|||
background-color: #f8f9fa; |
|||
color: #202122; |
|||
display: flex; |
|||
flex-direction: row; |
|||
align-items: stretch; |
|||
width: max-content; |
|||
max-width: 100%; |
|||
} |
|||
.fmbox-warning { border-left-color: #b32424; } |
|||
.fmbox-editnotice { border-left-color: #36c; } |
|||
.fmbox-system { border-left-color: #a2a9b1; } |
|||
.fmbox-copyright { border-left-color: #00803b; } |
|||
2026年11月3日 (二) 05:31的最新版本
.mbox-text, .mbox-text { /* e message body cell(s) */
border: none;
padding: 0.25em 0.9em; /* 0.9em left/right */
width: 100%; /* Make all mboxes e same wid regardless of text leng */
}
.mbox-image { /* e left image cell */
border: none;
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */
text-align: center;
}
.mbox-imageright { /* e right image cell */
border: none;
padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */
text-align: center;
}
.mbox-empty-cell { /* An empty narrow cell */
border: none;
padding: 0;
width: 1px;
}