|
|
| 第1行: |
第1行: |
| /* 1. 重置“编辑源代码”图标为括号 */
| |
| .mw-editsection-code::before {
| |
| content: "{ }" !important; /* 强制替换为大括号 */
| |
| font-family: monospace !important; /* 使用等宽字体让它更像代码 */
| |
| font-weight: bold;
| |
| margin-right: 4px;
| |
| font-size: 1.1em; /* 稍微放大括号 */
| |
| -webkit-mask-image: none !important; /* 关键:取消 Citizens 可能存在的图标遮罩 */
| |
| background-color: transparent !important; /* 取消背景遮罩色 */
| |
| display: inline-block;
| |
| }
| |
|
| |
|
| /* 2. 可选:为“编辑源代码”添加特定的颜色区分 */
| |
| .mw-editsection-code {
| |
| color: var(--color-base-60) !important; /* 使用稍浅的颜色 */
| |
| }
| |
|
| |
| /* 3. 如果你想让“编辑”也变成括号(例如中括号) */
| |
| /*
| |
| .mw-editsection-visualeditor::before {
| |
| content: "[ ]" !important;
| |
| font-family: monospace !important;
| |
| -webkit-mask-image: none !important;
| |
| }
| |
| */
| |