Skip to content

Commit

Permalink
fix: suggestion popover styling (#11)
Browse files Browse the repository at this point in the history
* fix: suggestion popover style

* fix: increase suggestion line height

* fix: re-add popover current color
  • Loading branch information
Yixuan-Wang authored Nov 9, 2023
1 parent 2a57677 commit 66a5590
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,37 @@ div[data-ref='logseq-live-math'] {
div#mathlive-suggestion-popover {
background-color: var(--ls-primary-background-color);
z-index: var(--ls-z-index-level-2);

& ul {
padding: 8px;
/* Limit min-width to reduce clutter */
min-width: 16ch;
gap: 0.25rem;
}

& li {
/* Suggestion item */
margin: 0;
padding: 0.25rem;
border-radius: 4px;
width: 100%;
gap: 0;

&.ML__popover__current {
background-color: var(--ls-selection-background-color);
color: var(--ls-selection-text-color);
}

& .ML__popover__latex {
flex-grow: 1;
text-align: start;
margin-right: 0.5rem;
}

& .ML__popover__command {
font-size: 1rem;
}
}
}

div#mathlive-suggestion-popover.top-tip::after {
Expand All @@ -84,7 +115,3 @@ div#mathlive-suggestion-popover.bottom-tip::after {
border-top-color: var(--ls-primary-background-color);
}

li.ML__popover__current {
background-color: var(--ls-selection-background-color);
color: var(--ls-selection-text-color);
}

0 comments on commit 66a5590

Please sign in to comment.