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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
 
(未显示同一用户的2个中间版本)
第394行: 第394行:
}
}


/* --- 明星编辑表格重塑 --- */
/* --- 明星編輯板塊精確美化 --- */


/* 1. 隐藏原始表格的表头和边框 */
/* 1. 強力隱藏表頭行(等級/分數/頁面數量/修改次數/用戶名稱) */
.hp-scores-wrapper table.stats {
.hp-scores-wrapper table.contributionscores tr.header,
     width: 100% !important;
.hp-scores-wrapper table.contributionscores th,
.hp-scores-wrapper .contributionscores-title,
.hp-scores-wrapper .citizen-overflow-nav {
    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;
    background: transparent !important;
     margin: 0 !important;
     margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
}


.hp-scores-wrapper table.stats th {
/* 3. 每一行的基礎樣式:取消背景、取消動畫 */
     display: none !important; /* 隐藏丑陋的表头 */
.hp-scores-wrapper table.contributionscores tbody {
     display: block !important;
}
}


/* 2. 重塑每一行 */
.hp-scores-wrapper table.contributionscores tr {
.hp-scores-wrapper table.stats tr {
     display: flex !important;
     display: flex;
     align-items: center;
     align-items: center;
     padding: 10px 0;
     padding: 10px 0 !important;
     border-bottom: 1px dashed #edf2f7;
    background: transparent !important; /* 無背景 */
     background: transparent !important;
    border: none !important;
     border-bottom: 1px solid #edf2f7 !important; /* 僅保留下邊框分割線 */
     transition: none !important; /* 無懸停動畫 */
}
}


.hp-scores-wrapper table.stats tr:last-child {
.hp-scores-wrapper table.contributionscores tr:last-child {
     border-bottom: none;
     border-bottom: none !important;
}
}


/* 3. 排名数字美化 (第一列) */
/* 4. 排名數字美化(圓圈標籤) */
.hp-scores-wrapper table.stats td:nth-child(1) {
.hp-scores-wrapper table.contributionscores td:nth-child(1) {
     width: 28px;
     width: 24px;
     height: 28px;
     height: 24px;
    background: #1a3a6c;
     min-width: 24px;
     color: white !important;
     display: flex !important;
    border-radius: 50%;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
    border-radius: 50%;
    background: #edf2f7;
    color: #4a5568 !important;
    font-size: 0.85em;
     font-weight: bold;
     font-weight: bold;
     font-size: 0.8em;
     margin-right: 15px;
     margin-right: 12px;
     padding: 0 !important;
     border: none !important;
     border: none !important;
}
}


/* 给前三名上色 */
/* 5. 用戶名稱列:恢復原生連結樣式 */
.hp-scores-wrapper table.stats tr:nth-child(1) td:nth-child(1) { background: #ffd700; } /* 金 */
.hp-scores-wrapper table.contributionscores td:nth-child(5) {
.hp-scores-wrapper table.stats tr:nth-child(2) td:nth-child(1) { background: #c0c0c0; } /* 银 */
.hp-scores-wrapper table.stats tr:nth-child(3) td:nth-child(1) { background: #cd7f32; } /* 铜 */
 
/* 4. 用户名美化 (第二列) */
.hp-scores-wrapper table.stats td:nth-child(2) {
     flex: 1;
     flex: 1;
    padding: 0 !important;
    background: transparent !important;
     border: none !important;
     border: none !important;
    text-align: left !important;
}
/* 6. 修改次數:顯示在右側 */
.hp-scores-wrapper table.contributionscores td:nth-child(4) {
    font-size: 0.8em;
    color: #a0aec0;
     padding: 0 !important;
     padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
}


.hp-scores-wrapper table.stats td:nth-child(2) a {
.hp-scores-wrapper table.contributionscores td:nth-child(4)::after {
    font-weight: 600;
     content: " 次編輯";
    color: #2d3748 !important;
     text-decoration: none;
}
}


/* 5. 分数/编辑数美化 (其他列) */
/* 7. 隱藏不必要的數據列(分數與頁面數) */
.hp-scores-wrapper table.stats td:nth-child(3),
.hp-scores-wrapper table.contributionscores td:nth-child(2),
.hp-scores-wrapper table.stats td:nth-child(4) {
.hp-scores-wrapper table.contributionscores td:nth-child(3) {
     font-size: 0.8em;
     display: none !important;
    color: #718096;
    border: none !important;
    background: none !important;
}
}
/* 隐藏不需要的列(如果有的话) */
.hp-scores-wrapper table.stats td:empty { display: none; }