- 在frontend-config.md中补充组件源码目录说明 - 统一文档中组件路径的表示方式(@docs/widget → /docs/widget) - 从导航栏社交链接中移除GitHub图标 - 新增GitHubStar组件,在导航栏显示项目星标数 - 添加对应样式支持星标组件显示效果
63 lines
1.2 KiB
CSS
63 lines
1.2 KiB
CSS
:root {
|
|
--vp-home-hero-name-color: transparent;
|
|
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #F08E1F, #ED6127);
|
|
--vp-c-brand-1: #ed6127;
|
|
--vp-c-brand-2: #ed6127;
|
|
--vp-c-brand-3: #ed6127;
|
|
--vp-c-brand-soft: rgba(237, 97, 39, 0.14);
|
|
}
|
|
|
|
.dark {
|
|
--vp-c-brand-1: #ed6127;
|
|
--vp-c-brand-2: #ed6127;
|
|
--vp-c-brand-3: #ed6127;
|
|
--vp-c-brand-soft: rgba(240, 142, 31, 0.18);
|
|
}
|
|
|
|
.extra-class {
|
|
max-width: 1200px;
|
|
margin: 2em auto 0;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.image-src {
|
|
max-width: 200px !important;
|
|
}
|
|
|
|
.github-star-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 2px 8px;
|
|
margin-left: 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--vp-c-border);
|
|
font-size: 12px;
|
|
color: var(--vp-c-text-1);
|
|
text-decoration: none;
|
|
transition:
|
|
background-color 0.2s ease,
|
|
border-color 0.2s ease,
|
|
color 0.2s ease;
|
|
}
|
|
|
|
.github-star-link:hover {
|
|
background-color: var(--vp-c-bg-soft);
|
|
border-color: var(--vp-c-brand-1);
|
|
color: var(--vp-c-brand-1);
|
|
}
|
|
|
|
.github-star-icon svg {
|
|
width: 16px;
|
|
}
|
|
|
|
.github-star-text {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.github-star-count {
|
|
margin-left: 4px;
|
|
font-weight: 600;
|
|
}
|