theme.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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-container {
  14. overflow-y: auto;
  15. padding-left: 10px;
  16. padding-right: 10px;
  17. padding-bottom: 20px;
  18. }
  19. .jp-InputArea-prompt {
  20. flex-basis: 90px;
  21. color: #303F9F;
  22. font-family: monospace;
  23. padding: 0.4em;
  24. text-align: right;
  25. line-height: 20px;
  26. font-size: 14px;
  27. }
  28. .jp-InputArea-editor {
  29. height: auto;
  30. min-height: 2em;
  31. }
  32. .jp-InputArea-editor.jp-CodeMirror {
  33. border: 1px solid #cfcfcf;
  34. border-radius: 2px;
  35. background: #f7f7f7;
  36. line-height: 1.2em;
  37. padding: 4px;
  38. }
  39. .jp-MarkdownCell {
  40. outline: 0;
  41. }
  42. .jp-MarkdownCell.jp-mod-rendered {
  43. padding-left: 100px;
  44. }
  45. .jp-MarkdownCell-renderer {
  46. padding-left: 4px;
  47. }
  48. .jp-OutputArea {
  49. background: #ffffff;
  50. }
  51. .jp-OutputArea > .jp-OutputArea-output {
  52. margin-left: 90px;
  53. display: flex;
  54. flex-direction: row;
  55. }
  56. .jp-OutputArea > .jp-OutputArea-output.jp-OutputArea-executeResult {
  57. margin-left: 0px;
  58. flex: 1 1 auto;
  59. }
  60. .jp-OutputArea-output.jp-OutputArea-executeResult > .jp-OutputArea-prompt {
  61. color: #D84315;
  62. font-family: monospace;
  63. text-align: right;
  64. line-height: 20px;
  65. padding: 0.4em;
  66. font-size: 14px;
  67. flex: 0 0 90px;
  68. box-sizing: border-box;
  69. }
  70. .jp-OutputArea-output > .jp-OutputArea-result {
  71. padding: 4px;
  72. }
  73. .jp-OutputArea pre {
  74. border: none;
  75. }
  76. .jp-OutputArea > .jp-OutputArea-output.jp-OutputArea-stderr {
  77. background: #fdd;
  78. }
  79. .jp-Notebook.jp-mod-commandMode .jp-Notebook-cell.jp-mod-active.jp-mod-selected {
  80. border-color: #ABABAB;
  81. border-left-width: 1px;
  82. background: linear-gradient(to right, #42A5F5 -40px, #42A5F5 5px, transparent 5px, transparent 100%);
  83. }
  84. .jp-Notebook.jp-mod-commandMode .jp-Notebook-cell.jp-mod-otherSelected.jp-mod-active {
  85. background: linear-gradient(to right, #42A5F5 -40px, #42A5F5 7px, #E3F2FD 7px, #E3F2FD 100%);
  86. }
  87. .jp-Notebook.jp-mod-commandMode .jp-Notebook-cell.jp-mod-selected {
  88. background: #E3F2FD;
  89. }
  90. .jp-Notebook.jp-mod-editMode .jp-Notebook-cell.jp-mod-active {
  91. border-color: #66BB6A;
  92. border-left-width: 1px;
  93. background: linear-gradient(to right, #66BB6A -40px, #66BB6A 5px, transparent 5px, transparent 100%);
  94. }
  95. .jp-Cell {
  96. padding-top: 10px;
  97. padding-bottom: 10px;
  98. padding-left: 10px;
  99. padding-right: 10px;
  100. border-width: 1px;
  101. border-style: solid;
  102. border-color: transparent;
  103. outline: none;
  104. }
  105. .jp-MarkdownCell {
  106. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  107. }
  108. .jp-NBToolbar {
  109. display: flex;
  110. flex-direction: row;
  111. background-color: #F8F8F8;
  112. border-top: 1px solid #E0E0E0;
  113. border-bottom: 1px solid #E0E0E0;
  114. }
  115. .jp-NBToolbar > .jp-NBToolbar-item {
  116. flex: 0 0 auto;
  117. padding-left: 8px;
  118. padding-right: 8px;
  119. vertical-align: middle;
  120. font-size: 13px;
  121. font-family: "Helvetica Neue";
  122. color: #767676;
  123. }
  124. .jp-NBToolbar-item.jp-NBToolbar-button,
  125. .jp-NBToolbar-item.jp-NBToolbar-kernelIndicator {
  126. font-family: FontAwesome;
  127. padding-top: 5px;
  128. padding-bottom: 6px;
  129. color: #616161;
  130. text-align: center;
  131. display: inline-block;
  132. }
  133. .jp-NBToolbar-item.jp-NBToolbar-cellWrapper {
  134. border-left: 1px solid #E0E0E0;
  135. border-right: 1px solid #E0E0E0;
  136. flex-basis: 100px;
  137. padding-top: 3px;
  138. padding-bottom: 3px;
  139. }
  140. .jp-NBToolbar-cellType.jp-NBToolbar-item {
  141. font-size: 13px;
  142. font-family: "Helvetica Neue";
  143. color: #767676;
  144. }
  145. .jp-NBToolbar-cellWrapper .jp-NBToolbar-cellType {
  146. border: none;
  147. border-radius: 0;
  148. outline: none;
  149. width: 100%;
  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-item.jp-NBToolbar-kernelName {
  163. text-align: right;
  164. color: #767676;
  165. flex-grow: 1;
  166. flex-shrink: 1;
  167. padding-top: 4px;
  168. padding-bottom: 4px;
  169. }
  170. .jp-NBToolbar-button.jp-NBToolbar-save::before {
  171. content: "\f0c7"; /* Save */
  172. }
  173. .jp-NBToolbar-button.jp-NBToolbar-insert::before {
  174. content: "\f067"; /* Plus */
  175. }
  176. .jp-NBToolbar-button.jp-NBToolbar-cut::before {
  177. content: "\f0c4"; /* Cut */
  178. }
  179. .jp-NBToolbar-button.jp-NBToolbar-copy::before {
  180. content: "\f0c5"; /* Copy */
  181. }
  182. .jp-NBToolbar-button.jp-NBToolbar-paste::before {
  183. content: "\f0ea"; /* Paste */
  184. }
  185. .jp-NBToolbar-button.jp-NBToolbar-run::before {
  186. content: "\f051"; /* Step-forward */
  187. }
  188. .jp-NBToolbar-button.jp-NBToolbar-interrupt::before {
  189. content: "\f04d"; /* Stop */
  190. }
  191. .jp-NBToolbar-button.jp-NBToolbar-restart::before {
  192. content: "\f01e"; /* Rotate-right */
  193. }
  194. .jp-NBToolbar-item.jp-NBToolbar-kernelIndicator::before {
  195. content: "\f10c"; /* Circle-o */
  196. }
  197. .jp-NBToolbar-item.jp-NBToolbar-kernelIndicator.jp-mod-busy::before {
  198. content: "\f111"; /* Circle */
  199. }
  200. .jp-CodeMirror > .CodeMirror {
  201. line-height: 1.21429em;
  202. /* Changed from 1em to our global default */
  203. font-size: 14px;
  204. height: auto;
  205. /* Changed to auto to autogrow */
  206. background: none;
  207. /* Changed from white to allow our bg to show through */
  208. }
  209. .jp-CodeMirror > .CodeMirror-scroll {
  210. /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
  211. /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
  212. overflow-y: hidden;
  213. overflow-x: auto;
  214. }
  215. .jp-CodeMirror > .CodeMirror-lines {
  216. /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
  217. /* we have set a different line-height and want this to scale with that. */
  218. padding: 0.4em;
  219. }
  220. .jp-CodeMirror > .CodeMirror-linenumber {
  221. padding: 0 8px 0 4px;
  222. }
  223. .jp-CodeMirror > .CodeMirror-gutters {
  224. border-bottom-left-radius: 2px;
  225. border-top-left-radius: 2px;
  226. }
  227. .jp-CodeMirror > .CodeMirror pre {
  228. /* In CM3 this went to 4px from 0 in CM2. We need the 0 value because of how we size */
  229. /* .CodeMirror-lines */
  230. padding: 0;
  231. border: 0;
  232. border-radius: 0;
  233. }