Skip to content

Commit

Permalink
fix(core): backlinks styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Dec 12, 2024
1 parent 595125e commit dd5923e
Showing 1 changed file with 9 additions and 2 deletions.
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

0 comments on commit dd5923e

Please sign in to comment.