You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

notebook.css 1.5 kB

3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. .nb-notebook {
  2. line-height: 1.5;
  3. margin-left: 7em;
  4. }
  5. .nb-stdout, .nb-stderr {
  6. white-space: pre-wrap;
  7. margin: 1em 0;
  8. padding: 0.1em 0.5em;
  9. }
  10. .nb-stderr {
  11. background-color: #FAA;
  12. }
  13. .nb-cell + .nb-cell {
  14. margin-top: 0.5em;
  15. }
  16. .nb-output table {
  17. border: 1px solid #000;
  18. border-collapse: collapse;
  19. }
  20. .nb-output th {
  21. font-weight: bold;
  22. }
  23. .nb-output th, .nb-output td {
  24. border: 1px solid #000;
  25. padding: 0.25em;
  26. text-align: left;
  27. vertical-align: middle;
  28. border-collapse: collapse;
  29. }
  30. .nb-notebook blockquote {
  31. border-left: 5px solid #CCC;
  32. margin-left: 0;
  33. padding-left: 1em;
  34. }
  35. .nb-cell {
  36. position: relative;
  37. }
  38. .nb-raw-cell {
  39. white-space: pre-wrap;
  40. background-color: #f5f2f0;
  41. font-family: Consolas, Monaco, 'Andale Mono', monospace;
  42. padding: 1em;
  43. margin: .5em 0;
  44. }
  45. .nb-output {
  46. min-height: 1em;
  47. width: 100%;
  48. overflow-x: scroll;
  49. border-right: 1px dotted #CCC;
  50. }
  51. .nb-output img {
  52. max-width: 100%;
  53. }
  54. .nb-output:before, .nb-input:before {
  55. position: absolute;
  56. font-family: monospace;
  57. color: #999;
  58. left: -7em;
  59. width: 7em;
  60. text-align: right;
  61. }
  62. .nb-input:before {
  63. content: "In [" attr(data-prompt-number) "]:";
  64. }
  65. .nb-output:before {
  66. content: "Out [" attr(data-prompt-number) "]:";
  67. }
  68. // Fix pandas dataframe formatting
  69. div[style="max-height:1000px;max-width:1500px;overflow:auto;"] {
  70. max-height: none !important;
  71. }