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

MediaWiki:Common.css:修订间差异

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


/* 针对嵌入的 ContributionScores 做极致简化:纯列表风格 */
/* --- 明星編輯板塊精確美化 --- */


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


/* 隐藏整个表头 */
/* 2. 重置容器結構 */
.contributionscores .header,
.hp-scores-wrapper .contributionscores-wrapper,
.contributionscores thead,
.hp-scores-wrapper .citizen-overflow-wrapper,
.contributionscores tr th {
.hp-scores-wrapper .citizen-overflow-content,
     display: none !important;
.hp-scores-wrapper table.contributionscores {
}
     display: block !important;
 
    background: transparent !important;
/* 去掉所有边框、背景、间距,让表格“消失” */
.contributionscores,
.contributionscores table,
.contributionscores tbody,
.contributionscores tr,
.contributionscores td {
     border: none !important;
     border: none !important;
    background: transparent !important;
    padding: 2px 0 !important;          /* 极小垂直间距 */
     margin: 0 !important;
     margin: 0 !important;
     line-height: 1.4 !important;
     padding: 0 !important;
    overflow: visible !important;
}
}


/* 每行变块级,像普通段落或列表项 */
/* 3. 每一行的基礎樣式:取消背景、取消動畫 */
.contributionscores tr {
.hp-scores-wrapper table.contributionscores tbody {
     display: block !important;
     display: block !important;
    margin-bottom: 4px !important;      /* 行间距自己控制 */
}
}


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


/* 用户名列:加粗 + 颜色,inline 显示 */
.hp-scores-wrapper table.contributionscores tr:last-child {
.contributionscores td:nth-child(2) {   /* 第2列:用户名 */
     border-bottom: none !important;
    display: inline !important;
    font-weight: bold;
    color: #1a3a6c;
     margin-right: 10px !important;     /* 用户名和分数间距 */
}
}


/* 分数列:灰色,inline */
/* 4. 排名數字美化(圓圈標籤) */
.contributionscores td:nth-child(3) {   /* 第3列:分数 */
.hp-scores-wrapper table.contributionscores td:nth-child(1) {
     display: inline !important;
    width: 24px;
     color: #718096;
    height: 24px;
     font-weight: normal;
    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;
    margin-right: 15px;
    padding: 0 !important;
    border: none !important;
}
}


/* 去掉奇偶行任何残留背景 */
/* 5. 用戶名稱列:恢復原生連結樣式 */
.contributionscores .odd,
.hp-scores-wrapper table.contributionscores td:nth-child(5) {
.contributionscores .even,
    flex: 1;
.contributionscores tr:hover {
    padding: 0 !important;
     background: none !important;
     background: transparent !important;
    border: none !important;
    text-align: left !important;
}
}


/* 如果 wrapper 还有 padding/margin,强制去掉 */
/* 6. 修改次數:顯示在右側 */
.contributionscores-wrapper {
.hp-scores-wrapper table.contributionscores td:nth-child(4) {
    font-size: 0.8em;
    color: #a0aec0;
     padding: 0 !important;
     padding: 0 !important;
     margin: 5px 0 !important;           /* 只留一点上下外边距 */
     background: transparent !important;
     border: none !important;
     border: none !important;
}
.hp-scores-wrapper table.contributionscores td:nth-child(4)::after {
    content: " 次編輯";
}
/* 7. 隱藏不必要的數據列(分數與頁面數) */
.hp-scores-wrapper table.contributionscores td:nth-child(2),
.hp-scores-wrapper table.contributionscores td:nth-child(3) {
    display: none !important;
}
}