MediaWiki:Common.css
跳转到导航
跳转到搜索
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* 图标列 - 自适应宽度 */
.wikitable .icon-cell {
width: 1%;
white-space: nowrap;
text-align: center;
vertical-align: middle;
}
/* 图标容器 - 固定大小并居中裁剪大图 */
.wikitable .icon-cell img {
width: 32px;
height: 32px;
object-fit: contain;
display: block;
margin: 0 auto;
}
/* ===== 战略配备 - 引用卡片样式 ===== */
.stratagem-card {
flex: 1;
border: 2px solid #ffd700;
border-radius: 8px;
padding: 16px 20px;
background: #1a1a2e;
color: #fff;
font-family: Arial, sans-serif;
}
.stratagem-badge {
font-size: 12px;
color: #ffd700;
letter-spacing: 2px;
font-weight: bold;
margin-bottom: 4px;
}
.stratagem-title {
font-size: 22px;
font-weight: bold;
margin-bottom: 6px;
}
.stratagem-desc {
font-size: 14px;
color: #aaa;
margin-bottom: 14px;
}
/* common.css */
.stratagem-table {
border-collapse: collapse;
width: 100%;
font-size: 13px;
}
.stratagem-table td {
padding: 6px 8px;
border: none;
vertical-align: middle;
}
/* 模拟 .stratagem-stats 的上边框效果 */
.stratagem-table tr {
border-top: 1px solid #333;
}
.stratagem-table tr:first-child {
border-top: none;
}
/* 模拟 .stat-label 效果(第一、三、五列) */
.stratagem-table td:nth-child(1),
.stratagem-table td:nth-child(3),
.stratagem-table td:nth-child(5) {
color: #888;
font-weight: normal;
text-align: left;
padding-right: 20px;
}
/* 模拟 .stat-value 效果(第二、四、六列) */
.stratagem-table td:nth-child(2),
.stratagem-table td:nth-child(4),
.stratagem-table td:nth-child(6) {
color: #fff;
font-weight: bold;
text-align: right;
}
/* 将标签文字(数据、满级舰船模块、呼叫时间、使用次数、冷却时间)改为白色 */
.stratagem-table td {
color: #fff;
}
/* 但数值列保持白色加粗,标签列要灰色,所以重新覆盖 */
.stratagem-table td:nth-child(1),
.stratagem-table td:nth-child(3),
.stratagem-table td:nth-child(5) {
color: #888;
}