tern.css 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. .CodeMirror-Tern-completion {
  2. padding-left: 22px;
  3. position: relative;
  4. line-height: 1.5;
  5. }
  6. .CodeMirror-Tern-completion:before {
  7. position: absolute;
  8. left: 2px;
  9. bottom: 2px;
  10. border-radius: 50%;
  11. font-size: 12px;
  12. font-weight: bold;
  13. height: 15px;
  14. width: 15px;
  15. line-height: 16px;
  16. text-align: center;
  17. color: white;
  18. -moz-box-sizing: border-box;
  19. box-sizing: border-box;
  20. }
  21. .CodeMirror-Tern-completion-unknown:before {
  22. content: "?";
  23. background: #4bb;
  24. }
  25. .CodeMirror-Tern-completion-object:before {
  26. content: "O";
  27. background: #77c;
  28. }
  29. .CodeMirror-Tern-completion-fn:before {
  30. content: "F";
  31. background: #7c7;
  32. }
  33. .CodeMirror-Tern-completion-array:before {
  34. content: "A";
  35. background: #c66;
  36. }
  37. .CodeMirror-Tern-completion-number:before {
  38. content: "1";
  39. background: #999;
  40. }
  41. .CodeMirror-Tern-completion-string:before {
  42. content: "S";
  43. background: #999;
  44. }
  45. .CodeMirror-Tern-completion-bool:before {
  46. content: "B";
  47. background: #999;
  48. }
  49. .CodeMirror-Tern-completion-guess {
  50. color: #999;
  51. }
  52. .CodeMirror-Tern-tooltip {
  53. border: 1px solid silver;
  54. border-radius: 3px;
  55. color: #444;
  56. padding: 2px 5px;
  57. font-size: 90%;
  58. font-family: monospace;
  59. background-color: white;
  60. white-space: pre-wrap;
  61. max-width: 40em;
  62. position: absolute;
  63. z-index: 10;
  64. -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
  65. -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
  66. box-shadow: 2px 3px 5px rgba(0,0,0,.2);
  67. transition: opacity 1s;
  68. -moz-transition: opacity 1s;
  69. -webkit-transition: opacity 1s;
  70. -o-transition: opacity 1s;
  71. -ms-transition: opacity 1s;
  72. }
  73. .CodeMirror-Tern-hint-doc {
  74. max-width: 25em;
  75. margin-top: -3px;
  76. }
  77. .CodeMirror-Tern-fname { color: black; }
  78. .CodeMirror-Tern-farg { color: #70a; }
  79. .CodeMirror-Tern-farg-current { text-decoration: underline; }
  80. .CodeMirror-Tern-type { color: #07c; }
  81. .CodeMirror-Tern-fhint-guess { opacity: .7; }