gitea源码

console.css 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. /* Based on https://github.com/buildkite/terminal-to-html/blob/697ff23bd8dc48b9d23f11f259f5256dae2455f0/assets/terminal.css */
  2. .console {
  3. background: var(--color-console-bg);
  4. color: var(--color-console-fg);
  5. font-family: var(--fonts-monospace);
  6. border-radius: var(--border-radius);
  7. overflow-wrap: anywhere;
  8. }
  9. .console img { max-width: 100%; }
  10. .console a {
  11. color: inherit;
  12. text-decoration: underline;
  13. text-decoration-style: dashed;
  14. }
  15. .console a:hover { color: var(--color-primary); }
  16. @keyframes blink-animation {
  17. to {
  18. visibility: hidden;
  19. }
  20. }
  21. /* ansi_up colors used in actions */
  22. .ansi-black-fg { color: var(--color-ansi-black); }
  23. .ansi-red-fg { color: var(--color-ansi-red); }
  24. .ansi-green-fg { color: var(--color-ansi-green); }
  25. .ansi-yellow-fg { color: var(--color-ansi-yellow); }
  26. .ansi-blue-fg { color: var(--color-ansi-blue); }
  27. .ansi-magenta-fg { color: var(--color-ansi-magenta); }
  28. .ansi-cyan-fg { color: var(--color-ansi-cyan); }
  29. .ansi-white-fg { color: var(--color-ansi-white); }
  30. .ansi-bright-black-fg { color: var(--color-ansi-bright-black); }
  31. .ansi-bright-red-fg { color: var(--color-ansi-bright-red); }
  32. .ansi-bright-green-fg { color: var(--color-ansi-bright-green); }
  33. .ansi-bright-yellow-fg { color: var(--color-ansi-bright-yellow); }
  34. .ansi-bright-blue-fg { color: var(--color-ansi-bright-blue); }
  35. .ansi-bright-magenta-fg { color: var(--color-ansi-bright-magenta); }
  36. .ansi-bright-cyan-fg { color: var(--color-ansi-bright-cyan); }
  37. .ansi-bright-white-fg { color: var(--color-ansi-bright-white); }
  38. .ansi-black-bg { background-color: var(--color-ansi-black); }
  39. .ansi-red-bg { background-color: var(--color-ansi-red); }
  40. .ansi-green-bg { background-color: var(--color-ansi-green); }
  41. .ansi-yellow-bg { background-color: var(--color-ansi-yellow); }
  42. .ansi-blue-bg { background-color: var(--color-ansi-blue); }
  43. .ansi-magenta-bg { background-color: var(--color-ansi-magenta); }
  44. .ansi-cyan-bg { background-color: var(--color-ansi-cyan); }
  45. .ansi-white-bg { background-color: var(--color-ansi-white); }
  46. .ansi-bright-black-bg { background-color: var(--color-ansi-bright-black); }
  47. .ansi-bright-red-bg { background-color: var(--color-ansi-bright-red); }
  48. .ansi-bright-green-bg { background-color: var(--color-ansi-bright-green); }
  49. .ansi-bright-yellow-bg { background-color: var(--color-ansi-bright-yellow); }
  50. .ansi-bright-blue-bg { background-color: var(--color-ansi-bright-blue); }
  51. .ansi-bright-magenta-bg { background-color: var(--color-ansi-bright-magenta); }
  52. .ansi-bright-cyan-bg { background-color: var(--color-ansi-bright-cyan); }
  53. .ansi-bright-white-bg { background-color: var(--color-ansi-bright-white); }
  54. /* term colors used in console rendering */
  55. .term-fg2 { color: var(--color-ansi-bright-black); } /* faint (decreased intensity) - same as gray really */
  56. .term-fg3 { font-style: italic; } /* italic */
  57. .term-fg4 { text-decoration: underline; } /* underline */
  58. .term-fg5 { animation: blink-animation 1s steps(3, start) infinite; } /* blink */
  59. .term-fg9 { text-decoration: line-through; } /* crossed-out */
  60. .term-fg30 { color: var(--color-ansi-black); } /* black (but we can't use black, so a diff color) */
  61. .term-fg31 { color: var(--color-ansi-red); } /* red */
  62. .term-fg32 { color: var(--color-ansi-green); } /* green */
  63. .term-fg33 { color: var(--color-ansi-yellow); } /* yellow */
  64. .term-fg34 { color: var(--color-ansi-blue); } /* blue */
  65. .term-fg35 { color: var(--color-ansi-magenta); } /* magenta */
  66. .term-fg36 { color: var(--color-ansi-cyan); } /* cyan */
  67. /* high intense colors */
  68. .term-fgi1 { color: var(--color-ansi-bright-green); }
  69. .term-fgi90 { color: var(--color-ansi-bright-black); } /* grey */
  70. .term-fgi91 { color: var(--color-ansi-bright-red); } /* red */
  71. .term-fgi92 { color: var(--color-ansi-bright-green); } /* green */
  72. .term-fgi93 { color: var(--color-ansi-bright-yellow); } /* yellow */
  73. .term-fgi94 { color: var(--color-ansi-bright-blue); } /* blue */
  74. .term-fgi95 { color: var(--color-ansi-bright-magenta); } /* magenta */
  75. .term-fgi96 { color: var(--color-ansi-bright-cyan); } /* cyan */
  76. /* background colors */
  77. .term-bg40 { background: var(--color-ansi-bright-black); } /* grey */
  78. .term-bg41 { background: var(--color-ansi-red); } /* red */
  79. .term-bg42 { background: var(--color-ansi-green); } /* green */
  80. /* custom foreground/background combos for readability */
  81. .term-fg31.term-bg40 { color: var(--color-ansi-bright-red); }
  82. /* xterm colors */
  83. .term-fgx16 { color: #000000; }
  84. .term-fgx17 { color: #00005f; }
  85. .term-fgx18 { color: #000087; }
  86. .term-fgx19 { color: #0000af; }
  87. .term-fgx20 { color: #0000d7; }
  88. .term-fgx21 { color: #0000ff; }
  89. .term-fgx22 { color: #005f00; }
  90. .term-fgx23 { color: #005f5f; }
  91. .term-fgx24 { color: #005f87; }
  92. .term-fgx25 { color: #005faf; }
  93. .term-fgx26 { color: #005fd7; }
  94. .term-fgx27 { color: #005fff; }
  95. .term-fgx28 { color: #008700; }
  96. .term-fgx29 { color: #00875f; }
  97. .term-fgx30 { color: #008787; }
  98. .term-fgx31 { color: #0087af; }
  99. .term-fgx32 { color: #0087d7; }
  100. .term-fgx33 { color: #0087ff; }
  101. .term-fgx34 { color: #00af00; }
  102. .term-fgx35 { color: #00af5f; }
  103. .term-fgx36 { color: #00af87; }
  104. .term-fgx37 { color: #00afaf; }
  105. .term-fgx38 { color: #00afd7; }
  106. .term-fgx39 { color: #00afff; }
  107. .term-fgx40 { color: #00d700; }
  108. .term-fgx41 { color: #00d75f; }
  109. .term-fgx42 { color: #00d787; }
  110. .term-fgx43 { color: #00d7af; }
  111. .term-fgx44 { color: #00d7d7; }
  112. .term-fgx45 { color: #00d7ff; }
  113. .term-fgx46 { color: #00ff00; }
  114. .term-fgx47 { color: #00ff5f; }
  115. .term-fgx48 { color: #00ff87; }
  116. .term-fgx49 { color: #00ffaf; }
  117. .term-fgx50 { color: #00ffd7; }
  118. .term-fgx51 { color: #00ffff; }
  119. .term-fgx52 { color: #5f0000; }
  120. .term-fgx53 { color: #5f005f; }
  121. .term-fgx54 { color: #5f0087; }
  122. .term-fgx55 { color: #5f00af; }
  123. .term-fgx56 { color: #5f00d7; }
  124. .term-fgx57 { color: #5f00ff; }
  125. .term-fgx58 { color: #5f5f00; }
  126. .term-fgx59 { color: #5f5f5f; }
  127. .term-fgx60 { color: #5f5f87; }
  128. .term-fgx61 { color: #5f5faf; }
  129. .term-fgx62 { color: #5f5fd7; }
  130. .term-fgx63 { color: #5f5fff; }
  131. .term-fgx64 { color: #5f8700; }
  132. .term-fgx65 { color: #5f875f; }
  133. .term-fgx66 { color: #5f8787; }
  134. .term-fgx67 { color: #5f87af; }
  135. .term-fgx68 { color: #5f87d7; }
  136. .term-fgx69 { color: #5f87ff; }
  137. .term-fgx70 { color: #5faf00; }
  138. .term-fgx71 { color: #5faf5f; }
  139. .term-fgx72 { color: #5faf87; }
  140. .term-fgx73 { color: #5fafaf; }
  141. .term-fgx74 { color: #5fafd7; }
  142. .term-fgx75 { color: #5fafff; }
  143. .term-fgx76 { color: #5fd700; }
  144. .term-fgx77 { color: #5fd75f; }
  145. .term-fgx78 { color: #5fd787; }
  146. .term-fgx79 { color: #5fd7af; }
  147. .term-fgx80 { color: #5fd7d7; }
  148. .term-fgx81 { color: #5fd7ff; }
  149. .term-fgx82 { color: #5fff00; }
  150. .term-fgx83 { color: #5fff5f; }
  151. .term-fgx84 { color: #5fff87; }
  152. .term-fgx85 { color: #5fffaf; }
  153. .term-fgx86 { color: #5fffd7; }
  154. .term-fgx87 { color: #5fffff; }
  155. .term-fgx88 { color: #870000; }
  156. .term-fgx89 { color: #87005f; }
  157. .term-fgx90 { color: #870087; }
  158. .term-fgx91 { color: #8700af; }
  159. .term-fgx92 { color: #8700d7; }
  160. .term-fgx93 { color: #8700ff; }
  161. .term-fgx94 { color: #875f00; }
  162. .term-fgx95 { color: #875f5f; }
  163. .term-fgx96 { color: #875f87; }
  164. .term-fgx97 { color: #875faf; }
  165. .term-fgx98 { color: #875fd7; }
  166. .term-fgx99 { color: #875fff; }
  167. .term-fgx100 { color: #878700; }
  168. .term-fgx101 { color: #87875f; }
  169. .term-fgx102 { color: #878787; }
  170. .term-fgx103 { color: #8787af; }
  171. .term-fgx104 { color: #8787d7; }
  172. .term-fgx105 { color: #8787ff; }
  173. .term-fgx106 { color: #87af00; }
  174. .term-fgx107 { color: #87af5f; }
  175. .term-fgx108 { color: #87af87; }
  176. .term-fgx109 { color: #87afaf; }
  177. .term-fgx110 { color: #87afd7; }
  178. .term-fgx111 { color: #87afff; }
  179. .term-fgx112 { color: #87d700; }
  180. .term-fgx113 { color: #87d75f; }
  181. .term-fgx114 { color: #87d787; }
  182. .term-fgx115 { color: #87d7af; }
  183. .term-fgx116 { color: #87d7d7; }
  184. .term-fgx117 { color: #87d7ff; }
  185. .term-fgx118 { color: #87ff00; }
  186. .term-fgx119 { color: #87ff5f; }
  187. .term-fgx120 { color: #87ff87; }
  188. .term-fgx121 { color: #87ffaf; }
  189. .term-fgx122 { color: #87ffd7; }
  190. .term-fgx123 { color: #87ffff; }
  191. .term-fgx124 { color: #af0000; }
  192. .term-fgx125 { color: #af005f; }
  193. .term-fgx126 { color: #af0087; }
  194. .term-fgx127 { color: #af00af; }
  195. .term-fgx128 { color: #af00d7; }
  196. .term-fgx129 { color: #af00ff; }
  197. .term-fgx130 { color: #af5f00; }
  198. .term-fgx131 { color: #af5f5f; }
  199. .term-fgx132 { color: #af5f87; }
  200. .term-fgx133 { color: #af5faf; }
  201. .term-fgx134 { color: #af5fd7; }
  202. .term-fgx135 { color: #af5fff; }
  203. .term-fgx136 { color: #af8700; }
  204. .term-fgx137 { color: #af875f; }
  205. .term-fgx138 { color: #af8787; }
  206. .term-fgx139 { color: #af87af; }
  207. .term-fgx140 { color: #af87d7; }
  208. .term-fgx141 { color: #af87ff; }
  209. .term-fgx142 { color: #afaf00; }
  210. .term-fgx143 { color: #afaf5f; }
  211. .term-fgx144 { color: #afaf87; }
  212. .term-fgx145 { color: #afafaf; }
  213. .term-fgx146 { color: #afafd7; }
  214. .term-fgx147 { color: #afafff; }
  215. .term-fgx148 { color: #afd700; }
  216. .term-fgx149 { color: #afd75f; }
  217. .term-fgx150 { color: #afd787; }
  218. .term-fgx151 { color: #afd7af; }
  219. .term-fgx152 { color: #afd7d7; }
  220. .term-fgx153 { color: #afd7ff; }
  221. .term-fgx154 { color: #afff00; }
  222. .term-fgx155 { color: #afff5f; }
  223. .term-fgx156 { color: #afff87; }
  224. .term-fgx157 { color: #afffaf; }
  225. .term-fgx158 { color: #afffd7; }
  226. .term-fgx159 { color: #afffff; }
  227. .term-fgx160 { color: #d70000; }
  228. .term-fgx161 { color: #d7005f; }
  229. .term-fgx162 { color: #d70087; }
  230. .term-fgx163 { color: #d700af; }
  231. .term-fgx164 { color: #d700d7; }
  232. .term-fgx165 { color: #d700ff; }
  233. .term-fgx166 { color: #d75f00; }
  234. .term-fgx167 { color: #d75f5f; }
  235. .term-fgx168 { color: #d75f87; }
  236. .term-fgx169 { color: #d75faf; }
  237. .term-fgx170 { color: #d75fd7; }
  238. .term-fgx171 { color: #d75fff; }
  239. .term-fgx172 { color: #d78700; }
  240. .term-fgx173 { color: #d7875f; }
  241. .term-fgx174 { color: #d78787; }
  242. .term-fgx175 { color: #d787af; }
  243. .term-fgx176 { color: #d787d7; }
  244. .term-fgx177 { color: #d787ff; }
  245. .term-fgx178 { color: #d7af00; }
  246. .term-fgx179 { color: #d7af5f; }
  247. .term-fgx180 { color: #d7af87; }
  248. .term-fgx181 { color: #d7afaf; }
  249. .term-fgx182 { color: #d7afd7; }
  250. .term-fgx183 { color: #d7afff; }
  251. .term-fgx184 { color: #d7d700; }
  252. .term-fgx185 { color: #d7d75f; }
  253. .term-fgx186 { color: #d7d787; }
  254. .term-fgx187 { color: #d7d7af; }
  255. .term-fgx188 { color: #d7d7d7; }
  256. .term-fgx189 { color: #d7d7ff; }
  257. .term-fgx190 { color: #d7ff00; }
  258. .term-fgx191 { color: #d7ff5f; }
  259. .term-fgx192 { color: #d7ff87; }
  260. .term-fgx193 { color: #d7ffaf; }
  261. .term-fgx194 { color: #d7ffd7; }
  262. .term-fgx195 { color: #d7ffff; }
  263. .term-fgx196 { color: #ff0000; }
  264. .term-fgx197 { color: #ff005f; }
  265. .term-fgx198 { color: #ff0087; }
  266. .term-fgx199 { color: #ff00af; }
  267. .term-fgx200 { color: #ff00d7; }
  268. .term-fgx201 { color: #ff00ff; }
  269. .term-fgx202 { color: #ff5f00; }
  270. .term-fgx203 { color: #ff5f5f; }
  271. .term-fgx204 { color: #ff5f87; }
  272. .term-fgx205 { color: #ff5faf; }
  273. .term-fgx206 { color: #ff5fd7; }
  274. .term-fgx207 { color: #ff5fff; }
  275. .term-fgx208 { color: #ff8700; }
  276. .term-fgx209 { color: #ff875f; }
  277. .term-fgx210 { color: #ff8787; }
  278. .term-fgx211 { color: #ff87af; }
  279. .term-fgx212 { color: #ff87d7; }
  280. .term-fgx213 { color: #ff87ff; }
  281. .term-fgx214 { color: #ffaf00; }
  282. .term-fgx215 { color: #ffaf5f; }
  283. .term-fgx216 { color: #ffaf87; }
  284. .term-fgx217 { color: #ffafaf; }
  285. .term-fgx218 { color: #ffafd7; }
  286. .term-fgx219 { color: #ffafff; }
  287. .term-fgx220 { color: #ffd700; }
  288. .term-fgx221 { color: #ffd75f; }
  289. .term-fgx222 { color: #ffd787; }
  290. .term-fgx223 { color: #ffd7af; }
  291. .term-fgx224 { color: #ffd7d7; }
  292. .term-fgx225 { color: #ffd7ff; }
  293. .term-fgx226 { color: #ffff00; }
  294. .term-fgx227 { color: #ffff5f; }
  295. .term-fgx228 { color: #ffff87; }
  296. .term-fgx229 { color: #ffffaf; }
  297. .term-fgx230 { color: #ffffd7; }
  298. .term-fgx231 { color: #ffffff; }
  299. .term-fgx232 { color: #080808; }
  300. .term-fgx233 { color: #121212; }
  301. .term-fgx234 { color: #1c1c1c; }
  302. .term-fgx235 { color: #262626; }
  303. .term-fgx236 { color: #303030; }
  304. .term-fgx237 { color: #3a3a3a; }
  305. .term-fgx238 { color: #444444; }
  306. .term-fgx239 { color: #4e4e4e; }
  307. .term-fgx240 { color: #585858; }
  308. .term-fgx241 { color: #626262; }
  309. .term-fgx242 { color: #6c6c6c; }
  310. .term-fgx243 { color: #767676; }
  311. .term-fgx244 { color: #808080; }
  312. .term-fgx245 { color: #8a8a8a; }
  313. .term-fgx246 { color: #949494; }
  314. .term-fgx247 { color: #9e9e9e; }
  315. .term-fgx248 { color: #a8a8a8; }
  316. .term-fgx249 { color: #b2b2b2; }
  317. .term-fgx250 { color: #bcbcbc; }
  318. .term-fgx251 { color: #c6c6c6; }
  319. .term-fgx252 { color: #d0d0d0; }
  320. .term-fgx253 { color: #dadada; }
  321. .term-fgx254 { color: #e4e4e4; }
  322. .term-fgx255 { color: #eeeeee; }