feat(site): 钢蓝色魂 + 精致组件 + OnlineCompilerDemo 弹出式 IDE 重构#90
Merged
Conversation
色魂(品牌色 identity,治"无色魂"短板): - :root 钢蓝品牌色 #2563EB 系 + 暖中性骨白底,消除 4 套散落配色 (1:1 镜像 C-Journey 已验证的 :root 模板,只把锈橙换钢蓝) - 终端硬编码色抽 var(--term-*),::selection/滚动条美化,blockquote/ HomeTipBanner/HomeRoadmap chip 配色统一到品牌色,补 theme-color meta 精致组件 + 脆弱性清理: - ReadingProgress 顶部阅读进度条(rAF 节流 + 钢蓝 glow + 路由双重重算) - .VPFeature 卡片 rail(::before 伪元素 + 三档 tier 着色) - 代码折叠按钮优化(brand-soft 容器 chevron + 行数 chip + 通知条质感) - .VPFeature .title 字号冲突修(:where 零特异性)+ !important 74→61 - OnlineCompilerDemo dup-output 修复(extractExecutionText/extractAsmText 改 || 取 first-non-empty,对齐 C-Journey f85300b) OnlineCompilerDemo 弹出式重构: - 默认只读源码 + "动手试一试" CTA,点开 Teleport 浮层(灰色遮罩 + 比页面小一圈的 1280px 卡片 + 完整 IDE),✕/遮罩/Esc 关闭 + 锁滚 - 编辑态高亮 overlay(shiki backdrop + 透明 textarea + 像素 line-height 对齐 + 边打边高亮 + 滚动同步) - 编译错误信息友好化(透出 stderr 真实诊断 + ❌ 编译失败 前缀) - 结果区 shimmer 骨架屏 修复: - sidebar 超大字体下长标题溢出视口(VitePress .text 默认 min-width:auto 不收缩,补 min-width:0 + ellipsis 优雅截断)
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.
色魂(品牌色 identity,治"无色魂"短板):
精致组件 + 脆弱性清理:
OnlineCompilerDemo 弹出式重构:
修复: