fix(core): hide onboarding paper segments gap (#5384)

This commit is contained in:
Cats Juice
2023-12-22 15:49:43 +08:00
committed by GitHub
parent aa74b0617c
commit 1ce4dd0497

View File

@@ -23,7 +23,27 @@ export const segment = style({
position: 'absolute',
top: `calc(var(--segments-up) / var(--segments) * 100%)`,
// add a thin line behind to hide the gap between segments
'::before': {
content: '""',
position: 'absolute',
transform: `translateZ(-1px)`,
width: '100%',
height: '2px',
background: onboardingVars.paper.bg,
},
selectors: {
['&[data-root="true"]::before']: {
content: 'none',
},
['&[data-direction="up"]::before']: {
bottom: -1,
},
['&[data-direction="down"]::before']: {
top: -1,
},
['&[data-root="true"]']: {
height: `calc(1 / var(--segments) * 100%)`,
},