打开/关闭搜索
搜索
打开/关闭菜单
7
260
74
1380
失传媒体中文维基
导航
首页
最近更改
随机页面
特殊页面
上传文件
帮助
维基语法
编者入门
社区
最近评论
其他
最近更改
特殊页面
所有页面
管理
编辑侧栏
通用CSS
主题CSS
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面
更多操作
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 这里放置的CSS将应用于所有皮肤 */ /* 相关站点/友情链接容器 */ .other-sites { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; justify-content: center; background: rgba(240, 240, 240, 0.8); /* 替换为你需要的背景色 */ } /* 单个站点图标 */ .other-sites .site { position: relative; cursor: pointer; display: block; width: 50px; height: 50px; background-size: contain; background-repeat: no-repeat; background-position: center; margin-bottom: 30px; margin-top: 30px; transition: all 0.3s ease; } /* 隐藏链接默认下划线 */ .other-sites .site a:after { display: none !important; } /* 图标hover放大+阴影 */ .other-sites .site:hover { transform: scale3d(1.5, 1.5, 1.5); filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.4)); z-index: 20; } /* 鼠标悬停显示提示文字 */ .site::after { content: attr(data-content); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background-color: rgba(255, 255, 255, 0.95); color: #333; font-size: 12px; padding: 4px 8px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 30; } .site:hover::after { opacity: 1; visibility: visible; } /* 修复链接点击:始终可点击 */ .other-sites .site a { pointer-events: auto; position: absolute; top: 0; left: 0; z-index: 10; display: block; width: 100%; height: 100%; } /* 移动端适配 */ @media only screen and (max-width: 800px) { .other-sites { grid-template-columns: repeat(3, 1fr); } .other-sites .site { margin-bottom: 20px; margin-top: 20px; } .site::after { white-space: normal; width: min(75px, 33vw); } } /* 有趣的交互:hover时其他图标模糊缩小 */ .other-sites:has(.site:hover) .site:not(:hover) { filter: blur(7px); transform: scale(0.8); }
返回
MediaWiki:Common.css
。
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面