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

MediaWiki:Common.css:修订间差异

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


/* 隐藏 ContributionScores 的标题(如果有) */
/* --- 明星編輯板塊精確美化 --- */
.contributionscores-title {
    display: none !important;
}


/* 隐藏表头行(Rank / User / Score 等) */
/* 1. 強力隱藏表頭行(等級/分數/頁面數量/修改次數/用戶名稱) */
.contributionscores .header,
.hp-scores-wrapper table.contributionscores tr.header,  
.contributionscores tr th,
.hp-scores-wrapper table.contributionscores th,
.contributionscores thead {
.hp-scores-wrapper .contributionscores-title,
.hp-scores-wrapper .citizen-overflow-nav {
     display: none !important;
     display: none !important;
}
}


/* 去掉所有边框和背景,让它看起来像纯列表 */
/* 2. 重置容器結構 */
.contributionscores,
.hp-scores-wrapper .contributionscores-wrapper,
.contributionscores table,
.hp-scores-wrapper .citizen-overflow-wrapper,
.contributionscores tbody,
.hp-scores-wrapper .citizen-overflow-content,
.contributionscores tr,
.hp-scores-wrapper table.contributionscores {
.contributionscores td {
    display: block !important;
    background: transparent !important;
     border: none !important;
     border: none !important;
    background: none !important;
    padding: 4px 0 !important;  /* 缩小间距,更紧凑 */
     margin: 0 !important;
     margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
}


/* 只保留用户名和分数列的内容,模拟“用户名: 分数”格式 */
/* 3. 每一行的基礎樣式:取消背景、取消動畫 */
.contributionscores tr {
.hp-scores-wrapper table.contributionscores tbody {
     display: block !important;  /* 每行变块级,像列表 */
     display: block !important;
    margin-bottom: 6px !important;
}
}


.contributionscores td:first-child {  /* 隐藏 Rank 列(如果还剩) */
.hp-scores-wrapper table.contributionscores tr {
     display: none !important;
    display: flex !important;
    align-items: center;
    padding: 10px 0 !important;
    background: transparent !important; /* 無背景 */
    border: none !important;
    border-bottom: 1px solid #edf2f7 !important; /* 僅保留下邊框分割線 */
     transition: none !important; /* 無懸停動畫 */
}
 
.hp-scores-wrapper table.contributionscores tr:last-child {
    border-bottom: none !important;
}
}


.contributionscores td:nth-child(2) { /* 用户名列:加粗或样式 */
/* 4. 排名數字美化(圓圈標籤) */
.hp-scores-wrapper table.contributionscores td:nth-child(1) {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf2f7;
    color: #4a5568 !important;
    font-size: 0.85em;
     font-weight: bold;
     font-weight: bold;
     color: #1a3a6c;
     margin-right: 15px;
     display: inline !important;
     padding: 0 !important;
    border: none !important;
}
 
/* 5. 用戶名稱列:恢復原生連結樣式 */
.hp-scores-wrapper table.contributionscores td:nth-child(5) {
    flex: 1;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
}
}


.contributionscores td:nth-child(3) { /* 分数列 */
/* 6. 修改次數:顯示在右側 */
     display: inline !important;
.hp-scores-wrapper table.contributionscores td:nth-child(4) {
     color: #718096;
     font-size: 0.8em;
     margin-left: 8px !important;
    color: #a0aec0;
    padding: 0 !important;
     background: transparent !important;
     border: none !important;
}
}


/* 去掉奇偶行背景(.odd / .even) */
.hp-scores-wrapper table.contributionscores td:nth-child(4)::after {
.contributionscores .odd,
    content: " 次編輯";
.contributionscores .even {
}
     background: none !important;
 
/* 7. 隱藏不必要的數據列(分數與頁面數) */
.hp-scores-wrapper table.contributionscores td:nth-child(2),
.hp-scores-wrapper table.contributionscores td:nth-child(3) {
     display: none !important;
}
}