打开/关闭搜索
搜索
打开/关闭菜单
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) { .char-box { flex-direction: column; } .char-box-image { border-right: none; border-bottom: 1px solid var(--border-color-base); width: 100%; flex: 0 0 auto; } }
返回
MediaWiki:Common.css
。
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面