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.6 kB

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