codemirror.css.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Styles for CodeMirror editor
  5. * for the pmahomme theme
  6. *
  7. * @package PhpMyAdmin-theme
  8. * @subpackage PMAHomme
  9. */
  10. // unplanned execution path
  11. if (! defined('PHPMYADMIN') && ! defined('TESTSUITE')) {
  12. exit();
  13. }
  14. ?>
  15. .CodeMirror {
  16. height: <?php echo ceil($GLOBALS['cfg']['TextareaRows'] * 1.2); ?>em;
  17. direction: ltr;
  18. }
  19. #inline_editor_outer .CodeMirror {
  20. height: <?php echo ceil($GLOBALS['cfg']['TextareaRows'] * 0.4); ?>em;
  21. }
  22. .insertRowTable .CodeMirror {
  23. height: <?php echo ceil($GLOBALS['cfg']['TextareaRows'] * 0.6); ?>em;
  24. width: <?php echo ceil($GLOBALS['cfg']['TextareaCols'] * 0.6); ?>em;
  25. border: 1px solid #a9a9a9;
  26. }
  27. #pma_console .CodeMirror-gutters {
  28. background-color: initial;
  29. border: none;
  30. }
  31. span.cm-keyword, span.cm-statement-verb {
  32. color: #909;
  33. }
  34. span.cm-variable {
  35. color: black;
  36. }
  37. span.cm-comment {
  38. color: #808000;
  39. }
  40. span.cm-mysql-string {
  41. color: #008000;
  42. }
  43. span.cm-operator {
  44. color: fuchsia;
  45. }
  46. span.cm-mysql-word {
  47. color: black;
  48. }
  49. span.cm-builtin {
  50. color: #f00;
  51. }
  52. span.cm-variable-2 {
  53. color: #f90;
  54. }
  55. span.cm-variable-3 {
  56. color: #00f;
  57. }
  58. span.cm-separator {
  59. color: fuchsia;
  60. }
  61. span.cm-number {
  62. color: teal;
  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. }
  76. .CodeMirror-lint-tooltip {
  77. z-index: 200;
  78. font-family: inherit;
  79. }
  80. .CodeMirror-lint-tooltip code {
  81. font-family: monospace;
  82. font-weight: bold;
  83. }