選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

330 行
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. }
  85. .ace_active-line ~ .ace_selection.ace_start {
  86. background-color: $ui-line-active-selection;
  87. }
  88. .ace_keyword {
  89. font-style: normal;
  90. color: $rlang-reserved;
  91. &.ace_operator {
  92. font-style: normal;
  93. color: $rlang-operator;
  94. }
  95. &.ace_other.ace_unit {
  96. font-style: normal;
  97. color: $rlang-value;
  98. }
  99. }
  100. .ace_constant {
  101. &.ace_language {
  102. color: $rlang-message;
  103. }
  104. &.ace_numeric {
  105. color: $rlang-value;
  106. }
  107. &.ace_character {
  108. color: $rlang-value;
  109. }
  110. &.ace_other {
  111. color: $ui-foreground;
  112. }
  113. }
  114. .ace_support {
  115. &.ace_function {
  116. color: $rlang-function;
  117. }
  118. &.ace_constant {
  119. color: $rlang-value;
  120. }
  121. &.ace_class {
  122. font-style: $rlang-namespace-font-style;
  123. color: $rlang-namespace;
  124. }
  125. &.ace_type {
  126. color: $rlang-namespace;
  127. }
  128. }
  129. .ace_paren {
  130. &.ace_keyword.ace_operator {
  131. color: $rlang-bracket;
  132. }
  133. }
  134. .ace_storage {
  135. color: $rlang-reserved;
  136. &.ace_type {
  137. color: $rlang-reserved;
  138. }
  139. }
  140. .ace_invalid {
  141. background-color: transparentize($rlang-variable, 0.5);
  142. &.ace_deprecated {
  143. background-color: transparentize($rlang-reserved, 0.5);
  144. }
  145. }
  146. .ace_string {
  147. color: $rlang-string;
  148. }
  149. .ace_comment {
  150. color: $rlang-comment;
  151. }
  152. .ace_invisible {
  153. color: $ui-invisible;
  154. }
  155. .ace_variable {
  156. color: $rlang-variable;
  157. &.ace_parameter {
  158. color: $rlang-value;
  159. }
  160. }
  161. .ace_entity {
  162. &.ace_name {
  163. &.ace_function {
  164. color: $rlang-function;
  165. }
  166. &.ace_tag {
  167. color: $other-tag;
  168. }
  169. }
  170. &.ace_other.ace_attribute-name {
  171. color: $rlang-reserved;
  172. }
  173. }
  174. .ace_bracket {
  175. margin: 0 !important;
  176. border: 0 !important;
  177. background-color: $ui-bracket;
  178. }
  179. .ace_console_error {
  180. background-color: $ui-line-find;
  181. }
  182. .ace_layer {
  183. z-index: 3;
  184. &.ace_print-margin-layer {
  185. z-index: 2;
  186. }
  187. &.ace_marker-layer {
  188. z-index: 1;
  189. }
  190. }
  191. .ace_selection.ace_start {
  192. box-shadow: 0 0 3px 0 $ui-background;
  193. border-radius: 2px;
  194. }
  195. .ace_meta.ace_tag {
  196. color: $rlang-operator;
  197. }
  198. .ace_markup.ace_heading,
  199. .ace_markup.ace_heading ~ .ace_heading {
  200. font-weight: $rmd-heading-weight;
  201. color: $rmd-heading-color;
  202. }
  203. .ace_support.ace_function {
  204. &.ace_codebegin, &.ace_codeend {
  205. color: $rmd-chunk-header;
  206. }
  207. }
  208. .ace_markup.ace_href {
  209. color: $rmd-href;
  210. }
  211. .nocolor.ace_editor .ace_line span {
  212. color: $rlang-reserved !important;
  213. }
  214. /* ---- RStudio Theme ---- */
  215. /* background */
  216. .rstudio-themes-flat .rstudio-themes-dark-grey {
  217. background: $ui-rstudio-background !important;
  218. color: $ui-rstudio-color !important;
  219. .rstudio-themes-background {
  220. background: $ui-rstudio-background !important;
  221. }
  222. }
  223. /* inactive tabs */
  224. table.rstheme_tabLayoutCenter, .rstudio-themes-flat .rstudio-themes-dark-grey .gwt-TabLayoutPanelTabs, .rstheme_multiPodUtilityTabArea {
  225. background: $ui-rstudio-tabs-inactive !important;
  226. .gwt-Label {
  227. color: $ui-rstudio-tabs-inactive-color;
  228. }
  229. }
  230. /* toolbar and selected tab */
  231. .rstudio-themes-flat .rstudio-themes-dark-grey {
  232. .rstheme_center, .gwt-TabLayoutPanelTabs .gwt-TabLayoutPanelTab-selected table.rstheme_tabLayoutCenter {
  233. background: $ui-rstudio-tabs-selected !important;
  234. }
  235. .gwt-TabLayoutPanelTab-selected .gwt-Label {
  236. color: $ui-rstudio-tabs-selected-color;
  237. }
  238. }
  239. .rstudio-themes-flat {
  240. .rstheme_toolbarWrapper {
  241. background: $ui-rstudio-toolbar !important;
  242. button, a, div {
  243. color: $ui-rstudio-toolbar-color !important;
  244. }
  245. }
  246. .rstudio-themes-dark-grey {
  247. /* spliters */
  248. .gwt-SplitLayoutPanel-HDragger, .gwt-SplitLayoutPanel-VDragger {
  249. background: transparent !important;
  250. }
  251. }
  252. /* search */
  253. .rstudio-themes-dark .search, &.rstudio-themes-dark-menus .search {
  254. background: $ui-rstudio-search !important;
  255. }
  256. }
  257. /* pane toolbars */
  258. .rstheme_secondaryToolbar, .rstudio-themes-flat .rstudio-themes-dark-grey .dataGridHeader {
  259. background: $ui-rstudio-toolbar !important;
  260. }
  261. /* menu background */
  262. .rstudio-themes-flat {
  263. .popupMiddleCenter, .menuPopupMiddleCenter, .suggestPopupMiddleCenter {
  264. background: $ui-completions-background !important;
  265. color: $ui-completions-color !important;
  266. .item.item-selected {
  267. color: $ui-completions-background !important;
  268. background: $ui-completions-color !important;
  269. }
  270. }
  271. .themedPopupPanel {
  272. border: solid 1px $ui-completions-border;
  273. & ~ div.popupContent div:nth-child(1) {
  274. border: solid 1px $ui-completions-border;
  275. }
  276. }
  277. .popupContent {
  278. background: $ui-completions-background;
  279. color: $ui-completions-color;
  280. &:not(.popupMiddleCenterInner) div div:nth-child(2) {
  281. background: $ui-completions-background !important;
  282. border: solid 1px $ui-completions-border;
  283. }
  284. }
  285. .gwt-PopupPanel .popupContent {
  286. background: $ui-completions-color;
  287. table {
  288. background: $ui-completions-color;
  289. border: 0;
  290. .gwt-Label {
  291. color: $ui-completions-background;
  292. }
  293. }
  294. }
  295. }
  296. .rstudio-themes-flat .rstudio-themes-dark-grey {
  297. div.windowframe > div:last-child > div > div > div > div > div:not(.gwt-TabLayoutPanelTabs) {
  298. /* hacky toolbars section */
  299. background: $ui-rstudio-tabs-inactive !important;
  300. }
  301. }
  302. /* scrollbars */
  303. .rstudio-themes-flat .rstudio-themes-dark-grey .gwt-TabLayoutPanelTabs,
  304. .rstudio-themes-flat .rstudio-themes-dark-grey .rstheme_minimizedWindowObject .rstheme_center,
  305. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars ::-webkit-scrollbar-track,
  306. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars ::-webkit-scrollbar-corner,
  307. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars::-webkit-scrollbar-track,
  308. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars::-webkit-scrollbar-corner,
  309. .rstudio-themes-flat.rstudio-themes-dark-menus .rstudio-themes-scrollbars ::-webkit-scrollbar-track,
  310. .rstudio-themes-flat.rstudio-themes-dark-menus .rstudio-themes-scrollbars ::-webkit-scrollbar-corner {
  311. background: $ui-rstudio-scrollbar-background;
  312. }
  313. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars ::-webkit-scrollbar-thumb,
  314. .rstudio-themes-flat .rstudio-themes-dark.rstudio-themes-scrollbars::-webkit-scrollbar-thumb,
  315. .rstudio-themes-flat.rstudio-themes-dark-menus .rstudio-themes-scrollbars ::-webkit-scrollbar-thumb {
  316. background: $ui-rstudio-scrollbar-handle;
  317. border: 4px solid $ui-rstudio-scrollbar-background;
  318. }