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

MediaWiki:Common.css:修订间差异

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


/* --- 明星编辑板块深度美化 --- */
/* --- 明星编辑板块精简版 --- */


/* 1. 隐藏多余的插件默认标题和皮肤自带的导航 */
/* 1. 彻底去除表头、插件标题和皮肤自带的溢出导航按钮 */
.hp-scores-wrapper .contributionscores-title,
.hp-scores-wrapper .contributionscores-title,
.hp-scores-wrapper .citizen-overflow-nav,
.hp-scores-wrapper .citizen-overflow-nav,
第403行: 第403行:
}
}


/* 2. 移除所有嵌套表格的背景、边框和滚动条限制 */
/* 2. 重置容器:去除边框、背景、阴影和强制溢出限制 */
.hp-scores-wrapper .contributionscores-wrapper,
.hp-scores-wrapper .contributionscores-wrapper,
.hp-scores-wrapper .citizen-overflow-wrapper,
.hp-scores-wrapper .citizen-overflow-wrapper,
第413行: 第413行:
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
     width: 100% !important;
     box-shadow: none !important;
     overflow: visible !important;
     overflow: visible !important;
}
}


/* 3. 将每一行 (tr) 变成一个弹性盒子 (Flexbox) */
/* 3. 行布局重构:取消背景和动画 */
.hp-scores-wrapper table.contributionscores tbody {
.hp-scores-wrapper table.contributionscores tbody {
     display: flex;
     display: block !important;
    flex-direction: column;
    gap: 10px;
}
}


第427行: 第425行:
     display: flex !important;
     display: flex !important;
     align-items: center;
     align-items: center;
     padding: 12px 8px;
     padding: 8px 0 !important;
     background: #f8fafc !important; /* 浅色底色 */
     background: transparent !important; /* 取消背景 */
     border-radius: 8px;
     border: none !important; /* 取消边框 */
     border: 1px solid #edf2f7 !important;
     border-bottom: 1px solid #edf2f7 !important; /* 仅保留分割线 */
     transition: transform 0.2s ease;
     transition: none !important; /* 取消动画 */
}
}


.hp-scores-wrapper table.contributionscores tr:hover {
.hp-scores-wrapper table.contributionscores tr:last-child {
    transform: translateX(5px);
     border-bottom: none !important;
     border-color: #cbd5e0 !important;
}
}


/* 4. 排名样式 (第一列 td) */
/* 4. 排名数字样式:保留小圆圈,便于对齐 */
.hp-scores-wrapper table.contributionscores td:nth-child(1) {
.hp-scores-wrapper table.contributionscores td:nth-child(1) {
     width: 28px;
     width: 24px;
     height: 28px;
     height: 24px;
     min-width: 28px;
     min-width: 24px;
     display: flex !important;
     display: flex !important;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     border-radius: 50%;
     border-radius: 50%;
     background: #a0aec0;
     background: #edf2f7;
     color: white !important;
     color: #4a5568 !important;
    font-size: 0.8em;
     font-weight: bold;
     font-weight: bold;
    font-size: 0.85em;
     margin-right: 12px;
     margin-right: 15px;
     padding: 0 !important;
     padding: 0 !important;
    border: none !important;
    text-align: center !important;
}
}


/* 前三名专属色 */
/* 5. 用户名:恢复原生样式 */
.hp-scores-wrapper table.contributionscores tr:nth-of-type(1) td:nth-child(1) { background: #ecc94b !important; } /* 金 */
.hp-scores-wrapper table.contributionscores tr:nth-of-type(2) td:nth-child(1) { background: #a0aec0 !important; } /* 银 */
.hp-scores-wrapper table.contributionscores tr:nth-of-type(3) td:nth-child(1) { background: #ed8936 !important; } /* 铜 */
 
/* 5. 用户名样式 (第五列 td) */
.hp-scores-wrapper table.contributionscores td:nth-child(5) {
.hp-scores-wrapper table.contributionscores td:nth-child(5) {
     flex: 1;
     flex: 1;
    display: block !important;
     padding: 0 !important;
     padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
}
}


.hp-scores-wrapper table.contributionscores td:nth-child(5) a {
/* 6. 编辑次数:显示在右侧 */
    font-weight: 600;
    color: #2d3748 !important;
    text-decoration: none !important;
}
 
/* 6. 修改次数样式 (第四列 td) */
.hp-scores-wrapper table.contributionscores td:nth-child(4) {
.hp-scores-wrapper table.contributionscores td:nth-child(4) {
    display: block !important;
     font-size: 0.85em;
     font-size: 0.8em;
     color: #a0aec0;
     color: #718096;
     padding: 0 !important;
     padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
}


.hp-scores-wrapper table.contributionscores td:nth-child(4)::before {
.hp-scores-wrapper table.contributionscores td:nth-child(4)::after {
     content: "贡献: ";
     content: " 次编辑";
}
}