.nb-notebook {
  line-height: 1.5;
}
.nb-notebook a {
  text-decoration: none;
  color: #5f0185;
}
.nb-cell + .nb-cell,
.nb-output + .nb-output,
.nb-source + .nb-output {
  /* margin-top: 1.4rem */
  margin-top: 16px;
}

.nb-raw-cell {
  font-family: monospace;
  white-space: pre-wrap;
}

.nb-code-cell {
  position: relative;
}

.nb-output::before,
.nb-source::before {
  display: none;
  position: absolute;
  font-family: monospace;
  color: #999;
  left: -7.5em;
  width: 7em;
  text-align: right;
}

.nb-source::before {
  content: 'In [' attr(data-execution-count) ']:';
}

.nb-output::before {
  content: 'Out[' attr(data-execution-count) ']:';
}

.nb-source > pre {
  background-color: #f7f7f7;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
}

.nb-output {
  min-height: 1em;
  width: 100%;
}

.nb-output > pre,
.nb-source > pre {
  padding: 0.5em;
  margin: 0;
  overflow-x: auto;
}

.nb-output > img {
  max-width: 100%;
}

.nb-stderr,
.nb-stdout {
  white-space: pre-wrap;
}

.nb-error,
.nb-stderr {
  background-color: #fdd;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nb-output::before,
  .nb-source::before {
    display: block;
    position: relative;
    left: 0;
    padding-bottom: 0.5em;
    text-align: left;
  }
}

/* 将滚动条样式限定在 notebook 容器内部，避免影响全局 */
.nb-notebook ::-webkit-scrollbar {
  width: 6px; /*对垂直流动条有效*/
  height: 6px; /*对水平流动条有效*/
}
.nb-notebook ::-webkit-scrollbar-track {
  border-radius: 4px;
  background: inherit; /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); */ /* background-color: rosybrown; */
}
.nb-notebook ::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #8189994c; /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); */
}
.nb-notebook ::-webkit-scrollbar-thumb:hover {
  background: #8189997f;
}
.nb-notebook ::-webkit-scrollbar-button {
  display: none;
}
.nb-notebook ::-webkit-scrollbar-corner {
  background: inherit; /* background: khaki; */
}
