You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
3.7KB

  1. .ace_gutter {
  2. background: $ui-gutter-background;
  3. color: $ui-gutter-color;
  4. }
  5. .ace_print-margin {
  6. width: 2px;
  7. background: $ui-margin-line;
  8. }
  9. .ace_editor {
  10. background-color: $ui-background;
  11. color: $ui-foreground;
  12. }
  13. .rstudio-themes-flat {
  14. &.ace_editor_theme {
  15. background-color: $ui-background;
  16. color: $ui-foreground;
  17. .profvis-flamegraph {
  18. background-color: $ui-background;
  19. color: $ui-foreground;
  20. }
  21. }
  22. .ace_editor_theme {
  23. background-color: $ui-background;
  24. color: $ui-foreground;
  25. }
  26. &.editor_dark.ace_editor_theme a {
  27. color: #FFF !important;
  28. }
  29. &.rstudio-themes-dark-menus .ace_editor.ace_autocomplete {
  30. background: #2f3941;
  31. border: solid 1px #4e5c68 !important;
  32. color: #f0f0f0;
  33. .ace_marker-layer {
  34. .ace_active-line {
  35. background: transparentize($ui-foreground, 0.75);
  36. border: none;
  37. }
  38. .ace_line-hover {
  39. background: transparentize($ui-foreground, 0.75);
  40. border: none;
  41. }
  42. }
  43. }
  44. }
  45. .ace_cursor {
  46. color: $ui-cursor;
  47. }
  48. .ace_marker-layer {
  49. .ace_selection {
  50. background: $ui-selection;
  51. }
  52. .ace_step {
  53. background: lighten($rlang-string, 10%);
  54. }
  55. .ace_bracket {
  56. margin: -1px 0 0 -1px;
  57. border: 1px solid $ui-bracket;
  58. }
  59. .ace_active-line {
  60. background: $ui-line-active;
  61. }
  62. .ace_selected-word {
  63. border: 1px solid $ui-selection;
  64. }
  65. .ace_foreign_line {
  66. position: absolute;
  67. z-index: -1;
  68. background-color: $ui-code-chunk-background;
  69. }
  70. .ace_active_debug_line {
  71. position: absolute;
  72. z-index: -1;
  73. background-color: $ui-debug-background;
  74. }
  75. .ace_find_line {
  76. position: absolute;
  77. z-index: -1;
  78. background-color: $ui-line-find;
  79. }
  80. }
  81. .ace_gutter-active-line {
  82. background-color: $ui-line-active-gutter;
  83. }
  84. .ace_fold {
  85. background-color: $ui-fold-arrows-background;
  86. border-color: $ui-fold-arrows-color;
  87. }
  88. .ace_indent-guide{
  89. border-right: 1px solid $ui-indent_guide;
  90. }
  91. .ace_active-line ~ .ace_selection.ace_start {
  92. background-color: opacify($ui-line-active, 1);
  93. }
  94. .ace_keyword {
  95. font-style: italic;
  96. color: $rlang-reserved;
  97. &.ace_operator {
  98. font-style: normal;
  99. color: $rlang-operator;
  100. }
  101. &.ace_other.ace_unit {
  102. font-style: normal;
  103. color: $rlang-value;
  104. }
  105. }
  106. .ace_constant {
  107. &.ace_language {
  108. color: $rlang-message;
  109. }
  110. &.ace_numeric {
  111. color: $rlang-value;
  112. }
  113. &.ace_character {
  114. color: $rlang-value;
  115. }
  116. &.ace_other {
  117. color: $ui-foreground;
  118. }
  119. }
  120. .ace_support {
  121. &.ace_function {
  122. color: $rlang-function;
  123. }
  124. &.ace_constant {
  125. color: $rlang-value;
  126. }
  127. &.ace_class {
  128. font-style: $rlang-namespace-font-style;
  129. color: $rlang-namespace;
  130. }
  131. &.ace_type {
  132. color: $rlang-namespace;
  133. }
  134. }
  135. .ace_paren {
  136. &.ace_keyword.ace_operator {
  137. color: $rlang-bracket;
  138. }
  139. }
  140. .ace_storage {
  141. color: $rlang-reserved;
  142. &.ace_type {
  143. color: $rlang-reserved;
  144. }
  145. }
  146. .ace_invalid {
  147. background-color: transparentize($rlang-variable, 0.5);
  148. &.ace_deprecated {
  149. background-color: transparentize($rlang-reserved, 0.5);
  150. }
  151. }
  152. .ace_string {
  153. color: $rlang-string;
  154. }
  155. .ace_comment {
  156. color: $rlang-comment;
  157. }
  158. .ace_invisible {
  159. color: $ui-invisible;
  160. }
  161. .ace_variable {
  162. color: $rlang-variable;
  163. &.ace_parameter {
  164. color: $rlang-value;
  165. }
  166. }
  167. .ace_entity {
  168. &.ace_name {
  169. &.ace_function {
  170. color: $rlang-function;
  171. }
  172. &.ace_tag {
  173. color: $other-tag;
  174. }
  175. }
  176. &.ace_other.ace_attribute-name {
  177. color: $rlang-reserved;
  178. }
  179. }
  180. .ace_bracket {
  181. margin: 0 !important;
  182. border: 0 !important;
  183. background-color: $ui-bracket;
  184. }
  185. .ace_console_error {
  186. background-color: $ui-line-find;
  187. }
  188. .ace_layer {
  189. z-index: 3;
  190. &.ace_print-margin-layer {
  191. z-index: 2;
  192. }
  193. &.ace_marker-layer {
  194. z-index: 1;
  195. }
  196. }
  197. .ace_selection.ace_start {
  198. box-shadow: 0 0 3px 0 $ui-background;
  199. border-radius: 2px;
  200. }
  201. .ace_meta.ace_tag {
  202. color: $rlang-operator;
  203. }
  204. .ace_markup.ace_heading {
  205. font-weight: 600;
  206. color: $rlang-string;
  207. }
  208. .nocolor.ace_editor .ace_line span {
  209. color: $rlang-reserved !important;
  210. }