跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
分类索引
特色内容
新闻动态
随机条目
联络我们
关于维基百科
贡献
帮助
维基社群
编辑入门
互助客栈
IRC即时聊天
最近更改
特殊页面
搜索
搜索
外观
资助维基百科
创建账号
登录
个人工具
资助维基百科
创建账号
登录
查看“︁Module:Graph/style.css”︁的源代码
添加语言
模块
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
上传文件
页面信息
获取短链接
在其他项目中
外观
移至侧栏
隐藏
←
Module:Graph/style.css
根据以下的原因,您并无权限去编辑该页面:
本页当前被
半保护
,只有
自动确认用户
才能编辑。
为何会出现这种情况?
大部分页面均可进行编辑,只有少数页面会受到
半保护
以阻止进一步的
破坏
。
关于本页被保护的理由、时间和类型,請参看
本页的保护日志
。如果未能在保护日志中查阅,本页可能是在保护之后被
移动
。
我现在可以做些什么?
如果您有账号,请先
登录
再进行编辑。如果您还没有账号,可以
现在就注册一个
。
注册满7天且编辑次数满50次
的用户可以编辑半保护的页面。
您可以
和其他人讨论此页
。如果您无法编辑讨论页,请到
互助客栈
求助。
在讨论页提出一个编辑请求,让
自动确认用户
将您想要更改的内容提交上去。
若您想移动本页,请按照
Wikipedia:移动请求
的说明提出。
申请解除页面保护。
请注意提出请求时须附有合理原因,否则管理员很可能会拒绝您的请求。
提出代为编辑请求
撰写草稿
提出解除页面保护
您可以查看和复制此页面的源代码。
/* Module:Graph/style.css */ .svg-graph { position: relative; display: inline-block; max-width: 100%; line-height: 0; vertical-align: middle; box-sizing: border-box; } .svg-graph img.graph-chart-svg, .svg-graph img.graph-map-svg { display: block; width: 100%; height: auto; max-width: none; margin: 0; padding: 0; } .svg-graph .gr-ov { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; } /* 文字疊層基礎與對齊錨點類別 */ .svg-graph .gr-t { position: absolute; font-family: sans-serif; font-size: 11px; color: #54595d; line-height: 1; white-space: nowrap; transform-origin: 0 0; } .svg-graph .gr-ts { transform: translate(0%, -80%); } .svg-graph .gr-tm { transform: translate(-50%, -80%); } .svg-graph .gr-te { transform: translate(-100%, -80%); } .svg-graph .gr-b { font-weight: bold; } /* 數值標籤與地圖標籤防撞色光暈 */ .svg-graph .gr-halo { text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff, 0 0 3px #ffffff; } /* 彩色徽章座標軸與深色背景專用黑邊光暈 */ .svg-graph .gr-halo-dark { text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000; } /* 偽互動:點狀感應區 (折線點、氣泡、圓餅扇區、雷達頂點、地圖國家中心) */ .svg-graph .gr-hit { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; cursor: pointer; z-index: 3; transition: background-color 0.15s ease, box-shadow 0.15s ease; } .svg-graph .gr-hit:hover, .svg-graph .gr-hit:focus { background-color: rgba(31, 119, 180, 0.25); box-shadow: 0 0 0 2px rgba(31, 119, 180, 0.45); z-index: 20; outline: none; } /* 偽互動:矩形感應區 (長條圖、箱形圖、甘特圖、熱圖、靜態氣候區間) */ .svg-graph .gr-hbar { position: absolute; cursor: pointer; z-index: 3; border-radius: 2px; transition: background-color 0.12s ease, outline 0.12s ease; } .svg-graph .gr-hbar:hover, .svg-graph .gr-hbar:focus { background-color: rgba(255, 255, 255, 0.22); outline: 1.5px solid rgba(32, 33, 34, 0.55); z-index: 20; } /* QR Code 大網格感應區 (隱藏本身邊框與底色,改由後方的全局外框發光) */ .svg-graph .gr-hbar.gr-macro-hit:hover, .svg-graph .gr-hbar.gr-macro-hit:focus { outline: none; background-color: transparent; } /* 熱圖 10x10 大網格感應區:平時透明不遮擋底層 SVG,懸停時渲染出加權平均色塊與邊框 */ .svg-graph .gr-hbar.gr-hm-macro { opacity: 0; transition: opacity 0.15s ease; } .svg-graph .gr-hbar.gr-hm-macro:hover, .svg-graph .gr-hbar.gr-hm-macro:focus { opacity: 1; outline: 1.5px solid rgba(32, 33, 34, 0.65); z-index: 20; } /* 極座標扇形感應區:外層不裁切 Tooltip,內層多邊形精準裁切扇形感應與高亮範圍 */ .svg-graph .gr-hbar.gr-polar-hit, .svg-graph .gr-hbar.gr-polar-hit:hover, .svg-graph .gr-hbar.gr-polar-hit:focus { background-color: transparent; outline: none; } .svg-graph .gr-polar-poly { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: background-color 0.12s ease; } .svg-graph .gr-hbar.gr-polar-hit:hover .gr-polar-poly, .svg-graph .gr-hbar.gr-polar-hit:focus .gr-polar-poly { background-color: rgba(255, 255, 255, 0.28); } /* QR Code 全圖互動外框 (配合 inline pointer-events: none 穿透滑鼠) */ .svg-graph .gr-qr-frame { position: absolute; box-sizing: border-box; border: 2px solid rgba(31, 119, 180, 0.85); /* 亮藍色選中框 */ background-color: rgba(255, 255, 255, 0.15); /* 微微的白色反光 */ opacity: 0; transition: opacity 0.15s ease; z-index: 10; } /* 利用兄弟選擇器:只要任何一個大網格感應區被 Hover,就點亮後方的全局外框 */ .svg-graph .gr-macro-hit:hover ~ .gr-qr-frame, .svg-graph .gr-macro-hit:focus ~ .gr-qr-frame { opacity: 1; } /* 懸停提示框 (Tooltip) 主體與邊界自適應方向 */ .svg-graph .gr-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background-color: rgba(255, 255, 255, 0.96); color: #202122; border: 1px solid #a2a9b1; border-radius: 4px; padding: 4px 8px; font-family: sans-serif; font-size: 11px; line-height: 1.4; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); z-index: 30; } .svg-graph .gr-tip-b { bottom: auto; top: calc(100% + 6px); } .svg-graph .gr-tip-l { left: 0; transform: none; } .svg-graph .gr-tip-r { left: auto; right: 0; transform: none; } .svg-graph .gr-hit:hover .gr-tip, .svg-graph .gr-hit:focus .gr-tip, .svg-graph .gr-hbar:hover .gr-tip, .svg-graph .gr-hbar:focus .gr-tip { display: block; } /* 提示框內的色塊圓點與自訂形狀 SVG 圖示 */ .svg-graph .gr-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; } .svg-graph img.gr-swatch-img { display: inline-block; width: 18px; height: 18px; max-width: none; margin: 0 5px 0 0; padding: 0; vertical-align: middle; } /* 2D 資料點與圖例上的維基圖片 (PNG/JPG/GIF) 疊層定位 */ .svg-graph .gr-sym-img { position: absolute; transform: translate(-50%, -50%); line-height: 0; z-index: 2; user-select: none; } .svg-graph .gr-sym-img img { display: block; margin: 0; padding: 0; } /* Tooltip 內的維基圖片縮圖容器 */ .svg-graph .gr-swatch-file { display: inline-block; margin-right: 5px; line-height: 0; vertical-align: middle; } .svg-graph .gr-swatch-file img { display: inline-block; vertical-align: middle; } /* 區間浮動長條圖:雙 SVG 長卷軸同步巡航與懸停暫停 */ @keyframes gr-rr-pan { 0%, 1.5% { transform: translateX(-100%); } 49%, 51% { transform: translateX(0%); } 98.5%, 100% { transform: translateX(-100%); } } @keyframes gr-rr-win { 0%, 1.5% { transform: translateX(100%); } 49%, 51% { transform: translateX(0%); } 98.5%, 100% { transform: translateX(100%); } } .svg-graph .gr-rr-vp, .svg-graph .gr-rr-ov-vp { position: absolute; overflow: hidden; } .svg-graph .gr-rr-pan-mover { position: relative; height: 100%; animation: gr-rr-pan 60s ease-in-out infinite; } .svg-graph .gr-rr-win-mover { position: relative; height: 100%; animation: gr-rr-win 60s ease-in-out infinite; } .svg-graph:hover .gr-rr-pan-mover, .svg-graph:hover .gr-rr-win-mover { animation-play-state: paused; } .svg-graph .gr-rr-track { position: relative; height: 100%; } .svg-graph .gr-rr-win { height: 100%; background-color: rgba(51, 51, 51, 0.16); border: 1.2px solid #54595d; box-sizing: border-box; } /* 進場動效 (Entry Animations) */ @keyframes gr-fade-in { 0% { opacity: 0; transform: translateY(5px); } 100% { opacity: 1; transform: translateY(0); } } @keyframes gr-grow-y { 0% { opacity: 0; transform: scaleY(0.86); } 100% { opacity: 1; transform: scaleY(1); } } @keyframes gr-radial-in { 0% { opacity: 0; transform: scale(0.84) rotate(-6deg); } 100% { opacity: 1; transform: scale(1) rotate(0deg); } } @keyframes gr-ov-in { 0% { opacity: 0; } 100% { opacity: 1; } } .svg-graph.gr-anim-fade > img.graph-chart-svg, .svg-graph.gr-anim-fade > img.graph-map-svg { animation: gr-fade-in 0.5s ease-out both; } .svg-graph.gr-anim-grow > img.graph-chart-svg { transform-origin: 50% 85%; animation: gr-grow-y 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; } .svg-graph.gr-anim-radial > img.graph-chart-svg { transform-origin: 45% 50%; animation: gr-radial-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; } .svg-graph.gr-anim > .gr-ov { animation: gr-ov-in 0.6s ease-out both; } @media (prefers-reduced-motion: reduce) { .svg-graph.gr-anim-fade > img.graph-chart-svg, .svg-graph.gr-anim-fade > img.graph-map-svg, .svg-graph.gr-anim-grow > img.graph-chart-svg, .svg-graph.gr-anim-radial > img.graph-chart-svg, .svg-graph.gr-anim > .gr-ov { animation: none; } } /* 深色模式 (Night Mode) 自動適配 */ @media screen { html.skin-theme-clientpref-night .svg-graph .gr-t { color: #eaecf0; } html.skin-theme-clientpref-night .svg-graph .gr-halo { text-shadow: -1px -1px 0 #101418, 1px -1px 0 #101418, -1px 1px 0 #101418, 1px 1px 0 #101418; } html.skin-theme-clientpref-night .svg-graph .gr-tip { background-color: rgba(32, 33, 34, 0.96); color: #eaecf0; border-color: #54595d; } } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .svg-graph .gr-t { color: #eaecf0; } html.skin-theme-clientpref-os .svg-graph .gr-halo { text-shadow: -1px -1px 0 #101418, 1px -1px 0 #101418, -1px 1px 0 #101418, 1px 1px 0 #101418; } html.skin-theme-clientpref-os .svg-graph .gr-tip { background-color: rgba(32, 33, 34, 0.96); color: #eaecf0; border-color: #54595d; } }
返回
Module:Graph/style.css
。
搜索
搜索
查看“︁Module:Graph/style.css”︁的源代码
添加语言
添加话题