monaco.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @reference "./globals.css";
  2. .monaco-editor {
  3. @apply relative overflow-visible;
  4. -webkit-text-size-adjust: 100%;
  5. }
  6. .monaco-editor-alt.monaco-editor-alt,
  7. .monaco-editor-alt > .monaco-editor {
  8. --vscode-editor-background: hsl(var(--background-surface-300)) !important;
  9. --vscode-editorGutter-background: hsl(var(--background-surface-300)) !important;
  10. }
  11. .monaco-editor-alt .current-line {
  12. border: 0 !important;
  13. }
  14. [data-theme='dark'] .monaco-editor,
  15. [data-theme='dark'] .monaco-diff-editor {
  16. --vscode-editor-background: hsl(var(--background-surface-100)) !important;
  17. --vscode-editorGutter-background: hsl(var(--background-surface-100)) !important;
  18. color-scheme: dark;
  19. }
  20. .monaco-editor,
  21. .monaco-diff-editor {
  22. --vscode-editor-background: hsl(var(--background-dash-sidebar)) !important;
  23. --vscode-editorGutter-background: hsl(var(--background-dash-sidebar)) !important;
  24. }
  25. .gutter {
  26. @apply bg-border-control;
  27. cursor: row-resize;
  28. }
  29. .grid-monaco-editor,
  30. .monaco-editor p,
  31. label,
  32. div,
  33. section,
  34. span.th.tr.td.textarea {
  35. /* @apply text-sm; */
  36. }
  37. .grid-monaco-editor,
  38. .monaco-editor label {
  39. font-weight: inherit;
  40. text-transform: none;
  41. padding: inherit;
  42. width: inherit;
  43. align-self: inherit;
  44. }
  45. .grid-monaco-editor,
  46. .monaco-editor label:hover {
  47. cursor: inherit;
  48. }
  49. .find-widget {
  50. margin-right: 30px;
  51. }
  52. .grid-monaco-editor,
  53. .monaco-editor .suggest-widget {
  54. .main {
  55. max-height: none;
  56. height: inherit;
  57. width: 100%;
  58. margin: inherit;
  59. padding: inherit;
  60. overflow: inherit;
  61. }
  62. .monaco-list-row.focused .main {
  63. background: var(--vscode-quickInput-background);
  64. }
  65. }