跳转到内容

MediaWiki:Gadget-ViewerMode.css

来自槌基百科
LocalAdmin留言 | 贡献2026年3月12日 (四) 09:57的版本 (读者模式切换 CSS)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* ViewerMode gadget — hides editing UI in visitor view */

/* Section [edit] links */
html.viewer-mode .mw-editsection {
    display: none !important;
}

/* Edit / View source / Visual edit page tabs */
html.viewer-mode #ca-edit,
html.viewer-mode #ca-ve-edit,
html.viewer-mode #ca-viewsource {
    display: none !important;
}

/* More actions menu (move, delete, protect...) */
html.viewer-mode #p-cactions {
    display: none !important;
}

/* Watch / Unwatch */
html.viewer-mode #ca-watch,
html.viewer-mode #ca-unwatch {
    display: none !important;
}

/* Vector 2022 sticky header edit button */
html.viewer-mode .vector-sticky-header-edit-icons {
    display: none !important;
}

/* Highlight toggle button when viewer mode is active */
html.viewer-mode #pt-viewer-mode a {
    color: #f0a500 !important;
    font-weight: bold;
}