_code_editor.scss 1.5 KB

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