|
|
| 第394行: |
第394行: |
| } | | } |
|
| |
|
| /* 彻底摧毁 ContributionScores 表格外观 → 纯文本垂直列表 */ | | /* 适配主页的明星编辑表格 */ |
| | | .hp-star-editors table.stats { |
| .contributionscores-wrapper, | | width: 100% !important; |
| .contributionscores,
| | border-collapse: collapse !important; |
| .contributionscores table,
| |
| .contributionscores tbody, | |
| .contributionscores tr,
| |
| .contributionscores td,
| |
| .contributionscores .header,
| |
| .contributionscores .content,
| |
| .contributionscores .odd,
| |
| .contributionscores .even {
| |
| all: unset !important; /* 极端重置所有样式(现代浏览器支持好) */ | |
| border: none !important; | | border: none !important; |
| background: transparent !important;
| |
| box-shadow: none !important;
| |
| padding: 0 !important;
| |
| margin: 0 !important; | | margin: 0 !important; |
| display: block !important; /* 强制块级 */
| |
| width: 100% !important;
| |
| } | | } |
|
| |
|
| /* 隐藏标题、表头、排名列 */
| | .hp-star-editors table.stats tr { |
| .contributionscores-title, | | border-bottom: 1px dashed #edf2f7; |
| .contributionscores .header, | |
| .contributionscores thead,
| |
| .contributionscores tr th,
| |
| .contributionscores td:first-child { /* 隐藏 Rank 列 */
| |
| display: none !important; | |
| } | | } |
|
| |
|
| /* 每行 tr 强制独立块 + 间距 */
| | .hp-star-editors table.stats tr:last-child { |
| .contributionscores tr { | | border-bottom: none; |
| display: block !important;
| |
| margin: 8px 0 !important; /* 行与行之间空8px,可调小到4px */
| |
| line-height: 1.4 !important;
| |
| white-space: normal !important; /* 允许正常换行 */ | |
| } | | } |
|
| |
|
| /* 用户名列(通常第2列) */
| | .hp-star-editors table.stats th { |
| .contributionscores td:nth-child(2) { | | display: none; /* 隐藏表头 */ |
| display: inline !important; | |
| font-weight: bold !important;
| |
| color: #1a3a6c !important;
| |
| margin-right: 12px !important; /* 用户名后空12px */
| |
| white-space: nowrap !important; /* 用户名不换行 */
| |
| } | | } |
|
| |
|
| /* 分数列(通常第3列) */
| | .hp-star-editors table.stats td { |
| .contributionscores td:nth-child(3) { | | padding: 10px 5px !important; |
| display: inline !important; | | color: #4a5568 !important; |
| color: #718096 !important; | | font-size: 0.95em !important; |
| font-weight: normal !important; | |
| } | | } |
|
| |
|
| /* 隐藏任何多余列(如果有真实姓名等) */ | | /* 排名数字圆圈化 */ |
| .contributionscores td:nth-child(n+4) { | | .hp-star-editors table.stats td:first-child { |
| display: none !important; | | width: 24px; |
| | font-weight: bold; |
| | color: #1a3a6c; |
| } | | } |
|
| |
|
| /* 防止任何 hover 或残留背景 */ | | /* 用户名链接样式 */ |
| .contributionscores tr:hover, | | .hp-star-editors table.stats td a { |
| .contributionscores td:hover { | | color: #2d3748 !important; |
| background: none !important; | | font-weight: 600; |
| | text-decoration: none; |
| } | | } |
|
| |
|
| /* wrapper 强制无边距无框 */
| | .hp-star-editors table.stats td a:hover { |
| .contributionscores-wrapper { | | color: #3182ce !important; |
| padding: 0 !important; | |
| margin: 6px 0 !important; /* 与模块标题隔开一点 */
| |
| border: none !important;
| |
| overflow: visible !important;
| |
| } | | } |