docs/theme/css/style.css
/* ----------- Table format like GitHub ----------- */
th,
td {
  border: 1px solid var(--md-typeset-table-color);
  border-spacing: 0;
  border-bottom: none;
  border-left: none;
  border-top: none;
}

.md-typeset__table {
  line-height: 1;
}

.md-typeset__table table:not([class]) {
  font-size: 0.74rem;
  border-right: none;
}

.md-typeset__table table:not([class]) td,
.md-typeset__table table:not([class]) th {
  padding: 9px;
}

/* light mode alternating table bg colors */
.md-typeset__table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

/* dark mode alternating table bg colors */
[data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) {
  background-color: #161b22;
}
/* ----------- End Table format like GitHub ----------- */

/* Code block vertical scroll */
div.highlight {
  max-height: 20rem;
  overflow-y: auto; /* for adding a scrollbar when needed */
}

/* Set content width */
.md-grid {
  max-width: 1440px;
}

/* Set language dropdown maximum height to screen height */
.md-header .md-select:hover .md-select__inner {
  max-height: 75vh;
}

/* ----------- Start Jupyter Notebook ----------- */
.md-content article.md-content__inner {
  position: relative;
}
.md-content article.md-content__inner a.md-icon {
  position: absolute;
  right: 0;
}

/* Collapsible tabs */
.jupyter-wrapper .jp-Notebook {
  padding: 0 !important;
}
.jupyter-wrapper .jp-Notebook-cell {
  padding-right: 0 !important;
  padding-left: 0 !important;
}
.jupyter-wrapper .jp-Collapser {
  display: none;
}

/* Cells */
.jp-Notebook pre {
  padding: .7720588235em 1.1764705882em !important;
}
.jp-Notebook .jp-InputArea .jp-InputPrompt {
  color: var(--md-default-fg-color--lighter) !important;
}
.jp-Notebook .jp-OutputPrompt {
  color: var(--md-default-fg-color--lighter) !important;
}
.jp-Notebook .jp-OutputArea-output pre {
  color: var(--md-default-fg-color--light) !important;
}
.jp-Notebook .jp-OutputArea-output pre {
  line-height: 1.5;
  max-height: 15rem;
  overflow-y: hidden !important;
  white-space: pre-wrap;
  padding: 0 10px !important;
}

/* Copy button */
.jp-Notebook .jp-Cell clipboard-copy {
  padding: 1.1764705882em .7720588235em !important;
}
.jp-No
.jp-Notebook .jp-Cell clipboard-copy > div {
  display: flex;
  align-items: center;
}
.jp-Notebook .jp-Cell clipboard-copy .clipboard-copy-icon {
  color: var(--md-default-fg-color--lightest) !important;
  transition: color 0.2s ease;
}
.jp-Notebook .jp-Cell clipboard-copy .clipboard-copy-icon:hover {
  color: var(--md-accent-fg-color) !important;
}
.jp-Notebook .jp-Cell clipboard-copy span.notice {
  color: var(--md-default-fg-color--lighter) !important;
  margin-right: 0.5rem;
}

/* Cell border */
.jp-CodeMirrorEditor.jp-Editor.jp-InputArea-editor {
  border: none;
}

/* Cell background color */
.highlight pre, .highlight-ipynb {
  background-color: var(--md-code-bg-color) !important; 
}
/* ----------- End Jupyter Notebook ----------- */
