打开/关闭搜索
搜索
打开/关闭菜单
23
245
1
6498
DOL ShipMaker Wiki
首页
首页
世界地图
特殊页面
上传文件
游戏资料
游戏介绍
国家介绍
人物介绍
历代版本
EP1 Original
EP2 La Frontera
EP3 Cruz del Sur
EP4 El Oriente
EP5 Tierra Americana
EP6 2nd Age
EP7 Gran Atlas
EP8 Atlantis
EP9 Age of Revolution
EP10 Order of the Prince
EP11 Lost Memories
EP12 Seven Wonders
EP12 Extra Polars
冒险专区
发现物
冒险任务
书库地图
遗迹地下城
沉船打捞
睿智之书
传说任务
学术论战
商人专区
交易品
商业任务
特产品
南蛮贸易
大投资战
稀少交易品
学术论战
打开/关闭外观设置菜单
notifications
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面
查看
阅读
查看源代码
查看历史
associated-pages
系统消息
讨论
更多操作
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
管理员
、editor
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/** * MediaWiki:Common.css * DOL ShipMaker Wiki - 大航海时代风格深色主题 */ /* ── 首页 Hero 横幅 ─────────────────────────────────────── * 图片占位:hero-banner.jpg * 建议尺寸:1920×500px,海洋/船只场景,横向构图 * 上传后替换 url() 里的路径 */ .wiki-hero { position: relative; width: 100%; height: 420px; background: linear-gradient(to bottom, rgba(10,22,40,0.3) 0%, rgba(10,22,40,0.85) 100%), url('/images/hero-banner.jpg') center center / cover no-repeat; /* 无图时显示深海渐变占位 */ background-color: #0a1628; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: -1rem -1rem 2rem -1rem; } .wiki-hero-logo { width: 80px; height: 80px; margin-bottom: 1rem; /* 占位:logo.png,建议 200×200px,透明背景 PNG */ background: rgba(201,168,76,0.2); border-radius: 50%; border: 2px solid #c9a84c; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; } .wiki-hero-title { font-size: 2.2rem; font-weight: bold; color: #c9a84c; text-shadow: 0 2px 8px rgba(0,0,0,0.8); margin-bottom: 0.5rem; letter-spacing: 2px; } .wiki-hero-subtitle { font-size: 1rem; color: #b0c4d8; text-shadow: 0 1px 4px rgba(0,0,0,0.8); margin-bottom: 1.5rem; } .wiki-hero-search { display: flex; gap: 0.5rem; } .wiki-hero-search a { background: #c9a84c; color: #0a1628; padding: 0.6rem 1.8rem; border-radius: 24px; font-weight: bold; text-decoration: none; font-size: 1rem; transition: background 0.2s; } .wiki-hero-search a:hover { background: #e0c070; color: #0a1628; } /* ── 分类图片卡片导航 ───────────────────────────────────── * 每张卡片图片:建议 320×120px,横向构图 * 图片命名和位置见下方各卡片注释 */ .wiki-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 0 0 2rem 0; } @media (max-width: 768px) { .wiki-nav-grid { grid-template-columns: repeat(2, 1fr); } .wiki-hero { height: 300px; } .wiki-hero-title { font-size: 1.5rem; } } .wiki-nav-card { position: relative; height: 90px; border-radius: 6px; overflow: hidden; border: 1px solid #2a4a6c; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; } .wiki-nav-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(74,158,255,0.3); border-color: #c9a84c; } .wiki-nav-card a { display: flex; align-items: flex-end; width: 100%; height: 100%; text-decoration: none; padding: 0.5rem 0.7rem; background: linear-gradient(to top, rgba(10,22,40,0.9) 40%, rgba(10,22,40,0.2) 100%); color: #e8eaf0; font-weight: bold; font-size: 0.95rem; } .wiki-nav-card a.new, .wiki-nav-card a.new:visited { color: #e8eaf0; } /* 各卡片背景图占位(无图时显示渐变色块) * card-ships: 图片 nav-ships.jpg 320×120px 船只场景 * card-equipment: 图片 nav-equipment.jpg 320×120px 装备/配件特写 * card-guide: 图片 nav-guide.jpg 320×120px 航海地图/罗盘 * card-community: 图片 nav-community.jpg 320×120px 港口/人群场景 */ .wiki-nav-card.card-ships { background-color: #1a3a5c; background-image: url('/images/nav-ships.jpg'); background-size: cover; background-position: center; } .wiki-nav-card.card-equipment { background-color: #1a2a4c; background-image: url('/images/nav-equipment.jpg'); background-size: cover; background-position: center; } .wiki-nav-card.card-guide { background-color: #0f2a3c; background-image: url('/images/nav-guide.jpg'); background-size: cover; background-position: center; } .wiki-nav-card.card-community { background-color: #1a1a3c; background-image: url('/images/nav-community.jpg'); background-size: cover; background-position: center; } /* ── 精选内容区 ───────────────────────────────────────────*/ .wiki-featured { margin-bottom: 2rem; } .wiki-featured-title { font-size: 1rem; color: #7a9ab8; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid #2a4a6c; } .wiki-featured-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0.8rem; } @media (max-width: 768px) { .wiki-featured-grid { grid-template-columns: 1fr; } } .wiki-featured-card { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid #2a4a6c; background: #111e30; min-height: 200px; } /* 精选主卡片图片:featured-main.jpg,建议 640×240px */ .wiki-featured-card.featured-main { background-image: url('/images/featured-main.jpg'); background-size: cover; background-position: center; min-height: 240px; } .wiki-featured-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(to top, rgba(10,22,40,0.95) 60%, transparent 100%); } .wiki-featured-card-tag { display: inline-block; background: #c9a84c; color: #0a1628; font-size: 0.7rem; font-weight: bold; padding: 2px 8px; border-radius: 3px; margin-bottom: 0.4rem; text-transform: uppercase; } .wiki-featured-card-title { font-size: 1.2rem; font-weight: bold; color: #e8eaf0; margin-bottom: 0.3rem; } .wiki-featured-card-desc { font-size: 0.85rem; color: #b0c4d8; line-height: 1.4; } .wiki-featured-card a, .wiki-featured-card a.new { color: inherit; text-decoration: none; } /* ── 快速导航链接 ─────────────────────────────────────────*/ .wiki-quicklinks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; } .wiki-quicklinks a, .wiki-quicklinks a.new { background: #1a3a5c; border: 1px solid #2a4a6c; color: #b0c4d8; padding: 0.3rem 0.9rem; border-radius: 16px; font-size: 0.85rem; text-decoration: none; transition: background 0.2s, border-color 0.2s; } .wiki-quicklinks a:hover { background: #2a4a6c; border-color: #c9a84c; color: #c9a84c; } /* ── 船只信息卡(Template:ShipInfobox)────────────────────*/ .infobox-ship { float: right; clear: right; margin: 0 0 1rem 1.5rem; padding: 0.8rem; min-width: 260px; max-width: 320px; background: #1a3a5c; border: 1px solid #c9a84c; border-radius: 6px; font-size: 0.9rem; } .infobox-ship .infobox-title { text-align: center; font-size: 1.1rem; font-weight: bold; color: #c9a84c; padding-bottom: 0.5rem; border-bottom: 1px solid #2a4a6c; margin-bottom: 0.6rem; } .infobox-ship table { width: 100%; border-collapse: collapse; } .infobox-ship td { padding: 3px 6px; border-bottom: 1px solid rgba(42,74,108,0.5); } .infobox-ship td:first-child { font-weight: bold; color: #c9a84c; white-space: nowrap; width: 45%; } /* ── 物品图标网格(Template:ItemIconGrid)────────────────*/ .item-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.8rem; margin: 1rem 0; } .item-icon-grid .item-card { background: #1a3a5c; border: 1px solid #2a4a6c; border-radius: 6px; padding: 0.6rem; text-align: center; font-size: 0.8rem; } .item-icon-grid .item-card img { max-width: 64px; max-height: 64px; margin-bottom: 0.3rem; } /* ── 装备数据表(Template:EquipmentTable)────────────────*/ .wikitable.equipment-table th { background: #1a3a5c; color: #c9a84c; border-color: #2a4a6c; } .wikitable.equipment-table td { border-color: #2a4a6c; } /* 确保用户菜单可以显示退出按钮 */ .citizen-user-menu .citizen-menu__card { max-height: none !important; overflow: visible !important; } /* 角色信息卡片 - 完整固定版 */ .char-box { display: flex !important; flex-wrap: wrap; background-color: var(--background-color-neutral, #f8f9fa); border: 1px solid var(--border-color-base, #eaecf0); border-radius: 8px; margin-bottom: 1.5em; overflow: hidden; } .char-box-image { flex: 0 0 240px; /* 1. 关键:去掉背景色,让它继承父容器 .char-box 的背景 */ background-color: transparent !important; /* 2. 关键:去掉右侧的分割线 */ border-right: none !important; padding: 15px 10px; /* 增加一点点间距,让图片更居中 */ display: flex; flex-direction: column; align-items: center; } .char-box-image div { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); /* 与正文一致的轻微阴影 */ color: var(--color-base, #333); /* 确保颜色随主题自适应 */ font-size: 0.95em; /* 稍微调整一下比例 */ text-align: center; } .char-box-body { flex: 1 1 300px; padding: 15px 20px; display: flex; flex-direction: column; /* 确保 body 至少和左边一样高 */ min-height: 100%; } .char-box-name { font-size: 1.4em; font-weight: bold; color: var(--color-primary, #36c); border-bottom: 2px solid var(--color-primary); margin-bottom: 10px; padding-bottom: 5px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); } .char-box-text { /* 关键:强制文字区域撑开,占满上方所有剩余空间 */ flex-grow: 1; font-size: 0.9em; line-height: 1.7; text-align: justify; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); margin-bottom: 20px; /* 依然保留和底部区域的间距 */ } } /* 关键:将此区域推向底部 */ .char-box-bottom-area { margin-top: auto; } /* 1. 图集容器:保留背景区分,去掉边框,压缩上下边距 */ .char-box-gallery { background-color: var(--background-color-interactive, rgba(255,255,255,0.05)) !important; border: none !important; box-shadow: none !important; padding:0 !important; /* 极小的内边距 */ margin-top: 5px !important; /* 紧贴上方文字 */ margin-bottom: 0 !important; /* 紧贴下方链接 */ border-radius: 4px; } .char-box-gallery .gallerybox { /* 使用 Citizen 的交互背景变量,无边框 */ background-color: var(--background-color-interactive, rgba(127,127,127,0.8)) !important; border: none !important; border-radius: 4px; /* 稍微圆角,看起来更柔和 */ margin: 0 !important; /* 去掉格子间的间距 */ width: auto !important; /* 允许宽度自适应 */ transition: background-color 0.2s ease; /* 仅背景色过渡 */ } /* 缩略图基础状态:增加过渡动画 */ .char-box-gallery .gallerybox .thumb img { transition: all 0.3s ease-in-out !important; /* 让缩放变得丝滑 */ } .char-box-gallery .gallerybox:hover .thumb img { transform: scale(1.15); /* 放大 1.15 倍 */ filter: brightness(1.2); /* 亮度增加 20% */ cursor: pointer; /* 鼠标变成小手 */ } /* 悬停时让下方的文字也变亮或变色 */ .char-box-gallery .gallerybox:hover .gallerytext { color: var(--color-primary, #36c) !important; transition: color 0.3s ease; } .char-box-gallery .thumb { margin: 0 !important; /* 去掉图片外围间距 */ border: none !important; background: transparent !important; } /* 3. 强制文字居中并减小文字上方的间距 */ .char-box-gallery .gallerytext { text-align: center !important; padding: 0 !important; /* 去掉文字上方的空隙 */ margin-top: -2px !important; /* 让文字更贴近图片 */ font-size: 0.8em; line-height: 1.2; /* 压缩行高 */ } /* 4. 如果图片还是显得太高,强制限制内容高度 */ .char-box-gallery .gallery { padding: 0 !important; margin: 0 !important; } .char-box-footer { font-weight: 500; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); } @media (max-width: 720px) { /* 1. 解决左侧主图挤压右侧内容的问题:改为上下堆叠 */ .char-box { flex-direction: column !important; } /* 2. 让图片区域和内容区域在手机上都占满全宽 */ .char-box-image, .char-box-body { width: 100% !important; flex: 0 0 auto !important; border-right: none !important; /* 去掉 PC 端的右侧分割线 */ } /* 3. 解决图集缩略图被挤小的问题:允许自动换行 */ .char-box-gallery ul.gallery { display: flex !important; flex-wrap: wrap !important; /* 宽度不够时自动换行,不再强行挤在一行 */ justify-content: center !important; } /* 4. 确保底部的剧情链接不会被挤出容器 */ .char-box-body { display: block !important; /* 手机端改回标准文档流,防止高度计算错误 */ } .char-box-bottom-area { margin-top: 15px !important; /* 保持与上方文字的固定间距 */ } } /* 强制启用交易品卡片布局 */ .trade-wrapper { display: flex !important; flex-wrap: wrap !important; gap: 15px !important; margin: 20px 0 !important; clear: both; } /* 类别大组容器 */ .trade-group { flex: 1 1 200px !important; background-color: var(--background-color-interactive, rgba(0,0,0,0.05)) !important; border: 1px solid var(--border-color-base, #eaecf0) !important; border-radius: 12px !important; padding: 15px !important; margin-bottom: 10px !important; box-sizing: border-box; } /* 组标题 */ .trade-group-title { font-weight: bold !important; text-align: center !important; margin-bottom: 15px !important; color: var(--color-primary, #36c) !important; border-bottom: 2px solid var(--color-primary, #36c) !important; padding-bottom: 5px !important; } /* 单个交易品条目 */ .trade-item { display: flex !important; align-items: center !important; padding: 8px 12px !important; margin-bottom: 8px !important; background-color: var(--background-color-base, #ffffff) !important; border-radius: 6px !important; transition: transform 0.2s ease !important; border: 1px solid transparent !important; } /* 鼠标悬停 */ .trade-item:hover { transform: translateX(5px) !important; border-color: var(--color-primary) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; } /* 图标间距 */ .trade-item img { margin-right: 12px !important; flex-shrink: 0; } /* 手机端适配:屏幕太窄时改为一列显示一个组 */ @media (max-width: 480px) { .trade-group { flex: 1 1 100%; } } /* 交易品条目现代化行样式 */ .trade-row { display: flex; align-items: center; background: var(--background-color-interactive, rgba(255,255,255,0.05)); border: 1px solid var(--border-color-base, #333); border-radius: 8px; padding: 10px 15px; margin-bottom: 8px; transition: all 0.2s ease; } .trade-row:hover { transform: translateX(6px); border-color: var(--color-primary); background: var(--background-color-base); } .trade-row-icon { flex: 0 0 40px; text-align: center; } .trade-row-name { flex: 0 0 150px; font-weight: bold; padding: 0 15px; font-size: 1.05em; } .trade-row-info { flex: 1; font-size: 0.9em; line-height: 1.6; border-left: 1px solid var(--border-color-base); padding-left: 15px; } .trade-row-source { display: block; margin-top: 4px; font-size: 0.85em; color: var(--color-subtle, #888); font-style: italic; } /* ============================================================ 交易品详情页 - 左右分栏布局(修正卡片宽度固定) ============================================================ */ /* 1. 整体容器 */ body .goods-detail-wrapper { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 24px !important; margin-top: 20px !important; clear: both; /* 核心修正:强制所有上级容器不剪裁内容,否则 sticky 会失效 */ overflow: visible !important; } /* 2. 左侧布局容器:专门负责宽度和粘性,不带背景和边框 */ body .goods-sidebar-container { flex: 0 0 280px !important; /* 强制固定 280px */ width: 280px !important; position: sticky !important; top: 60px !important; /* 调整到你满意的高度 */ z-index: 100 !important; } /* 3. 核心卡片:恢复你原来的所有样式 */ body .goods-infobox { width: 280px !important; /* 再次强制宽度 */ background: var(--background-color-neutral, #f8f9fa) !important; border: 1px solid var(--border-color-base, #eaecf0) !important; border-radius: 12px !important; overflow: hidden !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; margin: 0 !important; } /* 标题区域 */ body .goods-header { background: #2a4e8c !important; color: #ffffff !important; padding: 15px 10px !important; text-align: center !important; font-size: 1.4em !important; font-weight: bold !important; line-height: 1.2 !important; } /* 主图区域 */ body .goods-image-main { background: #ffffff !important; padding: 20px !important; display: flex !important; justify-content: center !important; border-bottom: 1px solid var(--border-color-base) !important; } body .goods-image-main img { max-width: 80px !important; height: auto !important; } /* 属性表格 */ body .goods-attr-table { width: 100% !important; border-collapse: collapse !important; table-layout: fixed !important; } body .goods-attr-label { padding: 10px !important; background: rgba(0, 0, 0, 0.05) !important; color: var(--color-subtle, #666) !important; font-size: 0.95em !important; font-weight: bold !important; width: 85px !important; border-bottom: 1px solid var(--border-color-base) !important; } body .goods-attr-value { padding: 10px !important; font-size: 0.95em !important; color: var(--color-base) !important; border-bottom: 1px solid var(--border-color-base) !important; } /* 说明文字区域 */ body .goods-desc-box { padding: 15px !important; font-size: 0.95em !important; line-height: 1.6 !important; background: var(--background-color-base) !important; } /* --- 3. 右侧区域 --- */ body .goods-data-area { flex: 1 !important; min-width: 0 !important; } body .market-row { display: flex !important; justify-content: space-between !important; align-items: center !important; background: var(--background-color-interactive, rgba(0,0,0,0.05)) !important; border: 1px solid var(--border-color-base, #eaecf0) !important; border-radius: 8px !important; padding: 12px 20px !important; margin-bottom: 10px !important; transition: transform 0.2s ease, background 0.2s ease !important; } body .market-row:hover { transform: translateX(5px) !important; background: var(--background-color-base) !important; border-color: var(--color-primary, #36c) !important; } body .market-city { flex: 0 0 160px !important; font-weight: bold !important; font-size: 1.1em !important; } body .market-stats { flex: 1 !important; display: flex !important; justify-content: flex-end !important; gap: 20px !important; font-size: 0.95em !important; } body .market-stats span b { color: var(--color-primary, #36c) !important; margin-left: 4px; } /* 4. 响应式补丁 */ @media (max-width: 768px) { body .goods-detail-wrapper { flex-direction: column !important; } body .goods-sidebar-container { width: 100% !important; flex: 0 0 auto !important; position: relative !important; top: 0 !important; } body .goods-infobox { width: 100% !important; } } /* ============================================================ 野外获取模块 - 蓝色风格 + 主题自适应 + 等宽修正 ============================================================ */ .field-container { width: 100% !important; box-sizing: border-box; /* 适配深色模式边框与背景 */ border: 1px solid var(--border-color-base, #eaecf0) !important; background-color: var(--background-color-base, #ffffff) !important; margin-bottom: 15px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); } .field-header { /* 表头深蓝色,文字强制白色 */ background-color: #2a4e8c !important; color: #ffffff !important; text-align: center; padding: 8px; font-size: 1em; font-weight: bold; } .field-body { display: flex; border-top: 1px solid var(--border-color-base, #eaecf0); min-height: 80px; } /* 左侧图标区:固定 80px 宽度 */ .field-skill-info { flex: 0 0 80px !important; width: 80px !important; background-color: var(--background-color-interactive, rgba(0,0,0,0.03)); border-right: 1px solid var(--border-color-base, #eaecf0); display: flex; flex-direction: column; align-items: center; justify-content: center; } /* 等级文字颜色:同步交易所数值蓝 */ .field-rank { font-weight: bold; color: var(--color-primary, #36c); margin-top: 4px; } .field-content { flex: 1; display: flex; flex-direction: column; } /* 单行样式:悬浮时自适应背景色 */ .field-row { display: flex; border-bottom: 1px solid var(--border-color-base, #eaecf0); transition: background 0.2s ease; } .field-row:hover { background-color: var(--background-color-quiet, rgba(0,0,0,0.02)); } .field-row:last-child { border-bottom: none; } /* 地区标签 */ .field-region { flex: 0 0 110px; background-color: var(--background-color-neutral, rgba(0,0,0,0.02)); border-right: 1px solid var(--border-color-base, #eaecf0); display: flex; align-items: center; justify-content: center; font-size: 0.9em; font-weight: bold; padding: 5px; color: var(--color-base, #202122); } /* 地点列表 */ .field-locations { flex: 1; padding: 8px 15px; font-size: 0.95em; line-height: 1.6; color: var(--color-base, #202122); } /* ============================================================ 配方/生产模块 - 蓝色自适应版 (支持多技能与带链接材料) ============================================================ */ /* 1. 容器与表头 */ .recipe-container { width: 100% !important; border: 1px solid var(--border-color-base, #eaecf0); border-radius: 8px; overflow: hidden; margin-bottom: 15px; background-color: var(--background-color-base); } .recipe-header { display: flex; background: #2a4e8c; color: #ffffff; font-size: 0.85em; text-align: center; padding: 8px 0; font-weight: bold; } /* 2. 宽度分配:为了容纳多技能,等级列加宽到 100px */ .rh-book { flex: 0 0 250px; } .rh-req { flex: 0 0 100px; } .rh-cat, .rh-skill { flex: 0 0 100px; } .rh-mats { flex: 1; } /* 3. 配方行基础结构 */ .recipe-row { display: flex; border-top: 1px solid var(--border-color-base); align-items: stretch; } .recipe-book-info { flex: 0 0 250px; display: flex; flex-direction: column; border-right: 1px solid var(--border-color-base); } .recipe-book-name { background: var(--background-color-interactive, rgba(0,0,0,0.05)); font-size: 1.1em !important; /* 加大 */ padding: 6px 10px !important; border-bottom: 1px solid var(--border-color-base); color: var(--color-primary); font-weight: bold; } .recipe-product { display: flex; padding: 8px; align-items: center; gap: 8px; flex: 1; overflow: hidden; /* 防止红链文件名撑开 */ } /* 3. 制法:缩小字号(0.75em) */ .recipe-product-meta span { display: block; font-size: 0.75em !important; /* 缩小 */ color: var(--color-subtle); margin-top: 2px; } /* 4. 等级与多技能区域 (修正核心) */ .recipe-req { flex: 0 0 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--background-color-neutral, rgba(0,0,0,0.02)); border-right: 1px solid var(--border-color-base); padding: 8px 0; } .recipe-skill-icons { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-bottom: 5px; } .recipe-skill-unit { display: flex; flex-direction: column; align-items: center; font-size: 10px; line-height: 1.2; color: var(--color-base); } .recipe-rank { font-weight: bold; color: var(--color-primary); } /* 5. 分类与特产技能列 */ .recipe-cat, .recipe-skill { flex: 0 0 100px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border-color-base); font-size: 0.85em; text-align: center; color: var(--color-base); } * 6. 材料区域 - 严格按照示例图:无框、无底条 */ .recipe-mats-area { flex: 1 !important; padding: 8px !important; display: flex !important; gap: 12px !important; flex-wrap: wrap !important; background: none !important; } .recipe-mat-unit { display: inline-flex !important; flex-direction: column !important; align-items: center !important; } .recipe-mat-icon { position: relative !important; line-height: 0 !important; } /* 数量文字:直接浮在图片上,无黑条背景 */ .recipe-mat-count { position: absolute !important; bottom: 2px !important; right: 2px !important; z-index: 5 !important; color: #ffffff !important; /* 白色文字 */ text-shadow: 1px 1px 2px #000, -1px -1px 2px #000; /* 增加阴影确保在浅色图上也能看清 */ font-size: 14px !important; /* 调大数字,匹配示例图 */ font-weight: bold !important; } /* 材料名称:去掉所有下划线和虚线 */ .recipe-mat-name { margin-top: 4px !important; font-size: 11px !important; } .recipe-mat-name a { color: var(--color-base) !important; text-decoration: none !important; border-bottom: none !important; /* 强制去掉虚线 */ } .recipe-mat-name a:hover { text-decoration: none !important; }
返回
MediaWiki:Common.css
。
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面