27 lines
667 B
TypeScript
27 lines
667 B
TypeScript
import Theme from "../themes/common/theme";
|
|
import { backgroundColor, border, popoverShadow, text } from "./components";
|
|
|
|
export default function HoverPopover(theme: Theme) {
|
|
return {
|
|
container: {
|
|
background: backgroundColor(theme, "on500"),
|
|
cornerRadius: 8,
|
|
padding: {
|
|
left: 8,
|
|
right: 8,
|
|
top: 4,
|
|
bottom: 4
|
|
},
|
|
shadow: popoverShadow(theme),
|
|
border: border(theme, "primary"),
|
|
margin: {
|
|
left: -8,
|
|
},
|
|
},
|
|
block_style: {
|
|
padding: { top: 4 },
|
|
},
|
|
prose: text(theme, "sans", "primary", { "size": "sm" }),
|
|
highlight: theme.editor.highlight.occurrence,
|
|
}
|
|
} |