editor.less 597 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. @import "../cfg.less";
  2. #sh-editor {
  3. height: 100%;
  4. font-family: @font-editor;
  5. // CodeMirror
  6. .CodeMirror {
  7. font-family: @font-editor;
  8. }
  9. .cm-s-default .cm-comment {
  10. color: #090;
  11. }
  12. .cm-s-default .cm-ip {
  13. color: #00a;
  14. font-weight: bold;
  15. }
  16. .cm-s-default .cm-hl {
  17. background: #ff0;
  18. }
  19. .CodeMirror-gutters {
  20. border-right: none;
  21. padding-right: 6px;
  22. }
  23. .CodeMirror-linenumber {
  24. cursor: pointer;
  25. }
  26. &.readonly .CodeMirror {
  27. .CodeMirror-linenumber {
  28. cursor: default;
  29. }
  30. .CodeMirror-cursors {
  31. display: none;
  32. }
  33. }
  34. }