Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): backlinks styles #9126

Draft
wants to merge 1 commit into
base: canary
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export const link = style({
alignItems: 'center',
gap: '4px',
whiteSpace: 'nowrap',
borderRadius: '4px',
':hover': {
backgroundColor: cssVarV2('layer/background/hoverOverlay'),
},
});

globalStyle(`${link} .affine-reference-title`, {
Expand All @@ -88,17 +92,20 @@ globalStyle(`${link} .affine-reference-title`, {
export const linkPreviewContainer = style({
display: 'flex',
flexDirection: 'column',
gap: '12px',
marginTop: '4px',
marginBottom: '16px',
});

export const linkPreview = style({
border: `1px solid ${cssVarV2('layer/insideBorder/border')}`,
border: `0.5px solid ${cssVarV2('layer/insideBorder/border')}`,
borderRadius: '8px',
padding: '8px',
marginBottom: '8px',
color: cssVarV2('text/primary'),
vars: {
[cssVar('fontFamily')]: cssVar('fontSansFamily'),
},
backgroundColor: cssVarV2('layer/background/secondary'),
':hover': {
backgroundColor: cssVarV2('layer/background/hoverOverlay'),
},
Expand Down
Loading