打开/关闭菜单
60
73
29
1.1K
武外梗百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
第394行: 第394行:
}
}


/* 适配主页的明星编辑表格 */
/* --- 明星编辑表格重塑 --- */
.hp-star-editors table.stats {
 
/* 1. 隐藏原始表格的表头和边框 */
.hp-scores-wrapper table.stats {
     width: 100% !important;
     width: 100% !important;
    border-collapse: collapse !important;
     border: none !important;
     border: none !important;
    background: transparent !important;
     margin: 0 !important;
     margin: 0 !important;
}
}


.hp-star-editors table.stats tr {
.hp-scores-wrapper table.stats th {
    display: none !important; /* 隐藏丑陋的表头 */
}
 
/* 2. 重塑每一行 */
.hp-scores-wrapper table.stats tr {
    display: flex;
    align-items: center;
    padding: 10px 0;
     border-bottom: 1px dashed #edf2f7;
     border-bottom: 1px dashed #edf2f7;
    background: transparent !important;
}
}


.hp-star-editors table.stats tr:last-child {
.hp-scores-wrapper table.stats tr:last-child {
     border-bottom: none;
     border-bottom: none;
}
}


.hp-star-editors table.stats th {
/* 3. 排名数字美化 (第一列) */
     display: none; /* 隐藏表头 */
.hp-scores-wrapper table.stats td:nth-child(1) {
    width: 28px;
    height: 28px;
    background: #1a3a6c;
    color: white !important;
    border-radius: 50%;
     display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
    margin-right: 12px;
    border: none !important;
}
}


.hp-star-editors table.stats td {
/* 给前三名上色 */
    padding: 10px 5px !important;
.hp-scores-wrapper table.stats tr:nth-child(1) td:nth-child(1) { background: #ffd700; } /* 金 */
    color: #4a5568 !important;
.hp-scores-wrapper table.stats tr:nth-child(2) td:nth-child(1) { background: #c0c0c0; } /* 银 */
    font-size: 0.95em !important;
.hp-scores-wrapper table.stats tr:nth-child(3) td:nth-child(1) { background: #cd7f32; } /* 铜 */
}


/* 排名数字圆圈化 */
/* 4. 用户名美化 (第二列) */
.hp-star-editors table.stats td:first-child {
.hp-scores-wrapper table.stats td:nth-child(2) {
     width: 24px;
     flex: 1;
     font-weight: bold;
     border: none !important;
     color: #1a3a6c;
     padding: 0 !important;
}
}


/* 用户名链接样式 */
.hp-scores-wrapper table.stats td:nth-child(2) a {
.hp-star-editors table.stats td a {
    font-weight: 600;
     color: #2d3748 !important;
     color: #2d3748 !important;
    font-weight: 600;
     text-decoration: none;
     text-decoration: none;
}
}


.hp-star-editors table.stats td a:hover {
/* 5. 分数/编辑数美化 (其他列) */
     color: #3182ce !important;
.hp-scores-wrapper table.stats td:nth-child(3),
.hp-scores-wrapper table.stats td:nth-child(4) {
    font-size: 0.8em;
     color: #718096;
    border: none !important;
    background: none !important;
}
}
/* 隐藏不需要的列(如果有的话) */
.hp-scores-wrapper table.stats td:empty { display: none; }