Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

264 lines
5.4KB

  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. }
  30. .ace_cursor {
  31. color: $ui-cursor;
  32. }
  33. .ace_marker-layer {
  34. .ace_selection {
  35. background: $ui-selection;
  36. }
  37. .ace_step {
  38. background: lighten($rlang-string, 10%);
  39. }
  40. .ace_bracket {
  41. margin: -1px 0 0 -1px;
  42. border: 1px solid $ui-bracket;
  43. }
  44. .ace_active-line {
  45. background: $ui-line-active;
  46. }
  47. .ace_selected-word {
  48. border: 1px solid $ui-selection;
  49. }
  50. .ace_foreign_line {
  51. position: absolute;
  52. z-index: -1;
  53. background-color: $ui-code-chunk-background;
  54. }
  55. .ace_active_debug_line {
  56. position: absolute;
  57. z-index: -1;
  58. background-color: $ui-debug-background;
  59. }
  60. .ace_find_line {
  61. position: absolute;
  62. z-index: -1;
  63. background-color: $ui-line-find;
  64. }
  65. }
  66. .ace_gutter-active-line {
  67. background-color: $ui-line-active-gutter;
  68. }
  69. .ace_fold {
  70. background-color: $ui-fold-arrows-background;
  71. border-color: $ui-fold-arrows-color;
  72. }
  73. .ace_indent-guide{
  74. border-right: 1px solid $ui-indent_guide;
  75. }
  76. .ace_active-line ~ .ace_selection.ace_start {
  77. background-color: $ui-line-active-selection;
  78. }
  79. .ace_keyword {
  80. font-style: italic;
  81. color: $rlang-reserved;
  82. &.ace_operator {
  83. font-style: normal;
  84. color: $rlang-operator;
  85. }
  86. &.ace_other.ace_unit {
  87. font-style: normal;
  88. color: $rlang-value;
  89. }
  90. }
  91. .ace_constant {
  92. &.ace_language {
  93. color: $rlang-message;
  94. }
  95. &.ace_numeric {
  96. color: $rlang-value;
  97. }
  98. &.ace_character {
  99. color: $rlang-value;
  100. }
  101. &.ace_other {
  102. color: $ui-foreground;
  103. }
  104. }
  105. .ace_support {
  106. &.ace_function {
  107. color: $rlang-function;
  108. }
  109. &.ace_constant {
  110. color: $rlang-value;
  111. }
  112. &.ace_class {
  113. font-style: $rlang-namespace-font-style;
  114. color: $rlang-namespace;
  115. }
  116. &.ace_type {
  117. color: $rlang-namespace;
  118. }
  119. }
  120. .ace_paren {
  121. &.ace_keyword.ace_operator {
  122. color: $rlang-bracket;
  123. }
  124. }
  125. .ace_storage {
  126. color: $rlang-reserved;
  127. &.ace_type {
  128. color: $rlang-reserved;
  129. }
  130. }
  131. .ace_invalid {
  132. background-color: transparentize($rlang-variable, 0.5);
  133. &.ace_deprecated {
  134. background-color: transparentize($rlang-reserved, 0.5);
  135. }
  136. }
  137. .ace_string {
  138. color: $rlang-string;
  139. }
  140. .ace_comment {
  141. color: $rlang-comment;
  142. }
  143. .ace_invisible {
  144. color: $ui-invisible;
  145. }
  146. .ace_variable {
  147. color: $rlang-variable;
  148. &.ace_parameter {
  149. color: $rlang-value;
  150. }
  151. }
  152. .ace_entity {
  153. &.ace_name {
  154. &.ace_function {
  155. color: $rlang-function;
  156. }
  157. &.ace_tag {
  158. color: $other-tag;
  159. }
  160. }
  161. &.ace_other.ace_attribute-name {
  162. color: $rlang-reserved;
  163. }
  164. }
  165. .ace_bracket {
  166. margin: 0 !important;
  167. border: 0 !important;
  168. background-color: $ui-bracket;
  169. }
  170. .ace_console_error {
  171. background-color: $ui-line-find;
  172. }
  173. .ace_layer {
  174. z-index: 3;
  175. &.ace_print-margin-layer {
  176. z-index: 2;
  177. }
  178. &.ace_marker-layer {
  179. z-index: 1;
  180. }
  181. }
  182. .ace_selection.ace_start {
  183. box-shadow: 0 0 3px 0 $ui-background;
  184. border-radius: 2px;
  185. }
  186. .ace_meta.ace_tag {
  187. color: $rlang-operator;
  188. }
  189. .ace_markup.ace_heading {
  190. font-weight: 600;
  191. color: $rlang-string;
  192. }
  193. .nocolor.ace_editor .ace_line span {
  194. color: $rlang-reserved !important;
  195. }
  196. /* ---- RStudio Theme ---- */
  197. /* background */
  198. .rstudio-themes-flat .rstudio-themes-dark-grey {
  199. background: $ui-rstudio-background !important;
  200. color: $ui-rstudio-color !important;
  201. .rstudio-themes-background {
  202. background: $ui-rstudio-background !important;
  203. }
  204. }
  205. /* inactive tabs */
  206. table.rstheme_tabLayoutCenter, .rstudio-themes-flat .rstudio-themes-dark-grey .gwt-TabLayoutPanelTabs, .rstheme_multiPodUtilityTabArea {
  207. background: $ui-rstudio-tabs-inactive !important;
  208. .gwt-Label {
  209. color: $ui-rstudio-tabs-inactive-color;
  210. }
  211. }
  212. /* toolbar and selected tab */
  213. .rstudio-themes-flat .rstudio-themes-dark-grey {
  214. .rstheme_center, .gwt-TabLayoutPanelTabs .gwt-TabLayoutPanelTab-selected table.rstheme_tabLayoutCenter {
  215. background: $ui-rstudio-tabs-selected !important;
  216. }
  217. .gwt-TabLayoutPanelTab-selected .gwt-Label {
  218. color: $ui-rstudio-tabs-selected-color;
  219. }
  220. }
  221. .rstheme_toolbarWrapper {
  222. background: $ui-rstudio-toolbar !important;
  223. }
  224. .rstudio-themes-flat {
  225. .rstudio-themes-dark-grey {
  226. /* spliters */
  227. .gwt-SplitLayoutPanel-HDragger, .gwt-SplitLayoutPanel-VDragger {
  228. background: transparent !important;
  229. }
  230. }
  231. /* search */
  232. .rstudio-themes-dark .search, &.rstudio-themes-dark-menus .search {
  233. background: $ui-rstudio-search !important;
  234. }
  235. }
  236. /* pane toolbars */
  237. .rstheme_secondaryToolbar, .rstudio-themes-flat .rstudio-themes-dark-grey .dataGridHeader {
  238. background: $ui-rstudio-toolbar !important;
  239. }
  240. /* menu background */
  241. .popupMiddleCenter, .menuPopupMiddleCenter, .suggestPopupMiddleCenter {
  242. background: $ui-completions-background !important;
  243. color: $ui-completions-color !important;
  244. }
  245. .themedPopupPanel {
  246. border: solid 1px $ui-completions-border;
  247. & ~ div.popupContent div:nth-child(1) {
  248. border: solid 1px $ui-completions-border;
  249. }
  250. }
  251. .popupContent {
  252. background: $ui-completions-background;
  253. color: $ui-completions-color;
  254. &:not(.popupMiddleCenterInner) div div:nth-child(2) {
  255. background: $ui-completions-background !important;
  256. border: solid 1px $ui-completions-border;
  257. }
  258. }