_codemirror.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Styles for CodeMirror editor for the Metro theme
  2. $textarea-cols: 40 !default;
  3. $textarea-rows: 15 !default;
  4. .CodeMirror {
  5. font-family: $font-family-monospace !important;
  6. height: 20rem;
  7. border: 1px solid #ccc;
  8. direction: ltr;
  9. }
  10. #pma_console .CodeMirror {
  11. border: none;
  12. }
  13. .CodeMirror * {
  14. font-family: $font-family-monospace;
  15. }
  16. #inline_editor_outer .CodeMirror {
  17. height: ceil($textarea-rows * 0.4em);
  18. margin-bottom: 10px;
  19. }
  20. .insertRowTable .CodeMirror {
  21. min-height: ceil($textarea-rows * 0.6em);
  22. min-width: ceil($textarea-cols * 0.6em);
  23. }
  24. #pma_console .CodeMirror-gutters {
  25. background-color: initial;
  26. border: none;
  27. }
  28. span {
  29. &.cm-keyword,
  30. &.cm-statement-verb {
  31. color: #909;
  32. }
  33. &.cm-variable {
  34. color: black;
  35. }
  36. &.cm-comment {
  37. color: #808000;
  38. }
  39. &.cm-mysql-string {
  40. color: #008000;
  41. }
  42. &.cm-operator {
  43. color: fuchsia;
  44. }
  45. &.cm-mysql-word {
  46. color: black;
  47. }
  48. &.cm-builtin {
  49. color: #f00;
  50. }
  51. &.cm-variable-2 {
  52. color: #f90;
  53. }
  54. &.cm-variable-3 {
  55. color: #00f;
  56. }
  57. &.cm-separator {
  58. color: fuchsia;
  59. }
  60. &.cm-number {
  61. color: teal;
  62. }
  63. }
  64. .autocomplete-column-name {
  65. display: inline-block;
  66. }
  67. .autocomplete-column-hint {
  68. display: inline-block;
  69. float: $right;
  70. color: #666;
  71. margin-#{$left}: 1em;
  72. }
  73. .CodeMirror-hints {
  74. z-index: 999;
  75. }