editor.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // Editor styles (background, gutter, guides)
  2. atom-text-editor {
  3. background-color: @syntax-background-color;
  4. color: @syntax-text-color;
  5. .line.cursor-line {
  6. background-color: @syntax-cursor-line;
  7. }
  8. .invisible {
  9. color: @hue-4;
  10. }
  11. .cursor {
  12. border-left: 3px solid @syntax-cursor-color;
  13. }
  14. .selection .region {
  15. background-color: @syntax-selection-color;
  16. }
  17. /* purple glow around the matching brackets */
  18. .bracket-matcher {
  19. position: absolute;
  20. -webkit-box-shadow:0 0 20px #ff01fc;
  21. -moz-box-shadow: 0 0 20px #ff01fc;
  22. box-shadow:0 0 20px #ff01fc;
  23. background-color: rgba(162, 0, 255, 0.23);
  24. }
  25. .invisible-character {
  26. color: @syntax-invisible-character-color;
  27. }
  28. .indent-guide {
  29. color: @syntax-indent-guide-color;
  30. }
  31. .wrap-guide {
  32. background-color: @syntax-wrap-guide-color;
  33. }
  34. // find + replace
  35. .find-result .region.region.region,
  36. .current-result .region.region.region {
  37. border-radius: 2px;
  38. background-color: @syntax-result-marker-color;
  39. transition: border-color .4s;
  40. }
  41. .find-result .region.region.region {
  42. border: 2px solid transparent;
  43. }
  44. .current-result .region.region.region {
  45. border: 2px solid @syntax-result-marker-color-selected;
  46. transition-duration: .1s;
  47. }
  48. .gutter {
  49. .line-number {
  50. color: @syntax-gutter-text-color;
  51. -webkit-font-smoothing: antialiased;
  52. &.cursor-line {
  53. color: @syntax-gutter-text-color-selected;
  54. background-color: @syntax-gutter-background-color-selected;
  55. }
  56. &.cursor-line-no-selection {
  57. background-color: transparent;
  58. }
  59. .icon-right {
  60. color: @syntax-text-color;
  61. }
  62. }
  63. &:not(.git-diff-icon) .line-number.git-line-removed {
  64. &.git-line-removed::before {
  65. bottom: -3px;
  66. }
  67. &::after {
  68. content: "";
  69. position: absolute;
  70. left: 0px;
  71. bottom: 0px;
  72. width: 25px;
  73. border-bottom: 1px dotted fade(@syntax-color-removed, 50%);
  74. pointer-events: none;
  75. }
  76. }
  77. }
  78. .gutter .line-number.folded,
  79. .gutter .line-number:after,
  80. .fold-marker:after {
  81. color: @syntax-gutter-text-color-selected;
  82. }
  83. }