_code_editor.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .gf-code-editor {
  2. min-height: 2.60rem;
  3. min-width: 20rem;
  4. flex-grow: 1;
  5. margin-right: 0.25rem;
  6. border: 1px solid #333333;
  7. &.ace_editor {
  8. min-height: 2.60rem;
  9. font-family: monospace;
  10. font-size: 1rem;
  11. }
  12. }
  13. .ace_editor.ace_autocomplete {
  14. // Ace editor adds <style> tag at the end of <head>, after grafana.css, so !important
  15. // is used for overriding styles with the same CSS specificity.
  16. background-color: $dropdownBackground !important;
  17. color: $dropdownLinkColor !important;
  18. border: 1px solid $dropdownBorder !important;
  19. width: 320px !important;
  20. font-family: monospace;
  21. font-size: 1rem;
  22. .ace_scroller {
  23. .ace_selected, .ace_active-line, .ace_line-hover {
  24. color: $dropdownLinkColorHover;
  25. background-color: $dropdownLinkBackgroundHover !important;
  26. }
  27. .ace_line-hover {
  28. border-color: transparent;
  29. }
  30. .ace_completion-highlight {
  31. color: $yellow;
  32. }
  33. .ace_rightAlignedText {
  34. color: $text-muted;
  35. z-index: 0;
  36. }
  37. }
  38. }
  39. .ace_tooltip.ace_doc-tooltip {
  40. background-color: $dropdownBackground;
  41. background-image: none;
  42. color: $dropdownLinkColor;
  43. border: 1px solid $dropdownBorder;
  44. font-family: monospace;
  45. font-size: 1rem;
  46. hr {
  47. background-color: $dropdownDividerBottom;
  48. }
  49. }