fix
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-09 01:54:02 -06:00
parent 5890373f46
commit 83e89b473f
9 changed files with 57 additions and 31 deletions

View File

@@ -1,8 +1,23 @@
import { tags as t } from "@lezer/highlight"
import { EditorView } from "@codemirror/view"
import type { Extension } from "@codemirror/state"
import { createTheme } from "./createTheme"
const tooltipTheme = EditorView.theme({
".cm-tooltip": {
border: "1px solid #e0e0e0",
backgroundColor: "#f8f8f8",
},
".cm-tooltip-autocomplete": {
"& > ul > li[aria-selected]": {
backgroundColor: "#e8e8e8",
color: "#000000",
},
},
})
// Author: Kenneth Reitz
export const smoothy = createTheme({
const smoothyBase = createTheme({
variant: "light",
settings: {
background: "#FFFFFF",
@@ -81,3 +96,5 @@ export const smoothy = createTheme({
},
],
})
export const smoothy: Extension = [smoothyBase, tooltipTheme]