mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 08:26:35 +00:00
style(editor): refine selection layer and cursor appearance
- Hide default cm-selectionBackground in favor of custom cm-vscodeSelection rendering layer - Adjust cursor height and vertical alignment - Style custom VSCode selection overlay with opacity and color
This commit is contained in:
@@ -109,8 +109,15 @@ export function buildEditorFontThemeRules(
|
||||
padding: "0 2px !important",
|
||||
},
|
||||
".cm-selectionLayer .cm-selectionBackground": {
|
||||
transform: "scaleY(1.55)",
|
||||
transformOrigin: "center",
|
||||
display: "none",
|
||||
},
|
||||
".cm-cursor": {
|
||||
height: "1.6em !important",
|
||||
transform: "translateY(-0.3em)",
|
||||
},
|
||||
".cm-vscodeSelection": {
|
||||
opacity: "0.38",
|
||||
background: "rgb(148, 163, 184)",
|
||||
},
|
||||
".cm-gutters": {
|
||||
borderRight: "0 !important",
|
||||
|
||||
Reference in New Issue
Block a user