mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
fix(core): hide onboarding paper segments gap (#5384)
This commit is contained in:
@@ -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%)`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user