_code_editor.scss 1.6 KB

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