匿名
未登录
中文(简体)
登录
Dhamma.cn
搜索
有觉性 以安住且中立的心 照见身心的实相
查看“︁MediaWiki:Common.css”︁的源代码
来自Dhamma.cn
命名空间
系统消息
讨论
更多
更多
页面操作
阅读
查看源代码
历史
刷新
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 这里放置的CSS将应用于所有皮肤 */ /* 1. 隐藏非登录用户的工具箱特定项目 */ body:not(.user-logged-in) #t-whatlinkshere, /* 链入页面 */ body:not(.user-logged-in) #t-recentchangeslinked, /* 相关更改 */ body:not(.user-logged-in) #t-permalink, /* 固定链接 */ body:not(.user-logged-in) #t-info, /* 页面信息 */ body:not(.user-logged-in) #t-log { /* 页面日志 */ display: none !important; } /* 2. 隐藏页面操作按钮 */ body.page-Main_Page li#ca-talk { display: none !important; } #ca-talk { display: none !important; } #ca-viewsource { display: none !important; } #ca-view { display: none !important; } #ca-delete { display: none !important; } #ca-history { display: none !important; } #ca-nstab-main { display: none !important; } /* #ca-watch { display: none !important; } */ /* li#ca-edit { display: none; } */ /* 3. 去除"关于此IP地址的讨论"按钮 */ #p-personal #pt-anonuserpage { display: none; } /* 4. 基础排版与分类隐藏 */ .catlinks { display: none; } body { font-size: 16px; line-height: 1.6em; } /* =================================================== 5. 视频容器与遮罩配置 =================================================== */ .embedvideo, .embedvideo-container, .mediaContainer, .thumbinner { width: 100% !important; max-width: 800px !important; margin: 15px auto !important; float: none !important; } .embedvideo video, .mediaContainer video, .thumbinner video, video.mw-file-element, video { width: 100% !important; height: auto !important; display: block !important; } .embedvideo-overlay, .embedvideo-consent-overlay, .embedvideo-header, .embedvideo-title, .embedvideo-service { display: none !important; } /* =================================================== 6. 页脚 Footer 样式调整 =================================================== */ #mw-footer, #footer, .mw-footer { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; width: 100% !important; max-width: 100% !important; margin: 0 auto !important; padding: 20px 0 24px 0 !important; box-sizing: border-box !important; border-top: none !important; border-bottom: none !important; } #mw-footer *, #footer *, .mw-footer * { float: none !important; grid-column: auto !important; } #mw-footer #p-footertext, #mw-footer #p-places, #mw-footer #p-footer-icons, #mw-footer .mw-footer-container { display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: none !important; } #footer-info-lastmod, .footer-info-lastmod, li#footer-info-lastmod, [id*="lastmod"], .mw-footer-lastmod { display: none !important; } #footer-info, #p-footertext { order: 1 !important; font-size: 0.85em !important; display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 2px !important; margin: 0 0 3px 0 !important; padding: 0 !important; list-style: none !important; width: 100% !important; } #footer-info *, #p-footertext *, #footer-places * { font-size: inherit !important; line-height: 1.25 !important; } #footer-info-viewcount { order: 1 !important; margin: 0 !important; color: rgba(255, 255, 255, 0.7) !important; display: block !important; text-align: center !important; } #footer-info-copyright { order: 2 !important; margin: 0 !important; color: rgba(255, 255, 255, 0.8) !important; display: block !important; text-align: center !important; } #footer-places, #p-places, #f-list { order: 2 !important; font-size: 0.85em !important; display: flex !important; flex-direction: row !important; justify-content: center !important; align-items: center !important; flex-wrap: wrap !important; width: 100% !important; padding: 0 !important; margin: 3px auto !important; list-style: none !important; gap: 16px !important; } #footer-places ul, #p-places ul { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 16px !important; padding: 0 !important; margin: 0 !important; list-style: none !important; } #footer-places li, #p-places li { display: inline-flex !important; margin: 0 !important; padding: 0 !important; } #footer-places a, #p-places a { color: rgba(255, 255, 255, 0.95) !important; text-decoration: none !important; } #footer-icons, #p-footer-icons, #f-poweredbyico, .footer-icons { order: 3 !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; gap: 35px !important; margin: 3px auto 0 auto !important; padding-top: 16px !important; position: relative !important; list-style: none !important; width: 100% !important; } #p-footer-icons ul, #footer-icons ul { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 35px !important; padding: 0 !important; margin: 0 !important; list-style: none !important; } #footer-icons::before, #p-footer-icons::before, #f-poweredbyico::before { content: "" !important; position: absolute !important; top: 0 !important; left: 50% !important; transform: translateX(-50%) !important; width: 200px !important; height: 1px !important; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important; } #footer-icons li, #footer-icons a, #p-footer-icons li, #p-footer-icons a, .footer-icons li, .footer-icons a { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: auto !important; height: auto !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: none !important; box-shadow: none !important; } #footer-icons img, #p-footer-icons img, #f-poweredbyico img, .footer-icons img { background-color: #ffffff !important; border-radius: 6px !important; box-sizing: border-box !important; object-fit: contain !important; display: block !important; opacity: 0.88; transition: all 0.25s ease-in-out !important; } #footer-icons img:hover, #p-footer-icons img:hover, .footer-icons img:hover { opacity: 1 !important; transform: translateY(-2px) scale(1.04) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important; } @media screen and (min-width: 769px) { #footer-icons img, #p-footer-icons img, .footer-icons img { height: 28px !important; padding: 3px 8px !important; } } @media screen and (max-width: 768px) { #footer-icons, #p-footer-icons, .footer-icons { gap: 10px !important; } #footer-icons img, #p-footer-icons img, .footer-icons img { height: 32px !important; padding: 4px 10px !important; } } /* =================================================== 强制隐藏 Special:Search 页面顶部的“高级”标签及下方的命名空间选择框 =================================================== */ /* 1. 隐藏顶部的“高级”选项卡 */ .mw-search-profile-advanced, a[href*="profile=advanced"] { display: none !important; } /* 2. 隐藏下方展开的“搜索命名空间”复选框区域 */ #mw-searchoptions, .mw-search-namespaces, .mw-search-form-optional { display: none !important; } /* 隐藏“差异”与“历史”对比链接 */ .clean-recent-changes .mw-changeslist-links, .clean-recent-changes .mw-changeslist-diff, .clean-recent-changes .mw-changeslist-history { display: none !important; } /* 隐藏用户名及用户工具链接(如:讨论 | 贡献) */ .clean-recent-changes .mw-userlink, .clean-recent-changes .mw-usertoollinks { display: none !important; } /* 隐藏多余的分隔符号(如圆点 · 或竖线 |) */ .clean-recent-changes .mw-changeslist-separator { display: none !important; } /* 隐藏修改字节数增减提示(如 +120 / -45) */ .clean-recent-changes .mw-plusminus-pos, .clean-recent-changes .mw-plusminus-neg, .clean-recent-changes .mw-plusminus-null { display: none !important; } /* 隐藏编辑摘要与评论 */ .clean-recent-changes .comment, .clean-recent-changes .mw-changeslist-comment { display: none !important; } /* 隐藏“新”、“小”等变更标记 */ .clean-recent-changes .minoredit, .clean-recent-changes .botedit, .clean-recent-changes .newpage { display: none !important; } /* ========================================================= Dhamma.cn 阅读显示设置 MediaWiki 1.43 配合 MediaWiki:Common.js 使用 ========================================================= */ /* --------------------------------------------------------- 1. 阅读区域 CSS 变量 --------------------------------------------------------- */ :root { --reader-bg: #ffffff; --reader-text: #222222; --reader-link: #3366cc; --reader-font-size: 18px; --reader-line-height: 1.9; --reader-max-width: 900px; --reader-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif; --reader-transition: 0.25s ease; } /* --------------------------------------------------------- 2. 正文阅读区域 --------------------------------------------------------- */ /* * .mw-body-content * 是 MediaWiki 页面主要正文区域。 */ .mw-body-content { font-family: var(--reader-font-family); font-size: var(--reader-font-size); line-height: var(--reader-line-height); color: var(--reader-text); transition: font-size var(--reader-transition), line-height var(--reader-transition), color var(--reader-transition); } /* * 只限制正文中的主要内容宽度。 */ .mw-body-content > * { max-width: var(--reader-max-width); } /* * 段落阅读效果 */ .mw-body-content p { line-height: var(--reader-line-height); margin-top: 0.8em; margin-bottom: 0.8em; } /* * 标题 */ .mw-body-content h1, .mw-body-content h2, .mw-body-content h3, .mw-body-content h4, .mw-body-content h5, .mw-body-content h6 { color: var(--reader-text); line-height: 1.45; } /* --------------------------------------------------------- 3. 页面背景 --------------------------------------------------------- */ /* * 注意: * 不直接修改整个 body 的背景, * 避免破坏 MediaWiki 的导航、侧栏等 UI。 */ body.reader-theme-default { --reader-bg: #ffffff; --reader-text: #222222; --reader-link: #3366cc; } body.reader-theme-cream { --reader-bg: #f7f3e8; --reader-text: #33302a; --reader-link: #596b45; } body.reader-theme-zen { --reader-bg: #eef2eb; --reader-text: #29332c; --reader-link: #4d6b57; } body.reader-theme-dark { --reader-bg: #202124; --reader-text: #e5e5e5; --reader-link: #9ab4d6; } /* * 阅读区域背景。 * * 不建议直接: * body { background: ... } * * 因为可能影响 Vector / Minerva / 其他 skin。 */ body.reader-theme-default .mw-body, body.reader-theme-cream .mw-body, body.reader-theme-zen .mw-body, body.reader-theme-dark .mw-body { background-color: var(--reader-bg); color: var(--reader-text); transition: background-color var(--reader-transition), color var(--reader-transition); } /* --------------------------------------------------------- 4. 链接 --------------------------------------------------------- */ body.reader-theme-cream .mw-body-content a { color: var(--reader-link); } body.reader-theme-zen .mw-body-content a { color: var(--reader-link); } body.reader-theme-dark .mw-body-content a { color: var(--reader-link); } /* --------------------------------------------------------- 5. 引用区块 --------------------------------------------------------- */ body.reader-theme-cream .mw-body-content blockquote, body.reader-theme-zen .mw-body-content blockquote { border-left: 4px solid #879b88; padding-left: 1em; color: var(--reader-text); } body.reader-theme-dark .mw-body-content blockquote { border-left: 4px solid #68758a; padding-left: 1em; color: var(--reader-text); } /* --------------------------------------------------------- 6. 阅读设置按钮 --------------------------------------------------------- */ #reader-settings-button { position: fixed !important; right: 22px !important; bottom: 22px !important; width: 48px !important; height: 48px !important; min-width: 48px; min-height: 48px; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; border: 1px solid rgba(0, 0, 0, 0.12) !important; background: rgba(255, 255, 255, 0.96) !important; color: #444 !important; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16); cursor: pointer; z-index: 2147483647 !important; font-size: 22px; line-height: 1; display: flex !important; align-items: center; justify-content: center; visibility: visible !important; opacity: 1 !important; box-sizing: border-box; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; } /* --------------------------------------------------------- 夜间模式按钮 --------------------------------------------------------- */ body.reader-theme-dark #reader-settings-button { background: #303134; color: #eeeeee; border-color: rgba(255, 255, 255, 0.15); } /* --------------------------------------------------------- 7. 设置面板 --------------------------------------------------------- */ #reader-settings-panel { position: fixed; right: 22px; bottom: 82px; width: 320px; background: rgba(255, 255, 255, 0.98); color: #222; border-radius: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20); border: 1px solid rgba(0, 0, 0, 0.10); padding: 20px; z-index: 10001; box-sizing: border-box; display: none; font-size: 14px; backdrop-filter: blur(10px); } #reader-settings-panel.reader-settings-open { display: block; animation: readerSettingsFadeIn 0.18s ease; } @keyframes readerSettingsFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* --------------------------------------------------------- 夜间设置面板 --------------------------------------------------------- */ body.reader-theme-dark #reader-settings-panel { background: #2b2c2f; color: #eeeeee; border-color: rgba(255, 255, 255, 0.12); } /* --------------------------------------------------------- 8. 面板标题 --------------------------------------------------------- */ .reader-settings-title { font-size: 18px; font-weight: 600; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.10); } body.reader-theme-dark .reader-settings-title { border-bottom-color: rgba(255, 255, 255, 0.12); } /* --------------------------------------------------------- 9. 设置项目 --------------------------------------------------------- */ .reader-setting-group { margin-bottom: 20px; } .reader-setting-label { display: block; margin-bottom: 9px; font-weight: 600; } /* --------------------------------------------------------- 10. 主题按钮 --------------------------------------------------------- */ .reader-theme-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; } .reader-theme-button { height: 38px; border-radius: 8px; border: 1px solid #d5d5d5; cursor: pointer; font-size: 12px; background: #fff; color: #333; } .reader-theme-button:hover { border-color: #888; } .reader-theme-button.active { border: 2px solid #4d6b57; font-weight: 600; } /* 主题预览 */ .reader-theme-default-button { background: #ffffff; } .reader-theme-cream-button { background: #f7f3e8; } .reader-theme-zen-button { background: #eef2eb; } .reader-theme-dark-button { background: #202124; color: #eeeeee; } /* --------------------------------------------------------- 11. 滑块 --------------------------------------------------------- */ .reader-range-row { display: flex; align-items: center; gap: 10px; } .reader-range { flex: 1; width: 100%; cursor: pointer; } .reader-range-value { min-width: 48px; text-align: right; font-size: 13px; opacity: 0.75; } /* --------------------------------------------------------- 12. 字体按钮 --------------------------------------------------------- */ .reader-font-buttons { display: flex; gap: 7px; flex-wrap: wrap; } .reader-font-button { padding: 7px 10px; border-radius: 7px; border: 1px solid #d5d5d5; background: transparent; color: inherit; cursor: pointer; font-size: 13px; } .reader-font-button.active { border-color: #4d6b57; background: rgba(77, 107, 87, 0.10); font-weight: 600; } /* --------------------------------------------------------- 13. 恢复默认按钮 --------------------------------------------------------- */ #reader-settings-reset { width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px; border: 1px solid #ccc; background: transparent; color: inherit; cursor: pointer; font-size: 14px; } #reader-settings-reset:hover { background: rgba(0, 0, 0, 0.05); } body.reader-theme-dark #reader-settings-reset:hover { background: rgba(255, 255, 255, 0.08); } /* --------------------------------------------------------- 14. 移动端 --------------------------------------------------------- */ @media (max-width: 600px) { #reader-settings-button { right: 14px; bottom: 14px; width: 44px; height: 44px; font-size: 20px; } #reader-settings-panel { right: 12px; bottom: 70px; width: calc(100vw - 24px); max-width: 360px; padding: 17px; } .reader-theme-buttons { grid-template-columns: repeat(4, 1fr); } .mw-body-content { font-size: var(--reader-font-size); } } /* --------------------------------------------------------- 15. 打印时隐藏阅读设置 --------------------------------------------------------- */ @media print { #reader-settings-button, #reader-settings-panel { display: none !important; } } <div class="dpl-two-columns"> <div class="dpl-column"> ===== 最新法谈 ===== {{#dpl: |category = 隆波帕默尊者 |namespace = Main |ordermethod = lastedit |order = descending |count = 9 |format = ,\n* [[%PAGE%]],\n }} </div> <div class="dpl-column"> ===== 口译全篇 ===== {{#dpl: |category = 法谈文字全篇 |namespace = Main |ordermethod = lastedit |order = descending |count = 9 |format = ,\n* [[%PAGE%]],\n }} </div> </div>
返回
MediaWiki:Common.css
。
导航
导航
首页
随机页面
wiki工具
wiki工具
上传文件
特殊页面
获取短链接
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志