mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-09 05:05:55 +08:00
Update diagnostics style
This commit is contained in:
parent
193f2193ad
commit
ba90b0b356
1 changed files with 32 additions and 0 deletions
|
|
@ -268,6 +268,38 @@ function buildEditorTheme(colors, { dark }) {
|
|||
},
|
||||
},
|
||||
|
||||
// Diagnostics
|
||||
|
||||
".cm-tooltip-lint": {
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
gap: "8px",
|
||||
maxWidth: "600px",
|
||||
|
||||
"& .cm-diagnostic": {
|
||||
display: "flex",
|
||||
border: "none",
|
||||
margin: "0",
|
||||
|
||||
"&::before": {
|
||||
content: "'➜'",
|
||||
fontVariantLigatures: "common-ligatures",
|
||||
fontSize: "1.5em",
|
||||
lineHeight: "1",
|
||||
whiteSpace: "nowrap",
|
||||
marginRight: "6px",
|
||||
},
|
||||
|
||||
"&.cm-diagnostic-error::before": {
|
||||
color: "#be5046",
|
||||
},
|
||||
|
||||
"&.cm-diagnostic-warning::before": {
|
||||
color: "#d19a66",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// Search
|
||||
//
|
||||
// It is possible to build a fully custom panel and hook into the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue