theme.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) 2014-2016, Jupyter Development Team.
  3. |
  4. | Distributed under the terms of the Modified BSD License.
  5. |----------------------------------------------------------------------------*/
  6. /* Increased specificity in case phosphor css is loaded later. */
  7. .p-Widget.jp-Notebook {
  8. margin-top: 20px;
  9. min-width: 50px;
  10. min-height: 50px;
  11. outline: none;
  12. }
  13. .p-Widget.jp-Notebook-panel {
  14. height: 100%;
  15. }
  16. .p-Widget.jp-Notebook-container {
  17. overflow: auto;
  18. padding-left: 10px;
  19. padding-right: 10px;
  20. padding-bottom: 20px;
  21. }
  22. .jp-InputArea-prompt {
  23. flex-basis: 90px;
  24. color: #303F9F;
  25. font-family: monospace;
  26. padding: 0.4em;
  27. text-align: right;
  28. line-height: 20px;
  29. font-size: 14px;
  30. }
  31. .jp-InputArea-editor {
  32. height: auto;
  33. min-height: 2em;
  34. }
  35. .jp-CellEditor {
  36. border: 1px solid #cfcfcf;
  37. border-radius: 2px;
  38. background: #f7f7f7;
  39. line-height: 1.2em;
  40. padding: 4px;
  41. }
  42. .jp-MarkdownCell {
  43. outline: 0;
  44. }
  45. .jp-MarkdownCell.jp-mod-rendered {
  46. padding-left: 100px;
  47. }
  48. .jp-MarkdownCell-renderer {
  49. padding-left: 4px;
  50. }
  51. .jp-OutputArea {
  52. background: #FFFFFF;
  53. }
  54. .jp-Output {
  55. display: flex;
  56. flex-direction: row;
  57. }
  58. .jp-Output-executeResult {
  59. margin-left: 0px;
  60. flex: 1 1 auto;
  61. }
  62. .jp-Output-prompt {
  63. color: #D84315;
  64. font-family: monospace;
  65. text-align: right;
  66. vertical-align: middle;
  67. padding: 0.4em;
  68. font-size: 14px;
  69. flex: 0 0 90px;
  70. box-sizing: border-box;
  71. }
  72. .jp-Output-result {
  73. padding: 0.4em;
  74. }
  75. .jp-Output pre {
  76. border: none;
  77. margin: 0;
  78. overflow-x: auto;
  79. overflow-y: auto;
  80. word-break: break-all;
  81. word-wrap: break-word;
  82. white-space: pre-wrap;
  83. }
  84. .jp-Output-stderr {
  85. background: #fdd;
  86. }
  87. .jp-Notebook.jp-mod-commandMode .jp-Notebook-cell.jp-mod-active.jp-mod-selected {
  88. border-color: #ABABAB;
  89. border-left-width: 1px;
  90. background: linear-gradient(to right, #42A5F5 -40px, #42A5F5 5px, transparent 5px, transparent 100%);
  91. }
  92. .jp-Notebook.jp-mod-commandMode .jp-Notebook-cell.jp-mod-multiSelected.jp-mod-active {
  93. background: linear-gradient(to right, #42A5F5 -40px, #42A5F5 7px, #E3F2FD 7px, #E3F2FD 100%);
  94. }
  95. .jp-Notebook.jp-mod-commandMode .jp-Notebook-cell.jp-mod-selected {
  96. background: #E3F2FD;
  97. }
  98. .jp-Notebook.jp-mod-editMode .jp-Notebook-cell.jp-mod-active {
  99. border-color: #66BB6A;
  100. border-left-width: 1px;
  101. background: linear-gradient(to right, #66BB6A -40px, #66BB6A 5px, transparent 5px, transparent 100%);
  102. }
  103. .jp-Cell {
  104. padding-top: 5px;
  105. padding-bottom: 5px;
  106. padding-left: 5px;
  107. padding-right: 5px;
  108. border-width: 1px;
  109. border-style: solid;
  110. border-color: transparent;
  111. outline: none;
  112. }
  113. .jp-NBToolbar {
  114. display: flex;
  115. flex-direction: row;
  116. border-bottom: 1px solid #E0E0E0;
  117. height: 24px;
  118. }
  119. .jp-NBToolbar > .jp-NBToolbar-item {
  120. flex: 0 0 auto;
  121. padding-left: 8px;
  122. padding-right: 8px;
  123. vertical-align: middle;
  124. font-size: 14px;
  125. color: #616161;
  126. line-height: 23px;
  127. }
  128. .jp-NBToolbar-item.jp-NBToolbar-button,
  129. .jp-NBToolbar-item.jp-NBToolbar-kernelIndicator {
  130. font-family: FontAwesome;
  131. text-align: center;
  132. display: inline-block;
  133. }
  134. .jp-NBToolbar-item.jp-NBToolbar-cellType select {
  135. background: #FFFFFF;
  136. }
  137. .jp-NBToolbar-cellType .jp-NBToolbar-cellTypeDropdown {
  138. border: 1px solid #BDBDBD;
  139. border-radius: 0;
  140. outline: none;
  141. width: 100%;
  142. font-size: 14px;
  143. line-height: 23px;
  144. color: #616161;
  145. }
  146. .jp-NBToolbar-item.jp-NBToolbar-kernelName {
  147. text-align: right;
  148. flex-grow: 1;
  149. flex-shrink: 1;
  150. }
  151. .jp-NBToolbar-item.jp-NBToolbar-kernelIndicator {
  152. border-right: none;
  153. }
  154. .jp-NBToolbar-button.jp-mod-pressed {
  155. background-color: #E0E0E0;
  156. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
  157. }
  158. .jp-NBToolbar-button:hover {
  159. background-color: #EEEEEE;
  160. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
  161. }
  162. .jp-NBToolbar-button.jp-NBToolbar-save::before {
  163. content: "\f0c7"; /* Save */
  164. }
  165. .jp-NBToolbar-button.jp-NBToolbar-insert::before {
  166. content: "\f067"; /* Plus */
  167. }
  168. .jp-NBToolbar-button.jp-NBToolbar-cut::before {
  169. content: "\f0c4"; /* Cut */
  170. }
  171. .jp-NBToolbar-button.jp-NBToolbar-copy::before {
  172. content: "\f0c5"; /* Copy */
  173. }
  174. .jp-NBToolbar-button.jp-NBToolbar-paste::before {
  175. content: "\f0ea"; /* Paste */
  176. }
  177. .jp-NBToolbar-button.jp-NBToolbar-run::before {
  178. content: "\f051"; /* Step-forward */
  179. }
  180. .jp-NBToolbar-button.jp-NBToolbar-interrupt::before {
  181. content: "\f04d"; /* Stop */
  182. }
  183. .jp-NBToolbar-button.jp-NBToolbar-restart::before {
  184. content: "\f01e"; /* Rotate-right */
  185. }
  186. .jp-NBToolbar-item.jp-NBToolbar-kernelIndicator::before {
  187. content: "\f10c"; /* Circle-o */
  188. }
  189. .jp-NBToolbar-item.jp-NBToolbar-kernelIndicator.jp-mod-busy::before {
  190. content: "\f111"; /* Circle */
  191. }
  192. .jp-CellEditor > .CodeMirror {
  193. line-height: 1.21429em;
  194. /* Changed from 1em to our global default */
  195. font-size: 14px;
  196. height: auto;
  197. /* Changed to auto to autogrow */
  198. background: none;
  199. /* Changed from white to allow our bg to show through */
  200. }
  201. .jp-CellEditor > .CodeMirror-scroll {
  202. /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
  203. /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
  204. overflow-y: hidden;
  205. overflow-x: auto;
  206. }
  207. .jp-CellEditor > .CodeMirror-lines {
  208. /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
  209. /* we have set a different line-height and want this to scale with that. */
  210. padding: 0.4em;
  211. }
  212. .jp-CellEditor > .CodeMirror-linenumber {
  213. padding: 0 8px 0 4px;
  214. }
  215. .jp-CellEditor > .CodeMirror-gutters {
  216. border-bottom-left-radius: 2px;
  217. border-top-left-radius: 2px;
  218. }
  219. .jp-CellEditor > .CodeMirror pre {
  220. /* In CM3 this went to 4px from 0 in CM2. We need the 0 value because of how we size */
  221. /* .CodeMirror-lines */
  222. padding: 0;
  223. border: 0;
  224. border-radius: 0;
  225. }
  226. .jp-Console {
  227. height: 100%;
  228. }
  229. .jp-Console .jp-Cell {
  230. padding-top: 0;
  231. padding-bottom: 0;
  232. }
  233. .jp-Console .jp-InputArea-editor.jp-CellEditor {
  234. background: transparent;
  235. border-color: transparent;
  236. }
  237. .jp-Console .jp-InputArea-prompt {
  238. flex-basis: auto;
  239. text-align: left;
  240. }
  241. .jp-Console .jp-Output.jp-Output-executeResult > .jp-Output-prompt {
  242. flex-basis: auto;
  243. text-align: left;
  244. }
  245. .jp-Console .jp-OutputArea pre {
  246. border: none;
  247. line-height: 25px;
  248. margin: 0;
  249. }
  250. .jp-Console .jp-Console-banner .jp-InputArea-prompt {
  251. display: none;
  252. }
  253. .jp-ConsoleTooltip {
  254. position: absolute;
  255. background: #FFFFCA;
  256. border: 1px solid #000000;
  257. z-index: 10001;
  258. }
  259. .jp-ConsoleTooltip pre {
  260. margin: 0;
  261. padding: 2px;
  262. }
  263. /* ansi_up creates classed spans for console foregrounds and backgrounds. */
  264. .jp-ConsoleTooltip pre .ansi-black-fg { color: #3A3A3A; }
  265. .jp-ConsoleTooltip pre .ansi-red-fg { color: #DD948E; }
  266. .jp-ConsoleTooltip pre .ansi-green-fg { color: #B6D1AA; }
  267. .jp-ConsoleTooltip pre .ansi-yellow-fg { color: #F3D57C; }
  268. .jp-ConsoleTooltip pre .ansi-blue-fg { color: #8AA9D5; }
  269. .jp-ConsoleTooltip pre .ansi-magenta-fg { color: #CBAFD5; }
  270. .jp-ConsoleTooltip pre .ansi-cyan-fg { color: #9AD1D4; }
  271. .jp-ConsoleTooltip pre .ansi-white-fg { color: #EFEFEF; }
  272. .jp-ConsoleTooltip pre .ansi-bright-black-fg { color: #5E5D5E; }
  273. .jp-ConsoleTooltip pre .ansi-bright-red-fg { color: #E69B94; }
  274. .jp-ConsoleTooltip pre .ansi-bright-green-fg { color: #D1F0C3; }
  275. .jp-ConsoleTooltip pre .ansi-bright-yellow-fg { color: #F4D799; }
  276. .jp-ConsoleTooltip pre .ansi-bright-blue-fg { color: #A6CBFE; }
  277. .jp-ConsoleTooltip pre .ansi-bright-magenta-fg { color: #E8C8F3; }
  278. .jp-ConsoleTooltip pre .ansi-bright-cyan-fg { color: #B1F1F6; }
  279. .jp-ConsoleTooltip pre .ansi-bright-white-fg { color: #FFFFFF; }
  280. .jp-ConsoleTooltip pre .ansi-black-bg { background-color: #3B3B3B; }
  281. .jp-ConsoleTooltip pre .ansi-red-bg { background-color: #DE958F; }
  282. .jp-ConsoleTooltip pre .ansi-green-bg { background-color: #B7D2AB; }
  283. .jp-ConsoleTooltip pre .ansi-yellow-bg { background-color: #F4D67D; }
  284. .jp-ConsoleTooltip pre .ansi-blue-bg { background-color: #8BAAD6; }
  285. .jp-ConsoleTooltip pre .ansi-magenta-bg { background-color: #CCB0D6; }
  286. .jp-ConsoleTooltip pre .ansi-cyan-bg { background-color: #9BD2D5; }
  287. .jp-ConsoleTooltip pre .ansi-white-bg { background-color: #F0F0F0; }
  288. .jp-ConsoleTooltip pre .ansi-bright-black-bg { background-color: #5F5E5F; }
  289. .jp-ConsoleTooltip pre .ansi-bright-red-bg { background-color: #E79C95; }
  290. .jp-ConsoleTooltip pre .ansi-bright-green-bg { background-color: #D2F1C4; }
  291. .jp-ConsoleTooltip pre .ansi-bright-yellow-bg { background-color: #F5D89A; }
  292. .jp-ConsoleTooltip pre .ansi-bright-blue-bg { background-color: #A7CCFF; }
  293. .jp-ConsoleTooltip pre .ansi-bright-magenta-bg { background-color: #E8C8F3; }
  294. .jp-ConsoleTooltip pre .ansi-bright-cyan-bg { background-color: #B1F1F6; }
  295. .jp-ConsoleTooltip pre .ansi-bright-white-bg { background-color: #FFFFFF; }
  296. .jp-Completion {
  297. background: #EEEEEE;
  298. border: 1px solid #000000;
  299. list-style-type: none;
  300. margin: 0;
  301. overflow: auto;
  302. padding: 0;
  303. position: absolute;
  304. z-index: 10001;
  305. }
  306. .jp-Completion-item {
  307. margin: 0;
  308. min-width: 150px;
  309. padding: 0 2px;
  310. }
  311. .jp-Completion-item:nth-child(odd) {
  312. background: #FFFFFF;
  313. }
  314. .jp-Completion-item.jp-mod-active {
  315. background: #BFBFBF;
  316. }
  317. .jp-Completion-item code {
  318. font-size: 14px;
  319. line-height: 25px;
  320. }
  321. .jp-Completion-item mark {
  322. font-weight: bold;
  323. text-decoration: underline;
  324. background: inherit;
  325. color: inherit;
  326. }