卡厄思
梦
境
菜单
首页
回到首页
WIKI工具
全站样式
全站JS
修改导航栏
测试
沙盒
可视化管理器
战斗员管理器
卡牌管理器
伙伴管理器
装备管理器
词典管理器
图鉴
战斗员
伙伴
装备
怪物卡牌
中立卡牌
词典
小工具
配队模拟器
节奏榜生成器
搜索
链入页面
相关更改
特殊页面
页面信息
最近更改
登录
MediaWiki
查看“︁Common.css”︁的源代码
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 这里放置的CSS将应用于所有皮肤 */ /* 手机端和PC端显示控制 */ @media screen and (max-width: 640px) { .desktop-only { display: none !important; } } @media screen and (min-width: 641px) { .mobile-only { display: none !important; } } /* 隐藏通知图标 */ #echo-notifications { display:none; } /* 隐藏底部图标 */ #footer-right-icons { display:none; } /* 黑幕 */ .heimu { background-color: #252525; color: #252525; transition: color 0.5s; } .heimu:hover { color: #ffffff; } /* 切换标签 */ .main-line-wrap { margin: 10px 0; font-family: Arial, sans-serif; } .resp-tabs { background: transparent; } .resp-tabs-list { list-style: none; margin: 0; padding: 0; background: transparent; overflow: hidden; display: flex; flex-wrap: wrap; gap: 6px; } .resp-tabs-list::after { content: ""; display: table; clear: both; } .czn-list-style { margin: 0; padding: 0; cursor: pointer; transition: all 0.2s ease; border-radius: 4px; background-color: #f5f5f5; border: 1px solid #ddd; border-top: 1px solid #ddd !important; border-bottom: 1px solid #ddd !important; border-left: 1px solid #ddd !important; border-right: 1px solid #ddd !important; } .czn-list-style:hover { background-color: #e8e8e8; border: 1px solid #ddd !important; } .czn-list-style.active { background-color: #007bff; color: white; border: 1px solid #007bff !important; } .czn-list-style.active:hover { background-color: #0056b3; border: 1px solid #0056b3 !important; } .tab-panel { display: block; padding: 8px 16px; color: #333; text-decoration: none; font-weight: normal; transition: color 0.2s ease; white-space: nowrap; min-width: 60px; text-align: center; font-size: 14px; border: none !important; } .czn-list-style.active .tab-panel { color: white; } .resp-tabs-container { padding: 0; background: transparent; margin-top: 8px; } .resp-tab-content { display: none; animation: fadeIn 0.2s ease-in-out; background: transparent; padding: 0; border: none !important; } .resp-tab-content[style*="display:block"], .resp-tab-content[style*="display: block"] { display: block !important; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* 响应式设计 */ @media (max-width: 768px) { .resp-tabs-list { flex-direction: column; gap: 4px; } .czn-list-style { width: 100%; border: 1px solid #ddd !important; } .tab-panel { padding: 6px 12px; min-width: auto; font-size: 13px; border: none !important; } .resp-tabs-container { margin-top: 6px; } } /* 按钮 */ .btn { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: 400; line-height: 1.42857143; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border: 1px solid transparent; border-radius: 4px; } .btn-default { color: #333; background-color: #fff; border-color: #ccc; } /* 筛选按钮被选中 */ li.btn.cardSelectOption.selected { color: #333!important; background-color: #e6e6e6!important; border-color: #adadad!important; outline: 0; -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125); box-shadow: inset 0 3px 5px rgba(0,0,0,.125); } @media only screen and (max-width: 600px) { li.btn.cardSelectOption { padding: 4px 8px; font-size: 12px; } li.btn.cardSelectOption:hover { color: #333; background-color: #fff; border-color: #adadad; } } /* 隐藏默认目录 */ .mw-parser-output .toc { display: none !important; } /* 悬浮目录 */ #toc-sidebar { position: fixed; left: 0; top: 30%; background-color: #f8f9fa; border: 1px solid #a2a9b1; border-left: none; border-radius: 0 5px 5px 0; padding: 5px 2px; z-index: 100; width: 36px; transition: width 0.3s; overflow: hidden; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); } #toc-sidebar.expanded { width: 250px; padding: 10px; } #toc-sidebar-trigger { cursor: pointer; font-weight: bold; text-align: center; writing-mode: vertical-lr; /* 修改为vertical-lr */ height: auto; white-space: nowrap; } #toc-sidebar.expanded #toc-sidebar-trigger { writing-mode: horizontal-tb; } #toc-sidebar-content { display: none; padding-top: 10px; width: 230px; max-height: 60vh; overflow-y: auto; } #toc-sidebar.expanded #toc-sidebar-content { display: block; } /* 隐藏目录中的小圆点 */ #toc-sidebar-content ul { list-style-type: none; padding-left: 15px; margin: 0; } #toc-sidebar-content li { margin: 3px 0; } /* 稀有度 */ .rarity-5 { width: 150px; height: 5px; background: linear-gradient(135deg, #e882e8, #6fffff); box-shadow: 0 0 15px rgba(110, 69, 226, 0.5), 0 0 30px rgba(136, 211, 206, 0.3); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; } .rarity-4 { width: 150px; height: 5px; background: linear-gradient(135deg, #e5a563, #f1cf97); box-shadow: 0 0 15px rgba(110, 69, 226, 0.5), 0 0 30px rgba(136, 211, 206, 0.3); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; } .rarity-3 { width: 150px; height: 5px; background: linear-gradient(135deg, #3b4785, #c3e7f9); box-shadow: 0 0 15px rgba(110, 69, 226, 0.5), 0 0 30px rgba(136, 211, 206, 0.3); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; } /* 卡牌系统样式 */ #card-overlay { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); } #card-display-container { animation: fadeIn 0.3s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .game-card { transition: transform 0.2s ease; } .game-list .game-card:hover, .game-grid .game-card:hover { transform: scale(1.05); z-index: 10; } #card-overlay .game-card { transform: none !important; } /* 修复卡牌描述布局 */ #card-overlay .game-card > div:last-child { display: flex !important; align-items: center !important; justify-content: center !important; } /* 确保放大的卡牌元素正确显示 */ #card-overlay .game-card div[style*="position: absolute"] { transform-origin: center center; } /* 滚动条美化 */ #card-overlay ::-webkit-scrollbar { width: 8px; height: 8px; } #card-overlay ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 4px; } #card-overlay ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; } #card-overlay ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); } /* 卡牌悬停 */ .card-hover-container { position: relative; display: inline; } .card-name { color: #4a90e2; border-bottom: 1px dotted #4a90e2; cursor: pointer; white-space: nowrap; } .card-popup-container { display: none; position: absolute; z-index: 1000; left: 0; top: 100%; margin-top: 5px; background: none; } .card-hover-container:hover .card-popup-container { display: block; } .card-popup { display: block; background: none; padding: 0; box-shadow: none; } /* 确保游戏卡牌正确显示 */ .card-popup .game-card { margin: 0 !important; } /* 全局 tooltip 容器 */ .dictionary-tooltip-container { position: absolute; width: 250px; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; } .dictionary-tooltip-container.active { opacity: 1; } /* 卡牌描述滚动容器 */ .card-description-scroll { position: absolute; bottom: 7px; left: 15px; width: 144px; height: 100px; overflow: hidden; text-align: center; display: flex; align-items: center; justify-content: center; } .card-description-scroll-inner { width: 100%; } .card-description-text { font-size: 12px; color: white; line-height: 13px; padding: 5px 0; } /* 滚动动画关键帧 */ @keyframes cardScrollUp { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(calc(-100% + 100px)); } } /* 需要滚动时:取消居中,从顶部开始 */ .game-card.card-description-scrollable .card-description-scroll { align-items: flex-start; /* 顶部对齐 */ } /* 应用滚动动画 */ .game-card.card-description-scrollable .card-description-scroll-inner { animation: cardScrollUp 8s ease-in-out infinite; } /* 悬停暂停 */ .game-card.card-description-scrollable:hover .card-description-scroll-inner { animation-play-state: paused; } /* 首页按钮 */ .home-btn { color: #303646; font-size: 14px; font-weight: bold; text-align: center; line-height: 18px; width: 100px; height: 36px; border: 1px solid #303646; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.30); padding: 8px 5px; margin: 0 5px 10px; display: inline-block; float: left; position: relative; overflow: hidden; transition: all 0.5s; -moz-transition: all 0.5s; -webkit-transition: all 0.5s; cursor: pointer; } .home-btn:hover { border-color: inherit; box-shadow: 0 2px 8px 0 rgba(0,0,0,0.40); } .home-btn:before { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); z-index: 1; } .home-btn:hover:before { animation: shine 0.8s ease; } @keyframes shine { 0% { left: -100%; } 100% { left: 200%; } } .home-btn:after { content: ""; position: absolute; background: rgba(0,0,0,0.05); left: 50%; width: 0; top: 0px; bottom: 0px; transition: all 0.15s; -moz-transition: all 0.15s; -webkit-transition: all 0.15s; z-index: 0; } .home-btn:hover::after { content: ""; width: 100%; left: 0px; } .home-btn-1 { color: #9B999D; border-color: #9B999D; } .home-btn-2 { color: #55A054; border-color: #55A054; } .home-btn-3 { color: #5483D3; border-color: #5483D3; } .home-btn-4 { color: #A25FD3; border-color: #A25FD3; } .home-btn-5 { color: #DF762C; border-color: #DF762C; } .home-btn-6 { color: #E74C48; border-color: #E74C48; } .home-btn-gk { line-height: 14px; width: 80px; height: 30px; color: #2D8281; border-color: #2D8281; }
返回
MediaWiki:Common.css
。