Skip to content

Commit

Permalink
fix(markup): add gravity theme to autocomplete snippet (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v authored Jun 27, 2024
1 parent 6c0792a commit 0836bce
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/markup/codemirror/gravity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,31 @@ export const gravityTheme = EditorView.baseTheme({
'&.cm-focused .cm-selectionBackground, &.cm-focused ::selection': {
background: 'var(--g-color-base-misc-medium)',
},
'.cm-tooltip.cm-tooltip-autocomplete': {
padding: '4px 0',
lineHeight: '24px',
color: 'var(--g-color-text-primary)',
fontFamily: 'var(--g-font-family-monospace)',
fontSize: 'var(--g-text-body-1-font-size)',
backgroundColor: 'var(--g-color-base-float)',
border: '1px solid var(--g-color-line-generic-solid)',
borderRadius: '4px',

'& > ul': {
'& > completion-section': {
color: 'var(--g-color-text-hint)',
fontWeight: 'var(--g-text-accent-font-weight)',
borderBottom: '1px solid var(--g-color-line-generic)',
},

'& > li:hover': {
backgroundColor: 'var(--g-color-base-simple-hover)',
},

'& > li[aria-selected]': {
backgroundColor: 'var(--g-color-base-selection)',
color: 'revert',
},
},
},
});

0 comments on commit 0836bce

Please sign in to comment.