MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第394行: | 第394行: | ||
} | } | ||
/* | /* 针对嵌入的 ContributionScores 做极致简化:纯列表风格 */ | ||
/* 完全隐藏标题(如果有) */ | |||
.contributionscores-title { | .contributionscores-title { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 隐藏整个表头 */ | ||
.contributionscores .header, | .contributionscores .header, | ||
.contributionscores | .contributionscores thead, | ||
.contributionscores | .contributionscores tr th { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 去掉所有边框、背景、间距,让表格“消失” */ | ||
.contributionscores, | .contributionscores, | ||
.contributionscores table, | .contributionscores table, | ||
| 第413行: | 第415行: | ||
.contributionscores td { | .contributionscores td { | ||
border: none !important; | border: none !important; | ||
background: | background: transparent !important; | ||
padding: | padding: 2px 0 !important; /* 极小垂直间距 */ | ||
margin: 0 !important; | margin: 0 !important; | ||
line-height: 1.4 !important; | |||
} | } | ||
/* | /* 每行变块级,像普通段落或列表项 */ | ||
.contributionscores tr { | .contributionscores tr { | ||
display: block !important; | display: block !important; | ||
margin-bottom: | margin-bottom: 4px !important; /* 行间距自己控制 */ | ||
} | } | ||
.contributionscores td:first-child { | /* 隐藏 Rank 列(第一列) */ | ||
.contributionscores td:first-child { | |||
display: none !important; | display: none !important; | ||
} | } | ||
.contributionscores td:nth-child(2) { | /* 用户名列:加粗 + 颜色,inline 显示 */ | ||
.contributionscores td:nth-child(2) { /* 第2列:用户名 */ | |||
display: inline !important; | |||
font-weight: bold; | font-weight: bold; | ||
color: #1a3a6c; | color: #1a3a6c; | ||
margin-right: 10px !important; /* 用户名和分数间距 */ | |||
} | } | ||
.contributionscores td:nth-child(3) { | /* 分数列:灰色,inline */ | ||
.contributionscores td:nth-child(3) { /* 第3列:分数 */ | |||
display: inline !important; | display: inline !important; | ||
color: #718096; | color: #718096; | ||
font-weight: normal; | |||
} | } | ||
/* | /* 去掉奇偶行任何残留背景 */ | ||
.contributionscores .odd, | .contributionscores .odd, | ||
.contributionscores .even { | .contributionscores .even, | ||
.contributionscores tr:hover { | |||
background: none !important; | background: none !important; | ||
} | |||
/* 如果 wrapper 还有 padding/margin,强制去掉 */ | |||
.contributionscores-wrapper { | |||
padding: 0 !important; | |||
margin: 5px 0 !important; /* 只留一点上下外边距 */ | |||
border: none !important; | |||
} | } | ||