_code_editor.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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: 550px !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: $font-size-sm;
  41. .ace_tooltip.ace_doc-tooltip {
  42. @include font-family-monospace();
  43. font-size: $doc-font-size;
  44. background-color: $popover-help-bg;
  45. color: $popover-help-color;
  46. background-image: none;
  47. border: 1px solid $dropdownBorder;
  48. padding: 0.5rem 1rem;
  49. hr {
  50. background-color: $popover-help-color;
  51. margin: 0.5rem 0rem;
  52. }
  53. code {
  54. padding: 0px 1px;
  55. margin: 0px;
  56. }
  57. }
  58. .ace_tooltip {
  59. border-radius: 3px;
  60. }
  61. .ace_hidden-cursors .ace_cursor {
  62. opacity: 0 !important;
  63. }