跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
中医百科
搜索
搜索
登录
个人工具
登录
深色模式
查看“MediaWiki:Gadget-FloatTOC.css”的源代码
系统消息
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
清除缓存
常规
链入页面
相关更改
特殊页面
页面信息
页面值
←
MediaWiki:Gadget-FloatTOC.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
/** * SPDX-License-Identifier: GPL-3.0-or-later * _addText: '{{Gadget Header|license=GPL-3.0-or-later}}' * * @source {@link https://git.qiuwen.net.cn/InterfaceAdmin/QiuwenGadgets/src/branch/master/src/FloatTOC} * @author 安忆 <i@anyi.in> * @license GPL-3.0-or-later {@link https://www.qiuwenbaike.cn/wiki/H:GPL-3.0} */ /** * Copyright (C) 安忆 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * +------------------------------------------------------------+ * | === WARNING: GLOBAL GADGET FILE === | * +------------------------------------------------------------+ * | All changes should be made in the repository, | * | otherwise they will be lost. | * +------------------------------------------------------------+ * | Changes to this page may affect many users. | * | Please discuss changes by opening an issue before editing. | * +------------------------------------------------------------+ */ /* <nowiki> */ /* src/FloatTOC/FloatTOC.less */ #floatTOC { padding: 0.5rem; cursor: auto; } #floatTOC .toc { max-height: 80vh; padding-top: 0; margin: 0 auto; } .skin-vector-legacy #floatTOC .toc { display: block; max-height: 90vh; padding-top: 1em; font-size: 1em; word-break: normal; } #floatTOC .toc > ul { overflow: auto; max-height: 70vh; border-bottom: 1px solid #e6e6e6; } #floatTOC ul { padding-right: 1rem; } #floatTOC #close { position: relative; top: 1em; width: 1rem; height: 1rem; cursor: pointer; float: right; } #floatTOC #close:hover { filter: drop-shadow(0 0 1px #000); } .skin-vector-legacy #floatTOC #close { top: 0; } .mw-mmv-lightbox-open #floatTOC, .ve-activated #floatTOC { display: none !important; } #floatToc-opener { position: fixed; z-index: 13; top: 10.5vh; right: 2rem; display: flex; width: 2rem; height: 2rem; flex-wrap: wrap; align-content: center; justify-content: center; place-content: center center; align-items: center; padding: 0.5rem; border-radius: 25px; -webkit-backdrop-filter: saturate(50%) blur(16px); backdrop-filter: saturate(50%) blur(16px); background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1); cursor: pointer; font-size: 0.5rem; } @media screen and (max-width: 720px), screen and (max-height: 800px) { .citizen-body-header--sticky #floatToc-opener { top: 21vh; right: 1rem; } } #floatToc-opener:active { box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.1); } #floatToc-opener:hover { box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.1); } #floatToc-opener span { display: block; margin: auto; opacity: 0.6; text-align: center; } #floatToc-opener span:first-child { position: relative; width: 2.5em; height: 2.5em; } #floatToc-opener span:last-child { color: #000; } .ve-activated #floatToc-opener { display: none !important; } .skin-citizen #toc .toctitle { display: flex; align-items: baseline; cursor: pointer; } .skin-citizen #toc .toctitle h2 { flex: 1; } .skin-citizen #toc .toctitle .oo-ui-indicatorElement-indicator { position: relative; margin-left: -1.125rem; } .skin-citizen #toc .toctitle .oo-ui-indicatorElement-indicator.collapse { transform: rotate(180deg); }
该页面使用的模板:
Template:Gadget Header
(
查看源代码
)
返回
MediaWiki:Gadget-FloatTOC.css
。
开关有限宽度模式