fix(game): 中/EN 切换统一为像素风,与导航按钮一致 - #34
Merged
Merged
Conversation
游戏页语言切换原先复用共享 githire.css 的圆角 pill(衬线斜体), 与页面像素风导航(方角/2px 边框/3px 偏移阴影)割裂。在 game.html 自带 <style> 内用 .topnav-actions .lang-switch 提升优先级覆盖: 方角、Zpix 像素字体、3px 偏移阴影、选中态填充 --rink 反白, 与 .btn-ghost 完全一致。仅 game.html 局部,不影响首页/Skill 页。 语言已是自适应(resolveLang: URL→localStorage→navigator.language), 本次不改逻辑。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
建议暂无额外建议。 结论:✅ 可以合并 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
游戏页
docs/game.html右上角的中/EN 语言切换,原先复用共享githire.css的**圆角 pill(衬线斜体)**样式,与页面的像素风导航(方法论 / Skill / HireRPG game—— 方角、2px 边框、3px 偏移阴影)割裂。本次在
game.html自带<style>里用.topnav-actions .lang-switch提升优先级覆盖共享样式,统一为像素风方块分段开关:border-radius:0)+ 2px--rink实边框3px 3px 0偏移阴影(与.btn-ghost同款)--rink深色、文字反白只影响游戏页(覆盖作用域限定在
.topnav-actions),不动首页 / Skill 页的圆角 pill。关于"语言自适应"
无需改动 ——
resolveLang()已按 URL?lang=→localStorage→navigator.language顺序自适应识别,加载时改写<html lang>与全部文案。该能力随上一个 PR(#33)已上线,本次纯样式。验证
.topnav-actions .lang-switch(0,2,0) / active 态(0,3,1) 均压过共享样式;header 为topnav非nav-on-dark,深色规则不触发;移动端媒体查询特异性更低不影响 ✅node scripts/check-reveal-failsafe.mjs→ PASS ✅node scripts/build-en.mjs→ Done,无文件变更(游戏页自带 i18n,不在英文镜像体系内)✅🤖 Generated with Claude Code