_codemirror.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. $textarea-cols: 40;
  2. $textarea-rows: 15;
  3. .CodeMirror {
  4. color: $Color-Text-Main;
  5. background: #1e1e1e;
  6. height: 20rem;
  7. direction: ltr;
  8. }
  9. .CodeMirror-gutters {
  10. border-right: 1px solid #7f7f7f;
  11. background-color: #1e1e1e;
  12. }
  13. .CodeMirror::selection,
  14. .CodeMirror-line::selection,
  15. .CodeMirror-line > span::selection,
  16. .CodeMirror-line > span > span::selection {
  17. background: $Color-Azure;
  18. color: $Color-White;
  19. }
  20. #inline_editor_outer .CodeMirror {
  21. height: ceil($textarea-rows * 0.4em);
  22. }
  23. .insertRowTable .CodeMirror {
  24. min-height: ceil($textarea-rows * 0.6em);
  25. min-width: ceil($textarea-cols * 0.6em);
  26. border: 1px solid #a9a9a9;
  27. }
  28. #pma_console .CodeMirror-gutters {
  29. background-color: initial;
  30. border: none;
  31. }
  32. .CodeMirror-cursor {
  33. border-color: $Color-Text-Main;
  34. }
  35. .cm-s-default span,
  36. span {
  37. &.cm-meta {
  38. color: #569cd6;
  39. }
  40. &.cm-keyword,
  41. &.cm-statement-verb {
  42. color: #569cd6;
  43. }
  44. &.cm-def {
  45. color: #9cdcfe;
  46. }
  47. &.cm-variable {
  48. color: #ddd6a3;
  49. }
  50. &.cm-variable-2 {
  51. color: #9cdcfe;
  52. }
  53. &.cm-variable-3,
  54. &.cm-type {
  55. color: #a9b7c6;
  56. }
  57. &.cm-property {
  58. color: #9cdcfe;
  59. }
  60. &.cm-operator {
  61. color: #d4d4d4;
  62. }
  63. &.cm-string {
  64. color: #ce9178;
  65. }
  66. &.cm-string-2 {
  67. color: #6a8759;
  68. }
  69. &.cm-mysql-string {
  70. color: #008000;
  71. }
  72. &.cm-mysql-word {
  73. color: white;
  74. }
  75. &.cm-comment {
  76. color: #6a9955;
  77. }
  78. &.cm-link {
  79. color: #287bde;
  80. }
  81. &.cm-atom {
  82. color: #569cd6;
  83. }
  84. &.cm-error {
  85. color: #bc3f3c;
  86. }
  87. &.cm-tag {
  88. color: #569cd6;
  89. }
  90. &.cm-attribute {
  91. color: #9cdcfe;
  92. }
  93. &.cm-qualifier {
  94. color: #d7ba7d;
  95. }
  96. &.cm-bracket {
  97. color: #d4d4d4;
  98. }
  99. &.cm-number {
  100. color: #b5cea8;
  101. }
  102. &.cm-builtin {
  103. color: #569cd6;
  104. }
  105. &.cm-separator {
  106. color: fuchsia;
  107. }
  108. }
  109. .autocomplete-column-name {
  110. display: inline-block;
  111. }
  112. .autocomplete-column-hint {
  113. display: inline-block;
  114. // float: $direction-end;
  115. color: #666;
  116. margin-#{$direction-start}: 1em;
  117. }
  118. .CodeMirror-hint {
  119. color: $Color-Text-Main;
  120. font-family: $Font-Mono;
  121. }
  122. .CodeMirror-hints {
  123. color: $Color-Text-Main;
  124. background: $Color-Body-Light;
  125. z-index: 999;
  126. }
  127. .CodeMirror-lint-tooltip {
  128. z-index: 200;
  129. font-family: inherit;
  130. code {
  131. font-family: monospace;
  132. font-weight: bold;
  133. }
  134. }