feat: 优化仓库卡片的标签链接与笔记样式

This commit is contained in:
EmberSparks 2026-05-06 16:14:38 +08:00
parent 34b5c2c6b2
commit 3c86b78f9c
3 changed files with 679 additions and 81 deletions

View file

@ -0,0 +1,444 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>笔记卡片配色方案 Demo</title>
<style>
:root {
color-scheme: light;
--page-bg: #f4f7fb;
--panel-bg: rgba(255, 255, 255, 0.88);
--panel-border: rgba(148, 163, 184, 0.18);
--card-bg: #ffffff;
--card-border: #dbe4ef;
--text-strong: #1e293b;
--text-normal: #334155;
--text-muted: #64748b;
--title-blue: #0b84d8;
--tag-bg: #eff6ff;
--tag-border: #bfdbfe;
--tag-text: #1d4ed8;
--link-bg: #f8fafc;
--link-border: #dbe4ef;
--link-text: #475569;
--shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
--shadow-card: 0 6px 18px rgba(15, 23, 42, 0.06);
--radius-panel: 24px;
--radius-card: 22px;
--radius-note: 14px;
--font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 32px;
font-family: var(--font);
color: var(--text-normal);
background:
radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 30%),
radial-gradient(circle at top right, rgba(147, 197, 253, 0.18), transparent 32%),
linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 100%);
}
.page {
max-width: 1480px;
margin: 0 auto;
}
.hero {
padding: 22px 26px;
border: 1px solid var(--panel-border);
border-radius: var(--radius-panel);
background: var(--panel-bg);
backdrop-filter: blur(18px);
box-shadow: var(--shadow-soft);
}
.hero h1 {
margin: 0;
font-size: 30px;
color: var(--text-strong);
letter-spacing: -0.02em;
}
.hero p {
margin: 10px 0 0;
line-height: 1.65;
color: var(--text-muted);
max-width: 980px;
}
.legend {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 16px;
}
.legend-chip {
padding: 7px 12px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.92);
border: 1px solid #d9e5f3;
font-size: 13px;
color: var(--text-muted);
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 22px;
margin-top: 24px;
}
.scheme {
border-radius: var(--radius-panel);
background: rgba(255, 255, 255, 0.86);
border: 1px solid var(--panel-border);
box-shadow: var(--shadow-soft);
overflow: hidden;
}
.scheme-head {
padding: 18px 20px 14px;
border-bottom: 1px solid rgba(148, 163, 184, 0.14);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.72));
}
.scheme-kicker {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
color: var(--scheme-accent);
background: var(--scheme-pill-bg);
}
.scheme h2 {
margin: 12px 0 4px;
font-size: 22px;
color: var(--text-strong);
}
.scheme p {
margin: 0;
line-height: 1.6;
color: var(--text-muted);
font-size: 14px;
}
.scheme-body {
padding: 18px;
}
.repo-card {
padding: 18px;
border-radius: var(--radius-card);
background: var(--card-bg);
border: 1px solid var(--card-border);
box-shadow: var(--shadow-card);
}
.repo-title {
margin: 0;
font-size: 22px;
line-height: 1.2;
color: var(--title-blue);
font-weight: 700;
}
.repo-subtitle {
margin-top: 10px;
color: var(--text-muted);
font-size: 14px;
line-height: 1.65;
}
.chip-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 14px;
}
.tag-chip,
.link-chip {
display: inline-block;
max-width: 100%;
min-width: 0;
padding: 4px 9px;
border-radius: 10px;
font-size: 12px;
line-height: 1.45;
}
.tag-chip {
background: var(--tag-bg);
border: 1px solid var(--tag-border);
color: var(--tag-text);
font-weight: 600;
white-space: nowrap;
}
.link-chip {
background: var(--link-bg);
border: 1px solid var(--link-border);
color: var(--link-text);
word-break: break-all;
white-space: normal;
}
.note-card {
margin-top: 16px;
padding: 14px 15px;
border-radius: var(--radius-note);
border: 1px solid var(--note-border);
border-left: 4px solid var(--note-accent);
background: var(--note-bg);
color: var(--text-normal);
line-height: 1.68;
white-space: pre-wrap;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.meta-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 16px;
font-size: 12px;
color: var(--text-muted);
}
.pick-hint {
margin-top: 14px;
padding: 12px 14px;
border-radius: 14px;
background: rgba(241, 245, 249, 0.72);
border: 1px dashed rgba(148, 163, 184, 0.36);
font-size: 13px;
line-height: 1.6;
color: var(--text-muted);
}
.scheme-current {
--scheme-accent: #475569;
--scheme-pill-bg: rgba(226, 232, 240, 0.9);
--note-bg: linear-gradient(135deg, #f1f5f9 0%, #e8eef5 100%);
--note-border: #d8e1ec;
--note-accent: #94a3b8;
}
.scheme-sky {
--scheme-accent: #0b84d8;
--scheme-pill-bg: rgba(224, 242, 254, 0.95);
--note-bg: linear-gradient(135deg, #f6fbff 0%, #eef6ff 100%);
--note-border: #d7e7f7;
--note-accent: #4ea1f3;
}
.scheme-paper {
--scheme-accent: #b7791f;
--scheme-pill-bg: rgba(254, 243, 199, 0.92);
--note-bg: linear-gradient(135deg, #fffaf0 0%, #fff3dd 100%);
--note-border: #f1dfb3;
--note-accent: #e7b95a;
}
.scheme-mint {
--scheme-accent: #0f766e;
--scheme-pill-bg: rgba(204, 251, 241, 0.92);
--note-bg: linear-gradient(135deg, #f2fffb 0%, #e7faf3 100%);
--note-border: #cbeee1;
--note-accent: #3eb98f;
}
.scheme-ink {
--scheme-accent: #7c3aed;
--scheme-pill-bg: rgba(237, 233, 254, 0.92);
--note-bg: linear-gradient(135deg, #faf7ff 0%, #f1ecff 100%);
--note-border: #ddd3fb;
--note-accent: #9a7bf5;
}
@media (max-width: 900px) {
body {
padding: 18px;
}
.hero h1 {
font-size: 26px;
}
}
</style>
</head>
<body>
<div class="page">
<section class="hero">
<h1>笔记卡片填充色 Demo</h1>
<p>这个页面只对比“仓库卡片里的笔记块”视觉处理,其他元素保持尽量一致。每个方案都用了同一份标题、标签、长链接和多行笔记内容,方便你直接判断哪种底色最顺眼、最不抢戏,也最适合和当前插件整体风格放在一起。</p>
<div class="legend">
<span class="legend-chip">同一内容</span>
<span class="legend-chip">长链接换行已纳入观察</span>
<span class="legend-chip">笔记区不带 emoji 前缀</span>
<span class="legend-chip">建议优先看“卡片整体平衡感”</span>
</div>
</section>
<section class="grid">
<article class="scheme scheme-current">
<div class="scheme-head">
<span class="scheme-kicker">方案 A · 当前中性灰</span>
<h2>稳,但偏淡</h2>
<p>最不出错,识别感也最低,笔记像“附属说明”,不太像真正需要被看见的内容。</p>
</div>
<div class="scheme-body">
<div class="repo-card">
<h3 class="repo-title">cloudclaw</h3>
<div class="repo-subtitle">一个用于聚合多模型调用能力的工具集,接口设计和路由层都比较轻。</div>
<div class="chip-row">
<span class="tag-chip">tooling</span>
<span class="tag-chip">agent</span>
<span class="link-chip">↗ https://www.bilibili.com/video/BV1ekwfz2EhS</span>
</div>
<div class="note-card">这个仓库我主要关注:
1. 多模型路由策略
2. 限流和缓存是否做得足够轻量
3. 后面可以参考它的错误处理和重试机制</div>
<div class="meta-row">
<span>TypeScript</span>
<span>⭐ 2.8k</span>
<span>更新于 3 天前</span>
</div>
</div>
<div class="pick-hint">适合:你想让笔记更“退后”,只作为补充信息存在。</div>
</div>
</article>
<article class="scheme scheme-sky">
<div class="scheme-head">
<span class="scheme-kicker">方案 B · 浅蓝推荐</span>
<h2>清爽,和当前按钮体系一致</h2>
<p>比白底更有识别度,但不会太跳;和现有蓝色标题、编辑按钮、链接色天然同一套语言。</p>
</div>
<div class="scheme-body">
<div class="repo-card">
<h3 class="repo-title">cloudclaw</h3>
<div class="repo-subtitle">一个用于聚合多模型调用能力的工具集,接口设计和路由层都比较轻。</div>
<div class="chip-row">
<span class="tag-chip">tooling</span>
<span class="tag-chip">agent</span>
<span class="link-chip">↗ https://www.bilibili.com/video/BV1ekwfz2EhS</span>
</div>
<div class="note-card">这个仓库我主要关注:
1. 多模型路由策略
2. 限流和缓存是否做得足够轻量
3. 后面可以参考它的错误处理和重试机制</div>
<div class="meta-row">
<span>TypeScript</span>
<span>⭐ 2.8k</span>
<span>更新于 3 天前</span>
</div>
</div>
<div class="pick-hint">推荐理由:强调“这是笔记”,但不至于压过仓库标题和标签。</div>
</div>
</article>
<article class="scheme scheme-paper">
<div class="scheme-head">
<span class="scheme-kicker">方案 C · 便签米黄</span>
<h2>最像“注释/批注”</h2>
<p>存在感最强,容易让人立刻把它理解成个人备注区,但也更容易成为视觉主角。</p>
</div>
<div class="scheme-body">
<div class="repo-card">
<h3 class="repo-title">cloudclaw</h3>
<div class="repo-subtitle">一个用于聚合多模型调用能力的工具集,接口设计和路由层都比较轻。</div>
<div class="chip-row">
<span class="tag-chip">tooling</span>
<span class="tag-chip">agent</span>
<span class="link-chip">↗ https://www.bilibili.com/video/BV1ekwfz2EhS</span>
</div>
<div class="note-card">这个仓库我主要关注:
1. 多模型路由策略
2. 限流和缓存是否做得足够轻量
3. 后面可以参考它的错误处理和重试机制</div>
<div class="meta-row">
<span>TypeScript</span>
<span>⭐ 2.8k</span>
<span>更新于 3 天前</span>
</div>
</div>
<div class="pick-hint">适合:你希望笔记块像“我的个人判断”或“重点摘录”。</div>
</div>
</article>
<article class="scheme scheme-mint">
<div class="scheme-head">
<span class="scheme-kicker">方案 D · 薄荷浅绿</span>
<h2>信息感更轻,呼吸感更强</h2>
<p>比蓝色更柔和,也比米黄更克制,适合想让笔记看起来“整理过、很干净”的感觉。</p>
</div>
<div class="scheme-body">
<div class="repo-card">
<h3 class="repo-title">cloudclaw</h3>
<div class="repo-subtitle">一个用于聚合多模型调用能力的工具集,接口设计和路由层都比较轻。</div>
<div class="chip-row">
<span class="tag-chip">tooling</span>
<span class="tag-chip">agent</span>
<span class="link-chip">↗ https://www.bilibili.com/video/BV1ekwfz2EhS</span>
</div>
<div class="note-card">这个仓库我主要关注:
1. 多模型路由策略
2. 限流和缓存是否做得足够轻量
3. 后面可以参考它的错误处理和重试机制</div>
<div class="meta-row">
<span>TypeScript</span>
<span>⭐ 2.8k</span>
<span>更新于 3 天前</span>
</div>
</div>
<div class="pick-hint">适合:你希望整体看起来更轻盈,不那么“工具化”。</div>
</div>
</article>
<article class="scheme scheme-ink">
<div class="scheme-head">
<span class="scheme-kicker">方案 E · 低饱和淡紫</span>
<h2>更有设计感,但风险略高</h2>
<p>有一点点编辑器/知识库产品的气质,适合偏精致风格,但如果主题太多会稍显跳脱。</p>
</div>
<div class="scheme-body">
<div class="repo-card">
<h3 class="repo-title">cloudclaw</h3>
<div class="repo-subtitle">一个用于聚合多模型调用能力的工具集,接口设计和路由层都比较轻。</div>
<div class="chip-row">
<span class="tag-chip">tooling</span>
<span class="tag-chip">agent</span>
<span class="link-chip">↗ https://www.bilibili.com/video/BV1ekwfz2EhS</span>
</div>
<div class="note-card">这个仓库我主要关注:
1. 多模型路由策略
2. 限流和缓存是否做得足够轻量
3. 后面可以参考它的错误处理和重试机制</div>
<div class="meta-row">
<span>TypeScript</span>
<span>⭐ 2.8k</span>
<span>更新于 3 天前</span>
</div>
</div>
<div class="pick-hint">适合:你想要比常规蓝绿更“有一点性格”的方案。</div>
</div>
</article>
</section>
</div>
</body>
</html>

View file

@ -45,7 +45,7 @@ const REPO_RENDER_BUDGET_CHECK_INTERVAL = 4;
const PERF_DURATION_SAMPLE_WINDOW_SIZE = 120;
const PERF_LONG_TASK_THRESHOLD_MS = 50;
const PERF_LONG_TASK_WINDOW_MS = 30_000;
const REPO_CARD_RENDER_SCHEMA_VERSION = '20260430-tag-row-links-v1';
const REPO_CARD_RENDER_SCHEMA_VERSION = '20260502-tag-link-rows-v4';
const REPO_GRID_COLUMN_WIDTH = 280;
const REPO_GRID_COLUMN_GAP = 16;
const REPO_GRID_HORIZONTAL_PADDING = 32;
@ -3194,27 +3194,36 @@ export class GithubStarsView extends ItemView {
linkEl.setAttribute('role', 'link');
linkEl.setAttribute('tabindex', '0');
const tags = Array.isArray(repo.tags) ? repo.tags : [];
const projectLinks = normalizeProjectLinks(repo.project_links);
if ((Array.isArray(repo.tags) && repo.tags.length > 0) || projectLinks.length > 0) {
if (tags.length > 0) {
const titleTagsEl = titleGroupEl.createEl('div', { cls: 'github-stars-repo-title-tags' });
if (Array.isArray(repo.tags)) {
repo.tags.forEach((tag) => {
const tagEl = titleTagsEl.createEl('span', {
cls: 'github-stars-repo-tag',
text: tag
});
this.applyTagColorStyle(tagEl, tag);
tagEl.setAttribute('data-repo-action', 'toggle-tag-filter');
tagEl.setAttribute('data-tag-name', tag);
tags.forEach((tag) => {
const tagEl = titleTagsEl.createEl('span', {
cls: 'github-stars-repo-tag',
text: tag
});
}
this.applyTagColorStyle(tagEl, tag);
tagEl.setAttribute('data-repo-action', 'toggle-tag-filter');
tagEl.setAttribute('data-tag-name', tag);
});
}
if (projectLinks.length > 0) {
const projectLinksEl = titleGroupEl.createEl('div', { cls: 'github-stars-repo-project-links' });
projectLinks.forEach((projectLink) => {
const linkChipEl = titleTagsEl.createEl('a', {
const linkChipEl = projectLinksEl.createEl('a', {
cls: 'github-stars-repo-project-link',
text: `${t('view.projectLinkPrefix')} ${projectLink.label}`,
href: '#'
});
linkChipEl.createEl('span', {
cls: 'github-stars-repo-project-link-prefix',
text: t('view.projectLinkPrefix')
});
linkChipEl.createEl('span', {
cls: 'github-stars-repo-project-link-label',
text: projectLink.label
});
linkChipEl.setAttribute('data-repo-action', 'open-project-link');
linkChipEl.setAttribute('data-project-link-url', projectLink.url);
linkChipEl.setAttribute('data-repo-id', String(repo.id));
@ -3298,13 +3307,8 @@ export class GithubStarsView extends ItemView {
if (repo.notes) {
const notesContainer = containerEl.createEl('div', { cls: 'github-stars-repo-notes' });
notesContainer.createEl('span', {
cls: 'github-stars-repo-notes-icon',
text: '📝'
});
const contentEl = notesContainer.createEl('div', { cls: 'github-stars-repo-notes-content' });
EmojiUtils.setEmojiText(contentEl, repo.notes);
contentEl.textContent = repo.notes;
}
if (repo.linked_note) {

View file

@ -684,14 +684,14 @@
border: 1px solid var(--background-modifier-border);
}
.github-stars-repo-title-group {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: flex-start; /* 改为顶部对齐,确保内容可见 */
gap: 4px; /* 添加间距 */
}
.github-stars-repo-title-group {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: flex-start; /* 改为顶部对齐,确保内容可见 */
gap: 0;
}
.github-stars-repo-title {
font-weight: 600; /* 稍微减轻字重 */
@ -754,6 +754,108 @@
flex-direction: column;
gap: 10px;
}
.github-stars-container {
--github-stars-note-bg:
linear-gradient(135deg,
rgba(var(--interactive-accent-rgb), 0.1) 0%,
rgba(var(--interactive-accent-rgb), 0.04) 100%),
linear-gradient(180deg,
var(--background-primary) 0%,
var(--background-secondary) 100%);
--github-stars-note-border: rgba(var(--interactive-accent-rgb), 0.18);
--github-stars-note-border-hover: rgba(var(--interactive-accent-rgb), 0.3);
--github-stars-note-accent: rgb(var(--interactive-accent-rgb));
--github-stars-note-accent-hover: var(--interactive-accent-hover);
--github-stars-note-inner-highlight: rgba(255, 255, 255, 0.4);
--github-stars-note-shadow:
inset 0 1px 0 var(--github-stars-note-inner-highlight),
0 4px 12px rgba(15, 23, 42, 0.08);
--github-stars-note-shadow-hover:
inset 0 1px 0 var(--github-stars-note-inner-highlight),
0 8px 20px rgba(15, 23, 42, 0.12);
--github-stars-project-link-bg:
linear-gradient(135deg,
rgba(var(--interactive-accent-rgb), 0.18) 0%,
rgba(var(--interactive-accent-rgb), 0.08) 100%),
linear-gradient(180deg,
var(--background-primary) 0%,
var(--background-secondary) 100%);
--github-stars-project-link-border: rgba(var(--interactive-accent-rgb), 0.32);
--github-stars-project-link-border-hover: rgba(var(--interactive-accent-rgb), 0.48);
--github-stars-project-link-color: var(--text-normal);
--github-stars-project-link-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.34),
0 1px 0 rgba(var(--interactive-accent-rgb), 0.16),
0 4px 10px rgba(15, 23, 42, 0.09);
--github-stars-project-link-shadow-hover:
inset 0 1px 0 rgba(255, 255, 255, 0.42),
0 0 0 1px rgba(var(--interactive-accent-rgb), 0.12),
0 6px 16px rgba(15, 23, 42, 0.12);
--github-stars-project-link-prefix-bg: rgba(var(--interactive-accent-rgb), 0.16);
--github-stars-project-link-prefix-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.theme-light .github-stars-container {
--github-stars-note-bg:
linear-gradient(135deg,
rgba(var(--interactive-accent-rgb), 0.12) 0%,
rgba(var(--interactive-accent-rgb), 0.05) 100%),
linear-gradient(180deg,
var(--background-primary) 0%,
var(--background-secondary) 100%);
--github-stars-note-border: rgba(var(--interactive-accent-rgb), 0.18);
--github-stars-note-border-hover: rgba(var(--interactive-accent-rgb), 0.32);
--github-stars-note-inner-highlight: rgba(255, 255, 255, 0.46);
--github-stars-project-link-bg:
linear-gradient(135deg,
rgba(var(--interactive-accent-rgb), 0.2) 0%,
rgba(var(--interactive-accent-rgb), 0.08) 100%),
linear-gradient(180deg,
var(--background-primary) 0%,
var(--background-secondary) 100%);
--github-stars-project-link-border: rgba(var(--interactive-accent-rgb), 0.34);
--github-stars-project-link-border-hover: rgba(var(--interactive-accent-rgb), 0.52);
--github-stars-project-link-prefix-bg: rgba(var(--interactive-accent-rgb), 0.18);
}
.theme-dark .github-stars-container {
--github-stars-note-bg:
linear-gradient(135deg,
rgba(var(--interactive-accent-rgb), 0.2) 0%,
rgba(var(--interactive-accent-rgb), 0.08) 100%),
linear-gradient(180deg,
var(--background-secondary) 0%,
var(--background-secondary-alt) 100%);
--github-stars-note-border: rgba(var(--interactive-accent-rgb), 0.28);
--github-stars-note-border-hover: rgba(var(--interactive-accent-rgb), 0.42);
--github-stars-note-inner-highlight: rgba(255, 255, 255, 0.08);
--github-stars-note-shadow:
inset 0 1px 0 var(--github-stars-note-inner-highlight),
0 6px 18px rgba(0, 0, 0, 0.22);
--github-stars-note-shadow-hover:
inset 0 1px 0 rgba(255, 255, 255, 0.1),
0 10px 24px rgba(0, 0, 0, 0.28);
--github-stars-project-link-bg:
linear-gradient(135deg,
rgba(var(--interactive-accent-rgb), 0.3) 0%,
rgba(var(--interactive-accent-rgb), 0.12) 100%),
linear-gradient(180deg,
var(--background-secondary) 0%,
var(--background-secondary-alt) 100%);
--github-stars-project-link-border: rgba(var(--interactive-accent-rgb), 0.42);
--github-stars-project-link-border-hover: rgba(var(--interactive-accent-rgb), 0.58);
--github-stars-project-link-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.1),
0 1px 0 rgba(var(--interactive-accent-rgb), 0.18),
0 4px 12px rgba(0, 0, 0, 0.22);
--github-stars-project-link-shadow-hover:
inset 0 1px 0 rgba(255, 255, 255, 0.14),
0 0 0 1px rgba(var(--interactive-accent-rgb), 0.18),
0 8px 18px rgba(0, 0, 0, 0.28);
--github-stars-project-link-prefix-bg: rgba(var(--interactive-accent-rgb), 0.24);
--github-stars-project-link-prefix-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.github-stars-repo-tags {
display: flex;
@ -763,43 +865,92 @@
}
/* New styles for tags in title group */
.github-stars-repo-title-tags {
display: flex;
flex-wrap: wrap;
gap: 4px; /* 小红书风格的紧凑间距 */
margin-top: 4px;
margin-bottom: 6px;
min-height: 16px;
}
.github-stars-repo-title-tags {
display: flex;
align-items: flex-start;
flex-wrap: wrap;
gap: 4px; /* 小红书风格的紧凑间距 */
margin-top: 0;
margin-bottom: 4px;
min-height: 16px;
}
.github-stars-repo-title-tags .github-stars-repo-tag {
display: inline-flex;
align-items: center;
align-self: flex-start;
padding: 2px 6px; /* 小红书风格的小标签 */
font-size: 0.7em;
line-height: 1.2;
border-radius: 8px; /* 小圆角 */
white-space: nowrap;
}
.github-stars-repo-project-links {
display: flex;
align-items: flex-start;
flex-wrap: wrap;
gap: 6px;
min-width: 0;
}
.github-stars-repo-project-link {
display: inline-block;
padding: 2px 6px;
border-radius: 8px;
font-size: 0.7em;
font-weight: 500;
display: inline-flex;
align-items: flex-start;
gap: 6px;
flex: 0 1 auto;
min-width: 0;
max-width: 100%;
padding: 4px 9px;
border-radius: 10px;
font-size: 0.74em;
font-weight: 600;
line-height: 1.45;
text-decoration: none;
color: var(--text-muted);
background-color: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
white-space: nowrap;
transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
color: var(--github-stars-project-link-color);
background: var(--github-stars-project-link-bg);
border: 1px solid var(--github-stars-project-link-border);
white-space: normal;
word-break: normal;
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
border-color 0.2s ease,
color 0.2s ease,
background 0.2s ease;
box-shadow: var(--github-stars-project-link-shadow);
}
.github-stars-repo-project-link:hover {
transform: translateY(-1px);
filter: brightness(1.04);
color: var(--text-normal);
border-color: var(--github-stars-project-link-border-hover);
box-shadow: var(--github-stars-project-link-shadow-hover);
color: var(--github-stars-project-link-color);
text-decoration: none;
}
.github-stars-repo-project-link-prefix {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
min-width: 1.35em;
height: 1.35em;
margin-top: 0.05em;
padding: 0 0.2em;
border-radius: 999px;
font-size: 0.92em;
font-weight: 700;
line-height: 1;
color: inherit;
background: var(--github-stars-project-link-prefix-bg);
box-shadow: var(--github-stars-project-link-prefix-shadow);
}
.github-stars-repo-project-link-label {
min-width: 0;
overflow-wrap: anywhere;
}
.github-stars-repo-tag {
display: inline-block;
@ -926,30 +1077,28 @@
/* 笔记容器 - 现代卡片风格 */
.github-stars-repo-notes {
padding: 12px 14px;
border-radius: 8px;
background: linear-gradient(135deg,
var(--background-secondary) 0%,
var(--background-secondary-alt) 100%);
border: 1px solid var(--background-modifier-border);
border-left: 3px solid var(--interactive-accent);
box-shadow:
0 2px 4px rgba(0, 0, 0, 0.06),
0 4px 12px rgba(0, 0, 0, 0.08);
transition: all 0.2s ease;
display: flex;
align-items: flex-start;
gap: 10px;
}
.github-stars-repo-notes:hover {
box-shadow:
0 4px 8px rgba(0, 0, 0, 0.1),
0 8px 20px rgba(0, 0, 0, 0.12);
border-color: var(--interactive-accent);
border-left-color: var(--interactive-accent-hover);
transform: translateY(-1px);
}
padding: 14px 15px;
border-radius: 14px;
background: var(--github-stars-note-bg);
border: 1px solid var(--github-stars-note-border);
border-left: 4px solid var(--github-stars-note-accent);
box-shadow: var(--github-stars-note-shadow);
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
border-color 0.2s ease,
border-left-color 0.2s ease,
background 0.2s ease;
display: block;
overflow: hidden;
}
.github-stars-repo-notes:hover {
box-shadow: var(--github-stars-note-shadow-hover);
border-color: var(--github-stars-note-border-hover);
border-left-color: var(--github-stars-note-accent-hover);
transform: translateY(-1px);
}
/* 笔记图标 */
.github-stars-repo-notes-icon {
@ -960,13 +1109,14 @@
}
/* 笔记内容 */
.github-stars-repo-notes-content {
flex: 1;
font-size: 0.9em;
color: var(--text-normal);
line-height: 1.5;
word-wrap: break-word;
}
.github-stars-repo-notes-content {
font-size: 0.9em;
color: var(--text-normal);
line-height: 1.68;
word-wrap: break-word;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.github-stars-repo-linked-note {
margin-top: 8px;