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.

theme-twilight.js 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /* ***** BEGIN LICENSE BLOCK *****
  2. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3. *
  4. * The contents of this file are subject to the Mozilla Public License Version
  5. * 1.1 (the "License"); you may not use this file except in compliance with
  6. * the License. You may obtain a copy of the License at
  7. * http://www.mozilla.org/MPL/
  8. *
  9. * Software distributed under the License is distributed on an "AS IS" basis,
  10. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11. * for the specific language governing rights and limitations under the
  12. * License.
  13. *
  14. * The Original Code is Ajax.org Code Editor (ACE).
  15. *
  16. * The Initial Developer of the Original Code is
  17. * Ajax.org B.V.
  18. * Portions created by the Initial Developer are Copyright (C) 2010
  19. * the Initial Developer. All Rights Reserved.
  20. *
  21. * Contributor(s):
  22. * Fabian Jakobs <fabian AT ajax DOT org>
  23. *
  24. * Alternatively, the contents of this file may be used under the terms of
  25. * either the GNU General Public License Version 2 or later (the "GPL"), or
  26. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27. * in which case the provisions of the GPL or the LGPL are applicable instead
  28. * of those above. If you wish to allow use of your version of this file only
  29. * under the terms of either the GPL or the LGPL, and not to allow others to
  30. * use your version of this file under the terms of the MPL, indicate your
  31. * decision by deleting the provisions above and replace them with the notice
  32. * and other provisions required by the GPL or the LGPL. If you do not delete
  33. * the provisions above, a recipient may use your version of this file under
  34. * the terms of any one of the MPL, the GPL or the LGPL.
  35. *
  36. * ***** END LICENSE BLOCK ***** */
  37. ace.define('ace/theme/twilight', ['require', 'exports', 'module', 'ace/lib/dom'], function(require, exports, module) {
  38. exports.isDark = true;
  39. exports.cssClass = "ace-twilight";
  40. exports.cssText = "\
  41. .ace-twilight .ace_editor {\
  42. border: 2px solid rgb(159, 159, 159);\
  43. }\
  44. \
  45. .ace-twilight .ace_editor.ace_focus {\
  46. border: 2px solid #327fbd;\
  47. }\
  48. \
  49. .ace-twilight .ace_gutter {\
  50. background: #e8e8e8;\
  51. color: #333;\
  52. }\
  53. \
  54. .ace-twilight .ace_print_margin {\
  55. width: 1px;\
  56. background: #e8e8e8;\
  57. }\
  58. \
  59. .ace-twilight .ace_scroller {\
  60. background-color: #141414;\
  61. }\
  62. \
  63. .ace-twilight .ace_text-layer {\
  64. cursor: text;\
  65. color: #F8F8F8;\
  66. }\
  67. \
  68. .ace-twilight .ace_cursor {\
  69. border-left: 2px solid #A7A7A7;\
  70. }\
  71. \
  72. .ace-twilight .ace_cursor.ace_overwrite {\
  73. border-left: 0px;\
  74. border-bottom: 1px solid #A7A7A7;\
  75. }\
  76. \
  77. .ace-twilight .ace_marker-layer .ace_selection {\
  78. background: rgba(221, 240, 255, 0.20);\
  79. }\
  80. \
  81. .ace-twilight.multiselect .ace_selection.start {\
  82. box-shadow: 0 0 3px 0px #141414;\
  83. border-radius: 2px;\
  84. }\
  85. \
  86. .ace-twilight .ace_marker-layer .ace_step {\
  87. background: rgb(102, 82, 0);\
  88. }\
  89. \
  90. .ace-twilight .ace_marker-layer .ace_bracket {\
  91. margin: -1px 0 0 -1px;\
  92. border: 1px solid rgba(255, 255, 255, 0.25);\
  93. }\
  94. \
  95. .ace-twilight .ace_marker-layer .ace_active_line {\
  96. background: rgba(255, 255, 255, 0.031);\
  97. }\
  98. \
  99. .ace-twilight .ace_gutter_active_line {\
  100. background-color : #dcdcdc;\
  101. }\
  102. \
  103. .ace-twilight .ace_marker-layer .ace_selected_word {\
  104. border: 1px solid rgba(221, 240, 255, 0.20);\
  105. }\
  106. \
  107. .ace-twilight .ace_invisible {\
  108. color: rgba(255, 255, 255, 0.25);\
  109. }\
  110. \
  111. .ace-twilight .ace_keyword, .ace-twilight .ace_meta {\
  112. color:#CDA869;\
  113. }\
  114. \
  115. .ace-twilight .ace_constant, .ace-twilight .ace_constant.ace_other {\
  116. color:#CF6A4C;\
  117. }\
  118. \
  119. .ace-twilight .ace_constant.ace_character, {\
  120. color:#CF6A4C;\
  121. }\
  122. \
  123. .ace-twilight .ace_constant.ace_character.ace_escape, {\
  124. color:#CF6A4C;\
  125. }\
  126. \
  127. .ace-twilight .ace_invalid.ace_illegal {\
  128. color:#F8F8F8;\
  129. background-color:rgba(86, 45, 86, 0.75);\
  130. }\
  131. \
  132. .ace-twilight .ace_invalid.ace_deprecated {\
  133. text-decoration:underline;\
  134. font-style:italic;\
  135. color:#D2A8A1;\
  136. }\
  137. \
  138. .ace-twilight .ace_support {\
  139. color:#9B859D;\
  140. }\
  141. \
  142. .ace-twilight .ace_support.ace_constant {\
  143. color:#CF6A4C;\
  144. }\
  145. \
  146. .ace-twilight .ace_fold {\
  147. background-color: #AC885B;\
  148. border-color: #F8F8F8;\
  149. }\
  150. \
  151. .ace-twilight .ace_support.ace_function {\
  152. color:#DAD085;\
  153. }\
  154. \
  155. .ace-twilight .ace_storage {\
  156. color:#F9EE98;\
  157. }\
  158. \
  159. .ace-twilight .ace_variable {\
  160. color:#AC885B;\
  161. }\
  162. \
  163. .ace-twilight .ace_string {\
  164. color:#8F9D6A;\
  165. }\
  166. \
  167. .ace-twilight .ace_string.ace_regexp {\
  168. color:#E9C062;\
  169. }\
  170. \
  171. .ace-twilight .ace_comment {\
  172. font-style:italic;\
  173. color:#5F5A60;\
  174. }\
  175. \
  176. .ace-twilight .ace_variable {\
  177. color:#7587A6;\
  178. }\
  179. \
  180. .ace-twilight .ace_xml_pe {\
  181. color:#494949;\
  182. }\
  183. \
  184. .ace-twilight .ace_meta.ace_tag {\
  185. color:#AC885B;\
  186. }\
  187. \
  188. .ace-twilight .ace_entity.ace_name.ace_function {\
  189. color:#AC885B;\
  190. }\
  191. \
  192. .ace-twilight .ace_markup.ace_underline {\
  193. text-decoration:underline;\
  194. }\
  195. \
  196. .ace-twilight .ace_markup.ace_heading {\
  197. color:#CF6A4C;\
  198. }\
  199. \
  200. .ace-twilight .ace_markup.ace_list {\
  201. color:#F9EE98;\
  202. }";
  203. var dom = require("../lib/dom");
  204. dom.importCssString(exports.cssText, exports.cssClass);
  205. });