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.

331 lines
7.7KB

  1. @import "_defaults";
  2. .ace_gutter {
  3. background: $ui-gutter-background;
  4. color: $ui-gutter-color;
  5. }
  6. .ace_print-margin {
  7. width: 2px;
  8. background: $ui-margin-line;
  9. }
  10. .ace_editor {
  11. background-color: $ui-background;
  12. color: $ui-foreground;
  13. }
  14. .rstudio-themes-flat {
  15. &.ace_editor_theme {
  16. background-color: $ui-background;
  17. color: $ui-foreground;
  18. .profvis-flamegraph {
  19. background-color: $ui-background;
  20. color: $ui-foreground;
  21. }
  22. }
  23. .ace_editor_theme {
  24. background-color: $ui-background;
  25. color: $ui-foreground;
  26. }
  27. &.editor_dark.ace_editor_theme a {
  28. color: #FFF !important;
  29. }
  30. .gwt-Label {
  31. color: $ui-foreground;
  32. }
  33. }
  34. .ace_cursor {
  35. color: $ui-cursor;
  36. }
  37. .normal-mode .ace_cursor {
  38. border: 0!important;
  39. background-color: $ui-cursor-normal-mode;
  40. opacity: 0.5;
  41. }
  42. .ace_marker-layer {
  43. .ace_selection {
  44. background: $ui-selection;
  45. }
  46. .ace_step {
  47. background: lighten($rlang-string, 10%);
  48. }
  49. .ace_bracket {
  50. margin: -1px 0 0 -1px;
  51. border: 1px solid $ui-bracket;
  52. }
  53. .ace_active-line {
  54. background: $ui-line-active;
  55. }
  56. .ace_selected-word {
  57. border: 1px solid $ui-selection;
  58. }
  59. .ace_foreign_line {
  60. position: absolute;
  61. z-index: -1;
  62. background-color: $ui-code-chunk-background;
  63. }
  64. .ace_active_debug_line {
  65. position: absolute;
  66. z-index: -1;
  67. background-color: $ui-debug-background;
  68. }
  69. .ace_find_line {
  70. position: absolute;
  71. z-index: -1;
  72. background-color: $ui-line-find;
  73. }
  74. }
  75. .ace_gutter-active-line {
  76. background-color: $ui-line-active-gutter;
  77. }
  78. .ace_fold {
  79. background-color: $ui-fold-arrows-background;
  80. border: 1px solid $ui-fold-arrows-color !important;
  81. }
  82. .ace_indent-guide{
  83. border-right: 1px solid $ui-indent_guide;
  84. margin-right: -1px;
  85. }
  86. .ace_active-line ~ .ace_selection.ace_start {
  87. background-color: $ui-line-active-selection;
  88. }
  89. .ace_keyword {
  90. font-style: normal;
  91. color: $rlang-reserved;
  92. &.ace_operator {
  93. font-style: normal;
  94. color: $rlang-operator;
  95. }
  96. &.ace_other.ace_unit {
  97. font-style: normal;
  98. color: $rlang-value;
  99. }
  100. }
  101. .ace_constant {
  102. &.ace_language {
  103. color: $rlang-message;
  104. }
  105. &.ace_numeric {
  106. color: $rlang-value;
  107. }
  108. &.ace_character {
  109. color: $rlang-value;
  110. }
  111. &.ace_other {
  112. color: $ui-foreground;
  113. }
  114. }
  115. .ace_support {
  116. &.ace_function {
  117. color: $rlang-function;
  118. }
  119. &.ace_constant {
  120. color: $rlang-value;
  121. }
  122. &.ace_class {
  123. font-style: $rlang-namespace-font-style;
  124. color: $rlang-namespace;
  125. }
  126. &.ace_type {
  127. color: $rlang-namespace;
  128. }
  129. }
  130. .ace_paren {
  131. &.ace_keyword.ace_operator {
  132. color: $rlang-bracket;
  133. }
  134. }
  135. .ace_storage {
  136. color: $rlang-reserved;
  137. &.ace_type {
  138. color: $rlang-reserved;
  139. }
  140. }
  141. .ace_invalid {
  142. background-color: transparentize($rlang-variable, 0.5);
  143. &.ace_deprecated {
  144. background-color: transparentize($rlang-reserved, 0.5);
  145. }
  146. }
  147. .ace_string {
  148. color: $rlang-string;
  149. }
  150. .ace_comment {
  151. color: $rlang-comment;
  152. }
  153. .ace_invisible {
  154. color: $ui-invisible;
  155. }
  156. .ace_variable {
  157. color: $rlang-variable;
  158. &.ace_parameter {
  159. color: $rlang-value;
  160. }
  161. }
  162. .ace_entity {
  163. &.ace_name {
  164. &.ace_function {
  165. color: $rlang-function;
  166. }
  167. &.ace_tag {
  168. color: $other-tag;
  169. }
  170. }
  171. &.ace_other.ace_attribute-name {
  172. color: $rlang-reserved;
  173. }
  174. }
  175. .ace_bracket {
  176. margin: 0 !important;
  177. border: 0 !important;
  178. background-color: $ui-bracket;
  179. }
  180. .ace_console_error {
  181. background-color: $ui-line-find;
  182. }
  183. .ace_layer {
  184. z-index: 3;
  185. &.ace_print-margin-layer {
  186. z-index: 2;
  187. }
  188. &.ace_marker-layer {
  189. z-index: 1;
  190. }
  191. }
  192. .ace_selection.ace_start {
  193. box-shadow: 0 0 3px 0 $ui-background;
  194. border-radius: 2px;
  195. }
  196. .ace_meta.ace_tag {
  197. color: $rlang-operator;
  198. }
  199. .ace_markup.ace_heading,
  200. .ace_markup.ace_heading ~ .ace_heading {
  201. font-weight: $rmd-heading-weight;
  202. color: $rmd-heading-color;
  203. }
  204. .ace_support.ace_function {
  205. &.ace_codebegin, &.ace_codeend {
  206. color: $rmd-chunk-header;
  207. }
  208. }
  209. .ace_markup.ace_href {
  210. color: $rmd-href;
  211. }
  212. .nocolor.ace_editor .ace_line span {
  213. color: $rlang-reserved !important;
  214. }
  215. /* ---- RStudio Theme ---- */
  216. /* background */
  217. .rstudio-themes-flat .rstudio-themes-dark-grey {
  218. background: $ui-rstudio-background !important;
  219. color: $ui-rstudio-color !important;
  220. .rstudio-themes-background {
  221. background: $ui-rstudio-background !important;
  222. }
  223. }
  224. /* inactive tabs */
  225. table.rstheme_tabLayoutCenter, .rstudio-themes-flat .rstudio-themes-dark-grey .gwt-TabLayoutPanelTabs, .rstheme_multiPodUtilityTabArea {
  226. background: $ui-rstudio-tabs-inactive !important;
  227. .gwt-Label {
  228. color: $ui-rstudio-tabs-inactive-color;
  229. }
  230. }
  231. /* toolbar and selected tab */
  232. .rstudio-themes-flat .rstudio-themes-dark-grey {
  233. .rstheme_center, .gwt-TabLayoutPanelTabs .gwt-TabLayoutPanelTab-selected table.rstheme_tabLayoutCenter {
  234. background: $ui-rstudio-tabs-selected !important;
  235. }
  236. .gwt-TabLayoutPanelTab-selected .gwt-Label {
  237. color: $ui-rstudio-tabs-selected-color;
  238. }
  239. }
  240. .rstudio-themes-flat {
  241. .rstheme_toolbarWrapper {
  242. background: $ui-rstudio-toolbar !important;
  243. button, a, div {
  244. color: $ui-rstudio-toolbar-color !important;
  245. }
  246. }
  247. .rstudio-themes-dark-grey {
  248. /* spliters */
  249. .gwt-SplitLayoutPanel-HDragger, .gwt-SplitLayoutPanel-VDragger {
  250. background: transparent !important;
  251. }
  252. }
  253. /* search */
  254. .rstudio-themes-dark .search, &.rstudio-themes-dark-menus .search {
  255. background: $ui-rstudio-search !important;
  256. }
  257. }
  258. /* pane toolbars */
  259. .rstheme_secondaryToolbar, .rstudio-themes-flat .rstudio-themes-dark-grey .dataGridHeader {
  260. background: $ui-rstudio-toolbar !important;
  261. }
  262. /* menu background */
  263. .rstudio-themes-flat {
  264. .popupMiddleCenter, .menuPopupMiddleCenter, .suggestPopupMiddleCenter {
  265. background: $ui-completions-background !important;
  266. color: $ui-completions-color !important;
  267. .item.item-selected {
  268. color: $ui-completions-background !important;
  269. background: $ui-completions-color !important;
  270. }
  271. }
  272. .themedPopupPanel {
  273. border: solid 1px $ui-completions-border;
  274. & ~ div.popupContent div:nth-child(1) {
  275. border: solid 1px $ui-completions-border;
  276. }
  277. }
  278. .popupContent {
  279. background: $ui-completions-background;
  280. color: $ui-completions-color;
  281. &:not(.popupMiddleCenterInner) div div:nth-child(2) {
  282. background: $ui-completions-background !important;
  283. border: solid 1px $ui-completions-border;
  284. }
  285. }
  286. .gwt-PopupPanel .popupContent {
  287. background: $ui-completions-color;
  288. table {
  289. background: $ui-completions-color;
  290. border: 0;
  291. .gwt-Label {
  292. color: $ui-completions-background;
  293. }
  294. }
  295. }
  296. }
  297. .rstudio-themes-flat .rstudio-themes-dark-grey {
  298. div.windowframe > div:last-child > div > div > div > div > div:not(.gwt-TabLayoutPanelTabs) {
  299. /* hacky toolbars section */
  300. background: $ui-rstudio-tabs-inactive !important;
  301. }
  302. }
  303. /* scrollbars */
  304. .rstudio-themes-flat .rstudio-themes-dark-grey .gwt-TabLayoutPanelTabs,
  305. .rstudio-themes-flat .rstudio-themes-dark-grey .rstheme_minimizedWindowObject .rstheme_center,
  306. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars ::-webkit-scrollbar-track,
  307. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars ::-webkit-scrollbar-corner,
  308. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars::-webkit-scrollbar-track,
  309. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars::-webkit-scrollbar-corner,
  310. .rstudio-themes-flat.rstudio-themes-dark-menus .rstudio-themes-scrollbars ::-webkit-scrollbar-track,
  311. .rstudio-themes-flat.rstudio-themes-dark-menus .rstudio-themes-scrollbars ::-webkit-scrollbar-corner {
  312. background: $ui-rstudio-scrollbar-background;
  313. }
  314. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars ::-webkit-scrollbar-thumb,
  315. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars::-webkit-scrollbar-thumb,
  316. .rstudio-themes-flat.rstudio-themes-dark-menus .rstudio-themes-scrollbars ::-webkit-scrollbar-thumb {
  317. background: $ui-rstudio-scrollbar-handle;
  318. border: 4px solid $ui-rstudio-scrollbar-background;
  319. }