Files
stash-ui/src/components/Brand.module.css
T
CNWei 50056a7154 fix(ui): Brand 标记的前景改用卡片底色
深色下 --su-text-main 是近白色,写死的白字会整块糊掉;
改成 color: var(--su-bg-card) 后浅色仍是白字、深色自动变成深字。
2026-11-01 15:41:18 +08:00

59 lines
1.2 KiB
CSS

.root {
display: inline-flex;
align-items: center;
gap: var(--su-space-2);
color: var(--su-text-main);
text-decoration: none;
}
.mark {
display: grid;
place-items: center;
flex-shrink: 0;
width: 32px;
height: 32px;
border-radius: var(--su-radius-pill);
/* 前景取卡片底色而不是写死白色:深色下 text-main 变成近白色,
再配白字就整块糊掉了 */
background-color: var(--su-text-main);
color: var(--su-bg-card);
font-size: var(--su-font-size-base);
font-weight: var(--su-font-weight-strong);
}
.logo {
flex-shrink: 0;
width: 32px;
height: 32px;
border-radius: var(--su-radius-sm);
object-fit: contain;
}
.name {
font-size: var(--su-font-size-lg);
line-height: var(--su-line-height-lg);
letter-spacing: 0.04em;
}
/* 小号:标记 24,文字回到正文尺寸 */
.sm .mark,
.sm .logo {
width: 24px;
height: 24px;
}
.sm .mark {
font-size: var(--su-font-size-sm);
}
.sm .name {
font-size: var(--su-font-size-base);
line-height: var(--su-line-height-base);
}
/* 浅底标记:主色字 + 主色柔和底 */
.soft .mark {
background-color: var(--su-color-primary-soft);
color: var(--su-color-primary);
}