feat(frontend): unify external doc-link style and outline add buttons

- Add global .doc-link utility in theme.css (brand color text + link icon, underline on hover).

- Convert all external doc/console links across settings to use .doc-link with a trailing <t-icon name="link" />, matching the Ollama browse-library style.

- Switch primary section-toolbar 'Add X' buttons (Model/WebSearch/VectorStore/MCP/DataSource) to outline variant for a lighter, more consistent look.

- Drop redundant per-component CSS for builtin-hint-link, weknoracloud-hint-link, engine-doc-link, engine-link, hint-link, section-doc-link, ds-doc-link-inline, model-link, etc.
This commit is contained in:
wizardchen
2026-05-07 21:00:20 +08:00
committed by lyingbug
parent cc6ac6ac50
commit c77cef5a69
15 changed files with 80 additions and 166 deletions
+19
View File
@@ -160,6 +160,25 @@
color: var(--td-text-color-anti) !important;
}
/* 全局文档/外链样式:品牌色文字 + link 图标,hover 加下划线 */
.doc-link {
display: inline-flex;
align-items: center;
gap: 4px;
font-weight: 500;
color: var(--td-brand-color);
text-decoration: none;
transition: color 0.2s ease;
}
.doc-link:hover {
color: var(--td-brand-color-active);
text-decoration: underline;
}
.doc-link .link-icon {
font-size: 12px;
flex-shrink: 0;
}
/* 覆盖浏览器自动填充的背景色(Chrome 会强制加浅蓝/浅黄底色) */
input:-webkit-autofill,
input:-webkit-autofill:hover,