MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第394行: | 第394行: | ||
} | } | ||
/* --- | /* --- 明星编辑板块深度美化 --- */ | ||
/* 1. | /* 1. 隐藏多余的插件默认标题和皮肤自带的导航 */ | ||
.hp-scores-wrapper table. | .hp-scores-wrapper .contributionscores-title, | ||
.hp-scores-wrapper .citizen-overflow-nav, | |||
.hp-scores-wrapper .header { | |||
display: none !important; | |||
} | |||
/* 2. 移除所有嵌套表格的背景、边框和滚动条限制 */ | |||
.hp-scores-wrapper .contributionscores-wrapper, | |||
.hp-scores-wrapper .citizen-overflow-wrapper, | |||
.hp-scores-wrapper .citizen-overflow-content, | |||
.hp-scores-wrapper table.contributionscores { | |||
display: block !important; | |||
background: transparent !important; | |||
border: none !important; | border: none !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | |||
width: 100% !important; | |||
overflow: visible !important; | |||
} | } | ||
.hp-scores-wrapper table. | /* 3. 将每一行 (tr) 变成一个弹性盒子 (Flexbox) */ | ||
display: | .hp-scores-wrapper table.contributionscores tbody { | ||
display: flex; | |||
flex-direction: column; | |||
gap: 10px; | |||
} | } | ||
.hp-scores-wrapper table.contributionscores tr { | |||
.hp-scores-wrapper table. | display: flex !important; | ||
display: flex; | |||
align-items: center; | align-items: center; | ||
padding: | padding: 12px 8px; | ||
border- | background: #f8fafc !important; /* 浅色底色 */ | ||
border-radius: 8px; | |||
border: 1px solid #edf2f7 !important; | |||
transition: transform 0.2s ease; | |||
} | } | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores tr:hover { | ||
border- | transform: translateX(5px); | ||
border-color: #cbd5e0 !important; | |||
} | } | ||
/* | /* 4. 排名样式 (第一列 td) */ | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores td:nth-child(1) { | ||
width: 28px; | width: 28px; | ||
height: 28px; | height: 28px; | ||
min-width: 28px; | |||
display: flex !important; | |||
display: flex; | |||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
border-radius: 50%; | |||
background: #a0aec0; | |||
color: white !important; | |||
font-weight: bold; | font-weight: bold; | ||
font-size: 0. | font-size: 0.85em; | ||
margin-right: | margin-right: 15px; | ||
padding: 0 !important; | |||
} | } | ||
/* | /* 前三名专属色 */ | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores tr:nth-of-type(1) td:nth-child(1) { background: #ecc94b !important; } /* 金 */ | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores tr:nth-of-type(2) td:nth-child(1) { background: #a0aec0 !important; } /* 银 */ | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores tr:nth-of-type(3) td:nth-child(1) { background: #ed8936 !important; } /* 铜 */ | ||
/* | /* 5. 用户名样式 (第五列 td) */ | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores td:nth-child(5) { | ||
flex: 1; | flex: 1; | ||
display: block !important; | |||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores td:nth-child(5) a { | ||
font-weight: 600; | font-weight: 600; | ||
color: #2d3748 !important; | color: #2d3748 !important; | ||
text-decoration: none; | text-decoration: none !important; | ||
} | } | ||
/* | /* 6. 修改次数样式 (第四列 td) */ | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores td:nth-child(4) { | ||
display: block !important; | |||
font-size: 0.8em; | font-size: 0.8em; | ||
color: #718096; | color: #718096; | ||
padding: 0 !important; | |||
} | |||
.hp-scores-wrapper table.contributionscores td:nth-child(4)::before { | |||
content: "贡献: "; | |||
} | } | ||
/* | /* 7. 隐藏不需要的列 (分数和页面数) */ | ||
.hp-scores-wrapper table. | .hp-scores-wrapper table.contributionscores td:nth-child(2), | ||
.hp-scores-wrapper table.contributionscores td:nth-child(3) { | |||
display: none !important; | |||
} | |||