卡厄思
梦
境
菜单
首页
回到首页
WIKI工具
全站样式
全站JS
修改导航栏
测试
沙盒
可视化管理器
战斗员管理器
卡牌管理器
伙伴管理器
装备管理器
词典管理器
图鉴
战斗员
伙伴
装备
怪物卡牌
中立卡牌
词典
小工具
配队模拟器
节奏榜生成器
搜索
链入页面
相关更改
特殊页面
页面信息
最近更改
登录
MediaWiki
查看“︁Common.css”︁的源代码
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 这里放置的CSS将应用于所有皮肤 */ /* 字体设置 */ @font-face { font-family: '鸿蒙'; src: url('/font/HarmonyOS_Sans_SC_Regular.woff2') format('woff2'); } @font-face { font-family: 'number'; src: url('/font/Teko.ttf') format('opentype'); } body { font-family: '鸿蒙', sans-serif; } /* 手机端和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; } /* 卡牌 */ .card-small-wrapper { transition: transform 0.2s ease; -webkit-tap-highlight-color: transparent; } .card-small-wrapper:hover { transform: scale(1.05); } .card-modal { animation: fadeIn 0.3s ease; overflow: hidden !important; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-tap-highlight-color: transparent; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-close-button:hover { background: rgba(255, 255, 255, 0.3) !important; transform: scale(1.1); } .inspiration-button:hover { transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important; background: linear-gradient(135deg, #7fe5ff 0%, #5fb8e0 100%) !important; } .inspiration-button:active { transform: translateY(0); } .god-inspiration-button:hover { transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important; background: linear-gradient(135deg, #ffe08a 0%, #f0b000 100%) !important; } .god-inspiration-button:active { transform: translateY(0); } .back-to-card-button:hover, .back-to-subcards-button:hover, .back-to-inspiration-button:hover, .back-to-inspiration-subcards-button:hover { transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important; background: linear-gradient(135deg, #ff7b7b 0%, #dd6565 100%) !important; } .back-to-card-button:active, .back-to-subcards-button:active, .back-to-inspiration-button:active, .back-to-inspiration-subcards-button:active { transform: translateY(0); } .inspiration-variant-card, .subcards-view .inspiration-variant-card { opacity: 0.95; transition: opacity 0.3s, transform 0.3s; cursor: default !important; } .inspiration-variant-card:hover, .subcards-view .inspiration-variant-card:hover { opacity: 1; transform: scale(1.05); } @media (max-width: 768px) { .cards-display { flex-direction: column !important; } .inspiration-cards-wrapper { gap: 10px !important; } .subcards-wrapper { gap: 10px !important; } .nested-subcards-wrapper { gap: 10px !important; } } .subcards-button { display: inline-block; padding: 10px 10px; background: linear-gradient(135deg, #6fd8fe 0%, #4da6cc 100%); color: white; font-size: 15px; font-weight: bold; border-radius: 8px; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: all 0.3s; user-select: none; } .subcards-button:hover { transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.4); background: linear-gradient(135deg, #7fe5ff 0%, #5fb8e0 100%); } .subcards-button:active { transform: translateY(0); } .view-nested-subcards-button, .view-inspiration-nested-subcards-button { display: inline-block; padding: 10px 20px; background: linear-gradient(135deg, #ffa500 0%, #cc8400 100%); color: white; font-size: 15px; font-weight: bold; border-radius: 8px; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: all 0.3s; user-select: none; } .view-nested-subcards-button:hover, .view-inspiration-nested-subcards-button:hover { transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.4); background: linear-gradient(135deg, #ffb520 0%, #dd9400 100%); } .view-nested-subcards-button:active, .view-inspiration-nested-subcards-button:active { transform: translateY(0); } .nested-subcards-view, .inspiration-subcards-view, .inspiration-nested-subcards-view { opacity: 0.95; transition: opacity 0.3s; } .inspiration-cards-wrapper { align-items: flex-start; } .inspiration-variant { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 240px; } .inspiration-subcards-button { display: inline-block; padding: 10px 20px; background: linear-gradient(135deg, #ffa500 0%, #cc8400 100%); color: white; font-size: 15px; font-weight: bold; border-radius: 8px; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: all 0.3s; user-select: none; margin-top: 8px; } .inspiration-subcards-button:hover { transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.4); background: linear-gradient(135deg, #ffb520 0%, #dd9400 100%); } .inspiration-subcards-button:active { transform: translateY(0); } .god-variant-card { opacity: 0.95; transition: opacity 0.3s, transform 0.3s; cursor: default !important; } .god-variant-card:hover { opacity: 1; transform: scale(1.05); } /* 卡牌悬停样式 */ .card-link { display: inline-block; position: relative; } .card-link:hover { color: #5a7fff; } /* 悬停时显示的卡牌容器 */ .card-hover-popup { display: none; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 10px; z-index: 10000; pointer-events: none; animation: cardPopupFadeIn 0.2s ease; } .card-link:hover .card-hover-popup { display: block; } @keyframes cardPopupFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(5px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } } /* 确保悬停卡牌不可交互 */ .card-hover-popup * { pointer-events: none !important; cursor: default !important; } /* 隐藏悬停卡牌中的模态框 */ .card-hover-popup .card-modal { display: none !important; } .dictionary-tooltip-container { position: absolute; width: 250px; z-index: 10000; opacity: 0; transition: opacity 0.15s ease; pointer-events: none; } .dictionary-tooltip-container.active { opacity: 1; pointer-events: auto; } .dictionary-term { text-decoration: underline; cursor: help; } /* 黑幕 */ .heimu { background-color: #252525; color: #252525; transition: color 0.5s; } .heimu:hover { color: #ffffff; } /* 切换标签 */ .main-line-wrap { width: 100%; margin: 0px; } .resp-tabs { width: 100%; } .resp-tabs-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; } .resp-tabs-list.clearfix::after { content: ""; display: table; clear: both; } .czn-list-style { display: inline-block; cursor: pointer; transition: all 0.3s ease; } .tab-panel { position: relative; display: inline-block; background: #b9b9b9; color: #000; padding: 5px 30px; font-size: 12px; text-align: center; clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%); min-width: auto; transition: all 0.3s ease; } .czn-list-style.active .tab-panel { background: #ff5514; color: white; } .tab-panel::before { content: "✦"; position: absolute; left: 5px; top: 50%; transform: translateY(-50%); font-size: 16px; color: inherit; opacity: 0; transition: opacity 0.3s ease; } .tab-panel::after { content: "✦"; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 16px; color: inherit; opacity: 0; transition: opacity 0.3s ease; } .czn-list-style.active .tab-panel::before, .czn-list-style.active .tab-panel::after { opacity: 1; } .resp-tabs-container { padding-left: 0px; } .resp-tab-content { display: none; animation: fadeIn 0.3s ease; } .resp-tab-content[style*="display:block"], .resp-tab-content[style*="display: block"] { display: block !important; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .carousel-container { width: 100%; height: 280px; position: relative; overflow: hidden; background: #f0f0f0; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .carousel-wrapper { display: flex; height: 100%; transition: transform 0.5s ease; will-change: transform; } .carousel-slide { min-width: 100%; height: 100%; position: relative; } /* 图片统一裁剪为 280px 高度并覆盖容器 */ .carousel-slide img, .carousel-slide a.image img { width: 100% !important; height: 280px !important; object-fit: cover; display: block; } /* 标题遮罩层与导航 */ .carousel-titles-overlay { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.28), rgba(0,0,0,0.12)); padding: 10px 0 0px; z-index: 10; } .carousel-titles-wrapper { display: flex; align-items: center; position: relative; padding: 0 50px; } .carousel-titles-container { max-width: calc(100% - 120px); display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 0 auto; } .carousel-title-item { transition: all 0.3s ease; min-width: 0; flex: 1; max-width: 200px; cursor: pointer; } .carousel-title-item:hover .title-text { opacity: 1 !important; } .carousel-title-item.active .title-text { opacity: 1 !important; font-weight: bold; } .carousel-title-item.active .title-indicator { background: #ff6600 !important; } .title-text { color: #fff; font-size: 13px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; opacity: 0.75; } .title-indicator { height: 2px; background: transparent; margin-top: 6px; transition: all 0.3s ease; } /* 切换按钮 */ .carousel-btn { transition: all 0.3s; user-select: none; cursor: pointer; z-index: 20; opacity: 0.85; } /* 轮播图 */ .carousel-btn:hover { opacity: 1 !important; transform: translateY(-50%) scale(1.08); } .carousel-btn img { width: 100%; height: 100%; object-fit: contain; } .carousel-btn a.image { display: block; cursor: default; user-select: none; } /* 响应式设计 */ @media (max-width: 1024px) { .carousel-titles-container { max-width: calc(100% - 100px); } } @media (max-width: 768px) { .carousel-titles-container { gap: 8px !important; } .carousel-title-item { max-width: 150px !important; } .title-text { font-size: 12px !important; padding: 5px 6px !important; } .carousel-btn { width: 25px !important; height: 25px !important; } .carousel-titles-wrapper { padding: 0 40px !important; } .carousel-btn.carousel-prev { left: 8px !important; } .carousel-btn.carousel-next { right: 8px !important; } } @media (max-width: 480px) { .carousel-title-item { max-width: 110px !important; } .title-text { font-size: 11px !important; padding: 4px 5px !important; } .carousel-btn { width: 22px !important; height: 22px !important; } } /* 当仅有一张图时隐藏按钮 */ .carousel-container.single .carousel-btn { display: none; } /* 兼容可能的缩略图容器 */ .carousel-slide .thumb, .carousel-slide .thumbinner { width: 100% !important; height: 100% !important; overflow: hidden; border: 0; background: none; box-shadow: none; } /* 避免图片选择与拖拽 */ .carousel-container img { user-select: none; -webkit-user-drag: none; } /* 触摸滑动指示(可选) */ .carousel-container.grab { cursor: grab; } .carousel-container.grabbing { cursor: grabbing; } /* 按钮 */ .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; } /* 全局 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; } /* 首页按钮 */ .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; } /* 装备系统样式 */ .equipment-popup { position: fixed !important; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10000; box-shadow: 0 0 20px rgba(0,0,0,0.8); } /* 弹窗遮罩层 */ .equipment-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 9999; display: none; } /* 装备卡片悬停效果 */ .equipment-card:hover { transform: scale(1.05); transition: transform 0.2s; } /* 关闭按钮悬停效果 */ .equipment-popup-close:hover { color: #ff9500 !important; } /* 装备名称链接样式 */ .equipment-name-link { padding: 3px 5px; } .equipment-name-link a { text-decoration: none !important; } /* 调整卡片容器样式 */ .equipment-wrapper .equipment-card { margin-bottom: 0; } /* 事件模块样式 */ .event-container { user-select: none; } .event-option:hover { background-color: rgba(255,255,255,0.4) !important; } .event-option.expanded { background-color: rgba(255,255,255,0.5) !important; min-height: auto !important; } .option-effect { line-height: 1.4; } /* 防止选项重叠 */ .event-option.expanded ~ .event-option { transition: top 0.3s ease; }
返回
MediaWiki:Common.css
。