MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第394行: | 第394行: | ||
} | } | ||
/* | /* 极致拆解 ContributionScores 表格 → 纯文本列表,无任何框/线/背景 */ | ||
.contributionscores-wrapper, | |||
.contributionscores- | |||
.contributionscores, | .contributionscores, | ||
.contributionscores table, | .contributionscores table, | ||
.contributionscores tbody, | .contributionscores tbody, | ||
.contributionscores tr, | .contributionscores tr, | ||
.contributionscores td { | .contributionscores td, | ||
.contributionscores .content, | |||
.contributionscores .odd, | |||
.contributionscores .even { | |||
border: none !important; | border: none !important; | ||
border-collapse: separate !important; /* 防止表格塌陷 */ | |||
background: transparent !important; | background: transparent !important; | ||
padding: | background-color: transparent !important; | ||
box-shadow: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* | /* 隐藏标题(如果还有) */ | ||
.contributionscores-title, | |||
.contributionscores .header, | |||
.contributionscores thead, | |||
.contributionscores tr th, | |||
.contributionscores .header td { | |||
display: none !important; | |||
} | |||
/* 每行(tr)变成普通块,像 <p> 或 <li> */ | |||
.contributionscores tr { | .contributionscores tr { | ||
display: block !important; | display: block !important; | ||
margin | margin: 6px 0 !important; /* 行间距自己调,6px 比较舒服 */ | ||
} | } | ||
/* 隐藏 Rank | /* 隐藏 Rank 列(第一列,通常是数字排名) */ | ||
.contributionscores td:first-child { | .contributionscores td:first-child { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 用户名列(第2列):加粗 + 颜色 */ | ||
.contributionscores td:nth-child(2) { | .contributionscores td:nth-child(2) { | ||
display: inline !important; | display: inline !important; | ||
font-weight: bold; | font-weight: bold !important; | ||
color: #1a3a6c; | color: #1a3a6c !important; | ||
margin-right: | margin-right: 12px !important; /* 用户名和分数之间空隙 */ | ||
white-space: nowrap !important; /* 防止用户名换行 */ | |||
} | } | ||
/* | /* 分数列(第3列):灰色数字 */ | ||
.contributionscores td:nth-child(3) { | .contributionscores td:nth-child(3) { | ||
display: inline !important; | display: inline !important; | ||
color: #718096; | color: #718096 !important; | ||
font-weight: normal; | font-weight: normal !important; | ||
} | } | ||
/* | /* 如果有额外列(如真实姓名),隐藏或处理 */ | ||
.contributionscores | .contributionscores td:nth-child(n+4) { | ||
display: none !important; | |||
} | } | ||
/* | /* 强制 wrapper 无任何视觉残留 */ | ||
.contributionscores-wrapper { | .contributionscores-wrapper { | ||
padding: 0 !important; | padding: 0 !important; | ||
margin: | margin: 8px 0 !important; /* 只留一点上下外边距,与模块其他内容隔开 */ | ||
border: none !important; | border: none !important; | ||
background: none !important; | |||
} | |||
/* 防止 hover 或其他皮肤干扰 */ | |||
.contributionscores tr:hover, | |||
.contributionscores td:hover { | |||
background: none !important; | |||
} | } | ||