codemirror-default.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* Built-in CodeMirror and addon customization */
  2. .CodeMirror-hints {
  3. z-index: 999;
  4. }
  5. .CodeMirror-hint:hover {
  6. color: white;
  7. background: #08f;
  8. }
  9. .CodeMirror {
  10. border: solid #CCC 1px;
  11. transition: box-shadow .1s;
  12. }
  13. #stylus#stylus .CodeMirror {
  14. /* Using a specificity hack to override userstyles */
  15. /* Not using the ring-color hack as it became ugly in new Chrome */
  16. outline: none !important;
  17. }
  18. .CodeMirror-dialog {
  19. animation: highlight 3s cubic-bezier(.18, .02, 0, .94);
  20. }
  21. .CodeMirror-search-field {
  22. width: 10em;
  23. }
  24. .CodeMirror-jump-field {
  25. width: 5em;
  26. }
  27. .CodeMirror-search-hint {
  28. color: #888;
  29. }
  30. .CodeMirror-activeline .applies-to:before {
  31. background-color: hsla(214, 100%, 90%, 0.15);
  32. content: "";
  33. top: 1em;
  34. left: 0;
  35. right: 0;
  36. bottom: 1em;
  37. position: absolute;
  38. pointer-events: none;
  39. }
  40. .CodeMirror-activeline .applies-to ul {
  41. z-index: 2;
  42. }
  43. .CodeMirror-foldgutter-open::after,
  44. .CodeMirror-foldgutter-folded::after {
  45. top: 5px;
  46. width: 0;
  47. height: 0;
  48. content: "";
  49. position: absolute;
  50. border-style: solid;
  51. opacity: .5;
  52. left: 1px;
  53. }
  54. .CodeMirror-foldgutter-open::after {
  55. border-width: 5px 3px 0 3px;
  56. border-color: currentColor transparent transparent transparent;
  57. }
  58. .CodeMirror-foldgutter-folded::after {
  59. margin-top: -2px;
  60. margin-left: 1px;
  61. border-width: 4px 0 4px 5px;
  62. border-color: transparent transparent transparent currentColor;
  63. }
  64. .CodeMirror-linenumber {
  65. cursor: pointer; /* for bookmarking */
  66. }
  67. /* Custom stuff we add to CodeMirror */
  68. .cm-uso-variable {
  69. font-weight: bold;
  70. }
  71. .gutter-bookmark {
  72. background: linear-gradient(0deg, hsla(180, 100%, 30%, .75) 2px, hsla(180, 100%, 30%, .2) 2px);
  73. }