MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
页面内容被替换为“→强行让系统公告栏可见,并铺满宽度: #siteNotice { display: block !important; visibility: visible !important; margin: 10px 0; width: 100%; }” 标签:替换 手工回退 已被回退 |
无编辑摘要 标签:手工回退 |
||
| 第5行: | 第5行: | ||
margin: 10px 0; | margin: 10px 0; | ||
width: 100%; | width: 100%; | ||
} | |||
/* ========================================== | |||
1. 评论区 (Yappin):普通用户隐藏,管理员可见 | |||
========================================== */ | |||
/* 默认对所有普通用户:禁掉评论区 IP 链接的悬停提示和点击 */ | |||
.comment-author.mw-userlink[href*="%E7%94%A8%E6%88%B7:"], | |||
.comment-author.mw-userlink[href*="User:"] { | |||
pointer-events: none !important; | |||
cursor: default !important; | |||
text-decoration: none !important; | |||
} | |||
/* 唯独对管理员(sysop):恢复点击和悬停,让管理员能看/能点 */ | |||
body.group-sysop .comment-author.mw-userlink[href*="%E7%94%A8%E6%88%B7:"], | |||
body.group-sysop .comment-author.mw-userlink[href*="User:"] { | |||
pointer-events: auto !important; | |||
cursor: pointer !important; | |||
text-decoration: underline !important; | |||
} | |||
/* ========================================== | |||
2. 论坛 (WikiForum) 隐蔽 IP 逻辑 | |||
========================================== */ | |||
/* (1) 对普通用户:把论坛发帖人中的 IP 链接隐藏掉或屏蔽 */ | |||
a.new[href*="123."], | |||
a.new[title^="用户讨论:"], | |||
a.new[title*="123."], | |||
p.mw-wikiforum-descr a[title*="."] { | |||
pointer-events: none !important; | |||
cursor: default !important; | |||
} | |||
/* 如果想彻底把论坛页面里显示的 IP 文字隐形(仅留“由”字和时间) */ | |||
/* 普通用户看不到 IP 数字: */ | |||
p.mw-wikiforum-descr a[title*="1"], | |||
p.mw-wikiforum-descr a[title*="2"], | |||
p.mw-wikiforum-descr a[title*="3"], | |||
p.mw-wikiforum-descr a[title*="4"], | |||
p.mw-wikiforum-descr a[title*="5"], | |||
p.mw-wikiforum-descr a[title*="6"], | |||
p.mw-wikiforum-descr a[title*="7"], | |||
p.mw-wikiforum-descr a[title*="8"], | |||
p.mw-wikiforum-descr a[title*="9"], | |||
p.mw-wikiforum-descr a[title*="0"] { | |||
font-size: 0 !important; /* 隐藏 IP 文字 */ | |||
} | |||
p.mw-wikiforum-descr a[title*="."]:before { | |||
content: "匿名用户"; /* 用“匿名用户”替换显示 */ | |||
font-size: 13px !important; /* 恢复字号 */ | |||
} | |||
/* (2) 只有管理员 (sysop) 才能看到真实 IP 并正常点击 */ | |||
body.group-sysop p.mw-wikiforum-descr a[title*="."] { | |||
font-size: inherit !important; | |||
pointer-events: auto !important; | |||
cursor: pointer !important; | |||
} | |||
body.group-sysop p.mw-wikiforum-descr a[title*="."]:before { | |||
content: "" !important; | |||
} | |||
/* 隐藏“最近更改”和历史页面中的匿名 IP 链接 */ | |||
.mw-userlink.mw-anonuserlink { | |||
display: none !important; | |||
} | } | ||
2026年8月16日 (日) 19:37的版本
/* 强行让系统公告栏可见,并铺满宽度 */
#siteNotice {
display: block !important;
visibility: visible !important;
margin: 10px 0;
width: 100%;
}
/* ==========================================
1. 评论区 (Yappin):普通用户隐藏,管理员可见
========================================== */
/* 默认对所有普通用户:禁掉评论区 IP 链接的悬停提示和点击 */
.comment-author.mw-userlink[href*="%E7%94%A8%E6%88%B7:"],
.comment-author.mw-userlink[href*="User:"] {
pointer-events: none !important;
cursor: default !important;
text-decoration: none !important;
}
/* 唯独对管理员(sysop):恢复点击和悬停,让管理员能看/能点 */
body.group-sysop .comment-author.mw-userlink[href*="%E7%94%A8%E6%88%B7:"],
body.group-sysop .comment-author.mw-userlink[href*="User:"] {
pointer-events: auto !important;
cursor: pointer !important;
text-decoration: underline !important;
}
/* ==========================================
2. 论坛 (WikiForum) 隐蔽 IP 逻辑
========================================== */
/* (1) 对普通用户:把论坛发帖人中的 IP 链接隐藏掉或屏蔽 */
a.new[href*="123."],
a.new[title^="用户讨论:"],
a.new[title*="123."],
p.mw-wikiforum-descr a[title*="."] {
pointer-events: none !important;
cursor: default !important;
}
/* 如果想彻底把论坛页面里显示的 IP 文字隐形(仅留“由”字和时间) */
/* 普通用户看不到 IP 数字: */
p.mw-wikiforum-descr a[title*="1"],
p.mw-wikiforum-descr a[title*="2"],
p.mw-wikiforum-descr a[title*="3"],
p.mw-wikiforum-descr a[title*="4"],
p.mw-wikiforum-descr a[title*="5"],
p.mw-wikiforum-descr a[title*="6"],
p.mw-wikiforum-descr a[title*="7"],
p.mw-wikiforum-descr a[title*="8"],
p.mw-wikiforum-descr a[title*="9"],
p.mw-wikiforum-descr a[title*="0"] {
font-size: 0 !important; /* 隐藏 IP 文字 */
}
p.mw-wikiforum-descr a[title*="."]:before {
content: "匿名用户"; /* 用“匿名用户”替换显示 */
font-size: 13px !important; /* 恢复字号 */
}
/* (2) 只有管理员 (sysop) 才能看到真实 IP 并正常点击 */
body.group-sysop p.mw-wikiforum-descr a[title*="."] {
font-size: inherit !important;
pointer-events: auto !important;
cursor: pointer !important;
}
body.group-sysop p.mw-wikiforum-descr a[title*="."]:before {
content: "" !important;
}
/* 隐藏“最近更改”和历史页面中的匿名 IP 链接 */
.mw-userlink.mw-anonuserlink {
display: none !important;
}